Strick
  • Home
  • Github
  • Game of Life
  • @safetytrick
  • Tetris Clone
Michael Nielson

Michael Nielson

7 posts •

Open Gradle files as Groovy in vim

Set gradle filetype to groovy au BufNewFile,BufRead *.gradle set filetype=groovy

Michael Nielson Michael Nielson

Format XML in vim

Use xmllint to format xml in vim au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null

Michael Nielson Michael Nielson

Format JSON in vim.

Use python's json.tool to pretty-format json. nnoremap <leader>j :%!python -m json.tool<CR>

Michael Nielson Michael Nielson

show-tests

Find and open test results from gradle (and pre-gradle grails) builds. Usage: # root module $ show-tests : # sub-module $ show-tests module # specialized test sourceSet $ show-tests module integration Add this to ~/.bashrc show-tests() { if [[ ":" == "

Michael Nielson Michael Nielson
git

Github Aliases for working with a team

These are a few helpful aliases for checking out the head of a github pull request and adding git remotes for other users forks. copr Checkout a github pull request by pull request

Michael Nielson Michael Nielson
debugging-tools

mysql-tail

mysql-tail a script for temporarily enabling mysql's general_log and then tailing the output. usage: mysql-tail [connect args] $ mysql-tail -uroot -p The script will prompt you for a password if required both on

Michael Nielson Michael Nielson
logic

Logic Symbols

Logic symbols from Deductive Logic by Terry Halpin ⊃ hook implies if ... then p ⊃ q is false iff p is true and q is false pqp ⊃ q 111 100 011 001

Michael Nielson Michael Nielson
Strick © 2023
Latest Posts Ghost