X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=a4c0589d5c627920c30fe6869c1e71e70e9d57f4;hb=0310db0c0589445a132e77f0b7a8fbb5e1ae3082;hp=fbc1acb2f653cc50467d6aeb9f6ff036cfc32c7a;hpb=b5152768e90016afe8ff2d55cc9f38d08396b0fc;p=distro-setup diff --git a/brc b/brc index fbc1acb..a4c0589 100644 --- a/brc +++ b/brc @@ -152,7 +152,7 @@ HISTCONTROL=ignoredups # works in addition to HISTCONTROL to do more flexible things # it could also do the same things as HISTCONTROL and thus replace it, # but meh. dunno why, but just " *" does glob expansion, so use [ ] to avoid it. -HISTIGNORE='k *:[ ]*' +HISTIGNORE='pass *:k *:[ ]*' export BC_LINE_LENGTH=0 @@ -568,9 +568,11 @@ fastboot() { /a/opt/android-platform-tools/fastboot "$@"; } +kdecd() { /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd; } # List of apps to install/update # Create from existing manually installed apps by doing +# fdroidcl update # fdroidcl search -i, then manually removing # automatically installed/preinstalled apps @@ -589,8 +591,8 @@ fastboot() { # usually good enough to just rm -rf /data/app/APPNAME # # currently broken: -#at.bitfire.davdroid fdroid_pkgs=( + at.bitfire.davdroid com.alaskalinuxuser.justnotes com.artifex.mupdfdemo com.fsck.k9 @@ -615,6 +617,7 @@ fdroid_pkgs=( org.quantumbadger.redreader org.smssecure.smssecure org.fedorahosted.freeotp + org.yaaic ) # https://forum.xda-developers.com/android/software-hacking/wip-selinux-capable-superuser-t3216394 # for maru, @@ -951,6 +954,10 @@ else } fi +ipdrop() { + s iptables -A INPUT -s $1 -j DROP +} + net-dev-info() { e "lspci -nnk|gr -iA2 net" lspci -nnk|gr -iA2 net @@ -970,7 +977,7 @@ jtail() { } kff() { # keyboardio firmware flash - pushd /a/opt/sketches/Model01-Firmware + pushd /a/bin/distro-setup/Arduino/Model01-Firmware yes $'\n' | make flash popd } @@ -1527,7 +1534,7 @@ t() { declare -gi _seq; _seq+=1 echo "test body" | m mail -s "test mail from $HOSTNAME, $_seq" "${@:-root@localhost}" # for testing to send from an external address, you can do for example - # -aFrom:ian@iank.bid web-6fnbs@mail-tester.com + # -fian@iank.bid -aFrom:ian@iank.bid web-6fnbs@mail-tester.com # note in exim, you can retry a deferred message # s exim -M MSG_ID # MSG_ID is in /var/log/exim4/mainlog, looks like 1ccdnD-0001nh-EN @@ -1627,10 +1634,10 @@ m() { printf "%s\n" "$*"; "$@"; } vpncmd() { - m s nsenter -t $(pgrep -f "/usr/sbin/openvpn .* --config /etc/openvpn/client/client.conf") -n -m "$@" + m s nsenter -t $(pgrep -f "/usr/sbin/openvpn .* --config /etc/openvpn/.*client.conf") -n -m "$@" } vpnf() { - vpncmd gksudo -u ian "firefox -no-remote -P firefox-main-profile" &r + vpncmd gksudo -u iank "firefox -no-remote -P firefox-main-profile" &r } vpnbash() { vpncmd bash