From b51978af5cba173aef063a5145a01f1c5bcfc650 Mon Sep 17 00:00:00 2001 From: Andrew Holland Date: Wed, 10 May 2017 17:50:25 +0300 Subject: [PATCH 1/4] change the randmac alias --- aliases | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/aliases b/aliases index a7181c2..5ec1ab6 100644 --- a/aliases +++ b/aliases @@ -12,3 +12,19 @@ mktruckdir() { sudo mkdir ${1} sudo chown truck:truck ${1} } + +shitwin() { + xfreerdp2 /u:"Andrew Holland" +clipboard /jpeg /size:1918x1044 /v:192.168.1.92 /bpp:32 +} + +firewall-ssh() { + badssh -oKexAlgorithms=+diffie-hellman-group1-sha1 ntcadmin@77.86.234.126 +} + +randmac() { + dd if=/dev/urandom bs=4096 count=1 2>/dev/null | sha1sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/' +} + +randmacxen() { + dd if=/dev/urandom bs=4096 count=1 2>/dev/null | sha1sum| sed 's/^\(..\)\(..\)\(..\).*$/00:16:3E:\1:\2:\3'/ +} From 08908facebf1dc372d547f646bf3942b85916193 Mon Sep 17 00:00:00 2001 From: Andrew Holland Date: Wed, 10 May 2017 17:51:30 +0300 Subject: [PATCH 2/4] some local changes for scripts that fixed some things --- NF_pick.sh | 2 +- nflist | 4 ++-- powerline-shell-init | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 powerline-shell-init diff --git a/NF_pick.sh b/NF_pick.sh index 313e2ec..b327c0b 100755 --- a/NF_pick.sh +++ b/NF_pick.sh @@ -1,4 +1,4 @@ #!/bin/zsh -F=`dmenu -l 18 -fn 'Px437_ATI_SmallW_6x8 NF:style=Book:pixelsize=16:antialias=true' < /home/truck/bin/nflist` +F=`dmenu -l 18 -fn 'Px437_ATI_SmallW_6x8 NF:style=Book:pixelsize=16:antialias=true' < /home/andrew/bin/nflist` C=`ls ~/bin/st* |dmenu -l 8 -fn 'Px437_ATI_SmallW_6x8 NF:style=Book:pixelsize=16:antialias=true'` ${C} -f "${F}" diff --git a/nflist b/nflist index 61bd50f..9879532 100644 --- a/nflist +++ b/nflist @@ -21,9 +21,9 @@ Px437_ITT_BIOS NF:style=2y:pixelsize=16:antialias=true Px437_Phoenix_BIOS NF:style=2y:pixelsize=16:antialias=true Px437_PhoenixEGA_8x8 NF:style=2y:pixelsize=16:antialias=true - Px437_TandyNew_225 NF:style=2y:pixelsize=16:antialias=true + Px437_TandyNew_225 NF:style=2y:pixelsize=24:antialias=true Px437_TandyNew_TV NF:style=2y:pixelsize=16:antialias=true - Px437_TandyOld_225 NF:style=2y:pixelsize=16:antialias=true + Px437_TandyOld_225 NF:style=2y:pixelsize=24:antialias=true Px437_TandyOld_TV NF:style=2y:pixelsize=16:antialias=true Px437_Verite_8x8 NF:style=2y:pixelsize=16:antialias=true Px437_VTech_BIOS NF:style=2y:pixelsize=16:antialias=true diff --git a/powerline-shell-init b/powerline-shell-init old mode 100644 new mode 100755 index c740ea5..36558ae --- a/powerline-shell-init +++ b/powerline-shell-init @@ -1,5 +1,6 @@ function powerline_precmd() { - PS1="$(/home/truck/sturf/banga-powerline/powerline-shell.py $? --shell zsh 2> /dev/null)" +# PS1="$(~/powerline-shell.py $? --shell zsh 2> /dev/null)" + PS1="$(~/bin/powerline-shell/powerline-shell.py $? --colorize-hostname --cwd-max-depth 3 --cwd-max-dir-size 6 --shell zsh 2> /dev/null)" } function install_powerline_precmd() { From d9a9927cb768ea777ba5f56b57eac72c8ae686b9 Mon Sep 17 00:00:00 2001 From: Andrew Holland Date: Wed, 10 May 2017 17:52:28 +0300 Subject: [PATCH 3/4] let's just make it not depend on the 'andrew' login --- NF_pick.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NF_pick.sh b/NF_pick.sh index b327c0b..35ce709 100755 --- a/NF_pick.sh +++ b/NF_pick.sh @@ -1,4 +1,4 @@ #!/bin/zsh -F=`dmenu -l 18 -fn 'Px437_ATI_SmallW_6x8 NF:style=Book:pixelsize=16:antialias=true' < /home/andrew/bin/nflist` +F=`dmenu -l 18 -fn 'Px437_ATI_SmallW_6x8 NF:style=Book:pixelsize=16:antialias=true' < ~/bin/nflist` C=`ls ~/bin/st* |dmenu -l 8 -fn 'Px437_ATI_SmallW_6x8 NF:style=Book:pixelsize=16:antialias=true'` ${C} -f "${F}" From 3c14538ef7e5129e9833b1d7aee4f922ba50921a Mon Sep 17 00:00:00 2001 From: Andrew Holland Date: Wed, 10 May 2017 17:53:07 +0300 Subject: [PATCH 4/4] and the powerline setup cleanup --- powerline-shell-init | 1 - 1 file changed, 1 deletion(-) diff --git a/powerline-shell-init b/powerline-shell-init index 36558ae..1214740 100755 --- a/powerline-shell-init +++ b/powerline-shell-init @@ -1,5 +1,4 @@ function powerline_precmd() { -# PS1="$(~/powerline-shell.py $? --shell zsh 2> /dev/null)" PS1="$(~/bin/powerline-shell/powerline-shell.py $? --colorize-hostname --cwd-max-depth 3 --cwd-max-dir-size 6 --shell zsh 2> /dev/null)" }