Last active
November 6, 2023 17:00
-
-
Save Gram21/35dc66c4673bb63fa8c1 to your computer and use it in GitHub Desktop.
Revisions
-
Gram21 revised this gist
Nov 29, 2022 . 2 changed files with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ZSH=$HOME/.oh-my-zsh # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="kphoen" # Texteditor and zshconfig aliases alias zshconfig="nano ~/.zshrc" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,5 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/mas # Automatically load the linux .zshrc from above curl https://gist.github.com/Gram21/35dc66c4673bb63fa8c1/raw/base.zshrc > ~/.zshrc # Install zsh syntax highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting -
Gram21 revised this gist
Dec 29, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,3 +4,4 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/mas # Automatically load the linux .zshrc from above curl https://gist.github.com/Gram21/35dc66c4673bb63fa8c1/raw/base.zshrc > ~/.zshrc git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting -
Gram21 revised this gist
Oct 12, 2019 . 1 changed file with 7 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(git repo history-substring-search docker zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh @@ -37,10 +37,10 @@ source $ZSH/oh-my-zsh.sh # Path for custom binaries, scripts, etc. # Set exa instead of ls #alias ls="exa" #alias l="exa -alh" # set ccat instead of cat #alias cat="ccat" # Have no chaining duplicates (meaning only the latest command if same command executed multiple times) in hist export HISTCONTROL=ignoreboth:erasedups @@ -53,11 +53,11 @@ export TERM=xterm-256color #alias gdb='gdb -q' # Update pip packages #alias pipupgrade="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U" #alias pipupgrade_sudo="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo pip install -U" # we want to use ripgrep instead of grep. #alias grep="echo Using rg instead of grep; rg" # @@ -74,8 +74,6 @@ mkcd() { fi } fpath=(/usr/local/share/zsh-completions $fpath) fpath+=~/.zfunc compinit -
Gram21 revised this gist
Feb 18, 2019 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -277,6 +277,16 @@ pdfbuild() { pdflatex $1 && biber ${1%.*} && pdflatex $1 && pdflatex $1 } markdown2pdf() { if [ ! -n "$1" -o ! -f "$1" ]; then echo "Provide an existing input markdown file" elif [ ! "${1##*.}" = "md" ]; then echo "Provided file is no markdown file!" else pandoc $1 -f markdown -t latex -s -o ${1%.*}.pdf fi } fpath=(/usr/local/share/zsh-completions $fpath) fpath+=~/.zfunc compinit -
Gram21 revised this gist
Jul 20, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ chsh -s $(which zsh) sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # Automatically load the linux .zshrc from above curl https://gist.github.com/Gram21/35dc66c4673bb63fa8c1/raw/base.zshrc > ~/.zshrc -
Gram21 revised this gist
Jul 20, 2018 . 1 changed file with 81 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,81 @@ # Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="gnzh" # Texteditor and zshconfig aliases alias zshconfig="nano ~/.zshrc" # Set to this to use case-sensitive completion # CASE_SENSITIVE="true" # Comment this out to disable weekly auto-update checks # DISABLE_AUTO_UPDATE="true" # Uncomment following line if you want to disable colors in ls # DISABLE_LS_COLORS="true" # Uncomment following line if you want to disable autosetting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment following line if you want red dots to be displayed while waiting for completion COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(git repo python history-substring-search docker zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh # Customize to your needs... # Path for custom binaries, scripts, etc. # Set exa instead of ls alias ls="exa" alias l="exa -alh" # set ccat instead of cat alias cat="ccat" # Have no chaining duplicates (meaning only the latest command if same command executed multiple times) in hist export HISTCONTROL=ignoreboth:erasedups # Announce 256 bit color support export TERM=xterm-256color # Less gdb output #alias gdb='gdb -q' # Update pip packages alias pipupgrade="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U" alias pipupgrade_sudo="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo pip install -U" # we want to use ripgrep instead of grep. alias grep="echo Using rg instead of grep; rg" # # Create a new directory and cd into it # Similar to "mkdir xxx && cd $_" # mkcd() { if [ ! -n "$1" ]; then echo "Enter a directory name" elif [ -d $1 ]; then echo "\`$1' already exists" else mkdir $1 && cd $1 fi } fpath=(/usr/local/share/zsh-completions $fpath) fpath+=~/.zfunc compinit -
Gram21 revised this gist
May 28, 2018 . 2 changed files with 10 additions and 106 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -267,6 +267,16 @@ transfer() { rm -f $tmpfile } # uses pdflatex and biber to build a pdf out of a given tex file pdfbuild() { if [ $# -eq 0 ] then echo "No arguments supplied" return 1 fi pdflatex $1 && biber ${1%.*} && pdflatex $1 && pdflatex $1 } fpath=(/usr/local/share/zsh-completions $fpath) fpath+=~/.zfunc compinit This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,106 +0,0 @@ -
Gram21 revised this gist
Apr 30, 2018 . 1 changed file with 45 additions and 48 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ZSH_THEME="gnzh" alias sublime="subl" alias s="subl" alias zshconfig="subl ~/.zshrc" export SVN_EDITOR=subl # Set to this to use case-sensitive completion # CASE_SENSITIVE="true" @@ -30,7 +31,7 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(m cargo git mercurial repo python history-substring-search osx vagrant docker brew zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh @@ -48,40 +49,40 @@ alias l="exa -alh" # set ccat instead of cat alias cat="ccat" # set python2 as standard alias python="python2" alias pip="python2 /usr/local/lib/python2.7/site-packages/pip" # Rust path variables # LD_LIBRARY_PATH=$HOME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib # export PATH=/usr/local/sbin:/usr/local/bin:$PATH:$HOME/bin:$HOME/.cargo/bin # export RLS_ROOT=${HOME}/repos/rls # export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib # if [[ $(rustup show | sed '1,11d' | sed '2d') == nightly* ]]; then # export RUST_SRC_PATH="${HOME}/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" # #export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib # elif [[ $(rustup show | sed '1,11d' | sed '2d') == stable* ]]; then # export RUST_SRC_PATH="${HOME}/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" # #export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib # fi # rustup_stable() { # rustup default stable # export RUST_SRC_PATH="${HOME}/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" # #export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib # } # rustup_nightly() { # rustup default nightly # export RUST_SRC_PATH="${HOME}/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" # # export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib # } # for thefuck eval "$(thefuck --alias)" # Have no chaining duplicates (meaning only the latest command if same command executed multiple times) in hist export HISTCONTROL=ignoreboth:erasedups @@ -135,8 +136,8 @@ alias clang++='clang++ --std=c++11' alias pipupgrade="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U" alias pipupgrade_sudo="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo pip install -U" # # Update osx software # alias updateosx="sudo softwareupdate -ia" # osc show battery status alias battery='pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto' @@ -201,28 +202,24 @@ updateAndUpgrade() { rustup update echo "****************************************************************" echo "pip..." pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 python2 /usr/local/lib/python2.7/site-packages/pip install -U pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo -H python2 /usr/local/lib/python2.7/site-packages/pip install -U # echo "****************************************************************" # echo "radare2..." # cd "$HOME/repos/radare2" # sys/user.sh # cd - > /dev/null; } sshuttle_start_daemon() { sshuttle -D --dns --pidfile /tmp/.sshuttle.pid -r [email protected]:22 0/0 echo "Started sshuttle with pid $(cat /tmp/.sshuttle.pid)" } sshuttle_start() { sshuttle --dns -r [email protected]:22 0/0 } # # Share files using transfer.io # -
Gram21 revised this gist
Mar 19, 2018 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,6 +42,13 @@ export GOPATH="/usr/local/opt/go/libexec/bin" alias md5sum="md5" # Set exa instead of ls alias ls="exa" alias l="exa -alh" # set ccat instead of cat alias cat="ccat" # Rust path variables LD_LIBRARY_PATH=$HOME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib export PATH=/usr/local/sbin:/usr/local/bin:$PATH:$HOME/bin:$HOME/.cargo/bin @@ -266,3 +273,5 @@ transfer() { fpath=(/usr/local/share/zsh-completions $fpath) fpath+=~/.zfunc compinit export PATH="/usr/local/opt/python/libexec/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/sqlite/bin:$PATH" MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH" -
Gram21 revised this gist
May 16, 2017 . 1 changed file with 22 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,29 +38,34 @@ source $ZSH/oh-my-zsh.sh # Path for custom binaries, scripts, etc. # export PATH="/usr/local/sbin:$HOME/repos/go/bin:$PATH" export GOPATH="/usr/local/opt/go/libexec/bin" alias md5sum="md5" # Rust path variables LD_LIBRARY_PATH=$HOME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib export PATH=/usr/local/sbin:/usr/local/bin:$PATH:$HOME/bin:$HOME/.cargo/bin export RLS_ROOT=${HOME}/repos/rls export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib if [[ $(rustup show | sed '1,11d' | sed '2d') == nightly* ]]; then export RUST_SRC_PATH="${HOME}/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" #export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib elif [[ $(rustup show | sed '1,11d' | sed '2d') == stable* ]]; then export RUST_SRC_PATH="${HOME}/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" #export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib fi rustup_stable() { rustup default stable export RUST_SRC_PATH="${HOME}/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" #export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib } rustup_nightly() { rustup default nightly export RUST_SRC_PATH="${HOME}/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" # export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib } # for thefuck @@ -97,10 +102,10 @@ alias open_ports="show_open_ports" alias show_public_ip="curl -Ss icanhazip.com" alias public_ip="show_public_ip" alias copy_public_ip="show_public_ip | pbcopy" alias show_public_ip_v4="curl -Ss4 icanhazip.com/v4" alias public_ip_v4="show_public_ip_v4" alias copy_public_ip_v4="show_public_ip_v4 | pbcopy" alias show_public_ip_v6="curl -Ss6 icanhazip.com/v6" alias public_ip_v6="show_public_ip_v6" alias copy_public_ip_v6="show_public_ip_v6 | pbcopy" @@ -113,7 +118,7 @@ alias decode_clipboard="decode_clipboard_base64" alias base64_clipboard_decode="decode_clipboard_base64" # Less gdb output #alias gdb='gdb -q' # Use C++11 standard by default alias g++='g++ --std=c++11' @@ -180,10 +185,14 @@ mkcd() { # updateAndUpgrade() { echo "Start updating and upgrading. This may take a while" upgrade_oh_my_zsh echo "****************************************************************" echo "brew..." brew update --verbose && brew upgrade && brew cleanup echo "****************************************************************" echo "Updating rust" rustup update echo "****************************************************************" echo "pip..." pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo -H pip install -U @@ -195,12 +204,12 @@ updateAndUpgrade() { } sshuttle_start() { ip="$1" if [ -z ${ip} ]; then ip=$(dig +short cloud.janke.im) host="deploy@${ip}:22" else host=ip fi sshuttle -D --dns --pidfile /tmp/.sshuttle.pid -r $host 0/0 @@ -254,6 +263,6 @@ transfer() { rm -f $tmpfile } fpath=(/usr/local/share/zsh-completions $fpath) fpath+=~/.zfunc compinit -
Gram21 revised this gist
Mar 13, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -41,7 +41,7 @@ source $ZSH/oh-my-zsh.sh # export GOPATH="$HOME/repos/go/" # Rust path variables export PATH=/usr/local/sbin:/usr/local/bin:$PATH:$HOME/bin:$HOME/.cargo/bin export RLS_ROOT=${HOME}/repos/rls if [[ $(rustup show | sed '1,11d' | sed '2d') == nightly* ]]; then export RUST_SRC_PATH="${HOME}/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" -
Gram21 revised this gist
Mar 11, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -191,6 +191,7 @@ updateAndUpgrade() { echo "radare2..." cd "$HOME/repos/radare2" sys/user.sh cd - > /dev/null; } sshuttle_start() { -
Gram21 revised this gist
Mar 10, 2017 . 1 changed file with 10 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,32 +37,35 @@ source $ZSH/oh-my-zsh.sh # Customize to your needs... # Path for custom binaries, scripts, etc. # export PATH="/usr/local/sbin:$HOME/repos/go/bin:$PATH" # export GOPATH="$HOME/repos/go/" # Rust path variables export PATH=$PATH:$HOME/bin:$HOME/.cargo/bin export RLS_ROOT=${HOME}/repos/rls if [[ $(rustup show | sed '1,11d' | sed '2d') == nightly* ]]; then export RUST_SRC_PATH="${HOME}/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib; elif [[ $(rustup show | sed '1,11d' | sed '2d') == stable* ]]; then export RUST_SRC_PATH="${HOME}/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib fi rustup_stable() { rustup default stable export RUST_SRC_PATH="${HOME}/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib } rustup_nightly() { rustup default nightly export RUST_SRC_PATH="${HOME}/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib } # for thefuck eval "$(thefuck --alias)" # Force add of ssh key #ssh-add ~/.ssh/id_ed25519 &>/dev/null #ssh-add ~/.ssh/id_rsa &>/dev/null -
Gram21 revised this gist
Mar 8, 2017 . 1 changed file with 23 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,13 +39,29 @@ source $ZSH/oh-my-zsh.sh # Path for custom binaries, scripts, etc. # export PATH="/usr/local/sbin:/Users/JanKeim/repos/go/bin:$PATH" # export GOPATH="/Users/JanKeim/repos/go/" # Rust path variables export PATH=$PATH:$HOME/bin:/Users/JanKeim/.cargo/bin export RLS_ROOT=${HOME}/repos/rls if [[ $(rustup show | sed '1,11d' | sed '2d') == nightly* ]]; then export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib; export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" elif [[ $(rustup show | sed '1,11d' | sed '2d') == stable* ]]; then export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib fi rustup_stable() { rustup default stable export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib } rustup_nightly() { rustup default nightly export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/nightly-x86_64-apple-darwin/lib } # Force add of ssh key #ssh-add ~/.ssh/id_ed25519 &>/dev/null @@ -234,4 +250,6 @@ transfer() { rm -f $tmpfile } fpath+=~/.zfunc compinit -
Gram21 revised this gist
Mar 8, 2017 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/l export RLS_ROOT=${HOME}/repos/rls fpath+=~/.zfunc compinit # Force add of ssh key #ssh-add ~/.ssh/id_ed25519 &>/dev/null @@ -159,7 +160,6 @@ mkcd() { # Upgrade brew stuff, pip stuff and radare # updateAndUpgrade() { echo "Start updating and upgrading. This may take a while" echo "****************************************************************" echo "brew..." @@ -170,7 +170,8 @@ updateAndUpgrade() { pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo -H pip install -U echo "****************************************************************" echo "radare2..." cd "$HOME/repos/radare2" sys/user.sh } sshuttle_start() { -
Gram21 revised this gist
Mar 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -159,7 +159,7 @@ mkcd() { # Upgrade brew stuff, pip stuff and radare # updateAndUpgrade() { r2repo="$HOME/repos/radare2" echo "Start updating and upgrading. This may take a while" echo "****************************************************************" echo "brew..." -
Gram21 revised this gist
Mar 7, 2017 . 1 changed file with 24 additions and 33 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,9 +8,9 @@ ZSH=$HOME/.oh-my-zsh ZSH_THEME="gnzh" # Texteditor and zshconfig aliases alias sublime="subl" alias s="subl" alias zshconfig="subl ~/.zshrc" # Set to this to use case-sensitive completion # CASE_SENSITIVE="true" @@ -37,10 +37,13 @@ source $ZSH/oh-my-zsh.sh # Customize to your needs... # Path for custom binaries, scripts, etc. # export PATH="/usr/local/sbin:/Users/JanKeim/repos/go/bin:$PATH" # export GOPATH="/Users/JanKeim/repos/go/" export PATH=$PATH:$HOME/bin:/Users/JanKeim/.cargo/bin export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/" export DYLD_LIBRARY_PATH=${HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib export RLS_ROOT=${HOME}/repos/rls fpath+=~/.zfunc # Force add of ssh key @@ -112,36 +115,11 @@ alias \?="ddg" # we want to use ripgrep instead of grep. alias grep="echo Using rg instead of grep; rg" # Start Radare2 with -A flag. alias r2='r2 -AA' # Start ROPgadget automatically with a binary as first argument # alias ROPgadget='ROPgadget --binary' # # Highlights every occurande of the search pattern while displaying the whole content @@ -195,6 +173,19 @@ updateAndUpgrade() { ${r2repo}/sys/user.sh } sshuttle_start() { ip="$1" host="root@${ip}" if [ -z ${ip} ]; then ip=$(dig +short gramarye.ddns.net) host="pi@${ip}:2222" fi sshuttle -D --dns --pidfile /tmp/.sshuttle.pid -r $host 0/0 echo "Started sshuttle with pid $(cat /tmp/.sshuttle.pid)" } # # Share files using transfer.io # @@ -242,4 +233,4 @@ transfer() { rm -f $tmpfile } # test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh -
Gram21 revised this gist
Mar 5, 2017 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -177,6 +177,24 @@ mkcd() { fi } # # Upgrade brew stuff, pip stuff and radare # updateAndUpgrade() { r2repo="~/rand/radare2" echo "Start updating and upgrading. This may take a while" echo "****************************************************************" echo "brew..." brew update --verbose && brew upgrade && brew cleanup echo "****************************************************************" echo "pip..." pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo -H pip install -U echo "****************************************************************" echo "radare2..." ${r2repo}/sys/user.sh } # # Share files using transfer.io # -
Gram21 revised this gist
Feb 6, 2017 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -109,6 +109,9 @@ alias battery='pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto' # shortcut for web_search alias \?="ddg" # we want to use ripgrep instead of grep. alias grep="echo Using rg instead of grep; rg" # starting "idiot" as daemon alias idiot='idiot &' -
Gram21 revised this gist
Jan 26, 2017 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -106,6 +106,9 @@ alias updateosx="sudo softwareupdate -ia" # osc show battery status alias battery='pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto' # shortcut for web_search alias \?="ddg" # starting "idiot" as daemon alias idiot='idiot &' -
Gram21 revised this gist
Jan 26, 2017 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,6 +47,9 @@ fpath+=~/.zfunc #ssh-add ~/.ssh/id_ed25519 &>/dev/null #ssh-add ~/.ssh/id_rsa &>/dev/null # Have no chaining duplicates (meaning only the latest command if same command executed multiple times) in hist export HISTCONTROL=ignoreboth:erasedups # Set up rvm if installed if [ -d $HOME/.rvm ]; then export PATH=$PATH:$HOME/.rvm/bin -
Gram21 revised this gist
Jan 26, 2017 . 1 changed file with 0 additions and 20 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -143,26 +143,6 @@ highlight() { grep -E "$|$1" --color $2 } # # cat with syntax highlighting # -
Gram21 revised this gist
Jan 26, 2017 . 1 changed file with 11 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -71,11 +71,20 @@ alias open_ports="show_open_ports" alias show_public_ip="curl -Ss icanhazip.com" alias public_ip="show_public_ip" alias copy_public_ip="show_public_ip | pbcopy" alias show_public_ip_v4="curl -Ss icanhazip.com/v4" alias public_ip_v4="show_public_ip_v4" alias copy_public_ip_v4="show_public_ip_v4 | pbcopy" alias show_public_ip_v6="curl -Ss icanhazip.com/v6" alias public_ip_v6="show_public_ip_v6" alias copy_public_ip_v6="show_public_ip_v6 | pbcopy" # encode/decode currently copied as base64 alias encode_clipboard_base64="pbpaste | base64 | pbcopy" alias encode_clipboard="encode_clipboard_base64" alias base64_clipboard="encode_clipboard_base64" alias decode_clipboard_base64="pbpaste | base64 --decode | pbcopy" alias decode_clipboard="decode_clipboard_base64" alias base64_clipboard_decode="decode_clipboard_base64" # Less gdb output alias gdb='gdb -q' -
Gram21 revised this gist
Jan 26, 2017 . 2 changed files with 44 additions and 20 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,6 +67,36 @@ alias ctfboxup='ctfbox; vagrant up; vagrant ssh' alias show_open_ports="sudo lsof -i -n -P" alias open_ports="show_open_ports" # get public ip alias show_public_ip="curl -Ss icanhazip.com" alias public_ip="show_public_ip" alias copy_public_ip="show_public_ip | pbcopy" # encode currently copied as base64 alias encode_clipboard_base64="pbpaste | base64 | pbcopy" alias encode_clipboard="encode_clipboard_base64" alias base64_clipboard="encode_clipboard_base64" # Less gdb output alias gdb='gdb -q' # Use C++11 standard by default alias g++='g++ --std=c++11' alias clang++='clang++ --std=c++11' # Update pip packages alias pipupgrade="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U" alias pipupgrade_sudo="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo pip install -U" # Update osx software alias updateosx="sudo softwareupdate -ia" # osc show battery status alias battery='pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto' # starting "idiot" as daemon alias idiot='idiot &' # Start Radare2 with -A flag. alias r2='r2 -AA' @@ -76,9 +106,6 @@ alias ROPgadget='ROPgadget --binary' # Alias for quick asking questions with the help of howdoi alias how='howdoi ' # burp alias burp='open ~/vagrant/boxes/ctfbox/Burp/burpsuite_free_v1.6.32.jar' @@ -95,23 +122,6 @@ alias backdoor='~/rand/the-backdoor-factory/backdoor.py' alias msfconsole='sudo -E msfconsole' alias armitage='sudo -E armitage' # adb #alias adb="~/Library/Android/sdk/platform-tools/adb" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,6 +43,20 @@ fi # Announce 256 bit color support export TERM=xterm-256color # alias so we can use pbcopy and pbpaste in linux alias pbcopy='xclip -selection clipboard' alias pbpaste='xclip -selection clipboard -o' # get public ip alias show_public_ip="curl -Ss icanhazip.com" alias public_ip="show_public_ip" alias copy_public_ip="show_public_ip | pbcopy" # encode currently copied as base64 alias encode_clipboard_base64="pbpaste | base64 | pbcopy" alias encode_clipboard="encode_clipboard_base64" alias base64_clipboard="encode_clipboard_base64" # Less gdb output alias gdb='gdb -q' -
Gram21 revised this gist
Jan 22, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -44,8 +44,8 @@ export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/nightly-x86_64-apple- fpath+=~/.zfunc # Force add of ssh key #ssh-add ~/.ssh/id_ed25519 &>/dev/null #ssh-add ~/.ssh/id_rsa &>/dev/null # Set up rvm if installed if [ -d $HOME/.rvm ]; then -
Gram21 revised this gist
Jan 22, 2017 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,6 +43,10 @@ export GOPATH="/Users/JanKeim/repos/go/" export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" fpath+=~/.zfunc # Force add of ssh key ssh-add ~/.ssh/id_ed25519 &>/dev/null ssh-add ~/.ssh/id_rsa &>/dev/null # Set up rvm if installed if [ -d $HOME/.rvm ]; then export PATH=$PATH:$HOME/.rvm/bin @@ -212,4 +216,4 @@ transfer() { rm -f $tmpfile } test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh -
Gram21 revised this gist
Jan 22, 2017 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(m cargo git mercurial repo python history-substring-search osx vagrant docker brew pip zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh @@ -40,6 +40,7 @@ source $ZSH/oh-my-zsh.sh export PATH=$PATH:$HOME/bin:/Users/JanKeim/.cargo/bin export PATH="/usr/local/sbin:/Users/JanKeim/repos/go/bin:$PATH" export GOPATH="/Users/JanKeim/repos/go/" export RUST_SRC_PATH="/Users/JanKeim/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/" fpath+=~/.zfunc # Set up rvm if installed @@ -211,4 +212,4 @@ transfer() { rm -f $tmpfile } test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh -
Gram21 revised this gist
Jan 12, 2017 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(m git mercurial repo python cargo history-substring-search osx vagrant docker brew pip zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,7 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(git mercurial repo python cargo history-substring-search pip zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh -
Gram21 revised this gist
Dec 25, 2016 . 1 changed file with 12 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,14 +30,17 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(m git mercurial repo python history-substring-search osx vagrant docker brew pip zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh # Customize to your needs... # Path for custom binaries, scripts, etc. export PATH=$PATH:$HOME/bin:/Users/JanKeim/.cargo/bin export PATH="/usr/local/sbin:/Users/JanKeim/repos/go/bin:$PATH" export GOPATH="/Users/JanKeim/repos/go/" fpath+=~/.zfunc # Set up rvm if installed if [ -d $HOME/.rvm ]; then @@ -55,6 +58,10 @@ alias ctfboxup='ctfbox; vagrant up; vagrant ssh' # Good old netcat # alias nc=ncat # Mac list open ports alias show_open_ports="sudo lsof -i -n -P" alias open_ports="show_open_ports" # Start Radare2 with -A flag. alias r2='r2 -AA' @@ -84,8 +91,8 @@ alias msfconsole='sudo -E msfconsole' alias armitage='sudo -E armitage' # Update pip packages alias pipupgrade="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U" alias pipupgrade_sudo="pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo pip install -U" # Update osx software alias updateosx="sudo softwareupdate -ia" @@ -103,9 +110,6 @@ alias idiot='idiot &' # adb #alias adb="~/Library/Android/sdk/platform-tools/adb" # # Highlights every occurande of the search pattern while displaying the whole content # @@ -207,4 +211,4 @@ transfer() { rm -f $tmpfile } test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh -
Gram21 revised this gist
Dec 18, 2016 . 2 changed files with 3 additions and 23 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,11 +7,6 @@ ZSH=$HOME/.oh-my-zsh # time that oh-my-zsh is loaded. ZSH_THEME="gnzh" # Set to this to use case-sensitive completion # CASE_SENSITIVE="true" @@ -30,7 +25,7 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(git mercurial repo python history-substring-search pip zsh-syntax-highlighting encode64 web-search colored-man-pages extract) source $ZSH/oh-my-zsh.sh @@ -48,22 +43,9 @@ fi # Announce 256 bit color support export TERM=xterm-256color # Less gdb output alias gdb='gdb -q' # Update pip packages alias pipupgrade="pip list --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U" alias pipupgrade_sudo="pip list --outdated | cut -d ' ' -f1 | xargs -n1 sudo pip install -U" @@ -107,6 +89,4 @@ mkcd() { else mkdir $1 && cd $1 fi } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ chsh -s $(which zsh) sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # Automatically load the linux .zshrc from above curl https://gist.github.com/Gram21/35dc66c4673bb63fa8c1/raw/.zshrc_lin > ~/.zshrc
NewerOlder