Skip to content

Instantly share code, notes, and snippets.

View garthhumphreys's full-sized avatar
🎯
Focusing

Garth Humphreys garthhumphreys

🎯
Focusing
View GitHub Profile
@garthhumphreys
garthhumphreys / vim-commands.md
Last active September 16, 2019 20:54
My vim commands

Alias

alias urldecode='python -c "import sys, urllib as ul; \ print ul.unquote_plus(sys.argv[1])"'

alias urlencode='python -c "import sys, urllib as ul; \ print ul.quote_plus(sys.argv[1])"'

  • html:5_
  • , (Ctrly,)
@garthhumphreys
garthhumphreys / wav-mp3
Created December 26, 2019 04:48 — forked from championofblocks/wav-mp3
Command line bash to convert all wav to mp3
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done
@garthhumphreys
garthhumphreys / install_brew_pentest_dirb
Created February 28, 2018 19:56
Installing Homebrew Dirb
$ brew install sidaf/pentest/dirb
@garthhumphreys
garthhumphreys / NSLog-format-specifiers.txt
Created March 30, 2012 16:56
NSLog format specifiers
%@ Object
%d, %i signed int
%u unsigned int
%f float/double
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
@garthhumphreys
garthhumphreys / add_pen_test_tools_tap.sh
Last active November 18, 2020 23:56
Installing Homebrew Tap - Pen Test Tools - Dirb
$ brew tap sidaf/pentest

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@garthhumphreys
garthhumphreys / install-codeql.sh
Created June 9, 2023 16:53 — forked from crashGoBoom/install-codeql.sh
Install codeql for MacOS (BigSur)
#!/bin/bash
# Check for latest release: https://github.com/github/codeql-cli-binaries/releases
_version='v2.4.1'
_arch='osx'
_zip_url="https://github.com/github/codeql-cli-binaries/releases/download/${_version}/codeql-${_arch}64.zip"
_dir='codeql-home'
_cores=2
pushd "${HOME}" || exit