install-my-scripts
switch-mail-host $HOSTNAME $1
}
+lipush() {
+ rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \
+ --exclude-from=/p/c/li-rsync-excludes /a/bin /a/exe /a/h /a/c /p/c/machine_specific/li /a/opt/{emacs,emacs-debianstable,mu} root@li:/
+}
+lipushnoe() {
+ rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \
+ --exclude-from=/p/c/li-rsync-excludes /a/bin /a/exe /a/h /a/c /p/c/machine_specific/li root@li:/
+}
btc() {
done < <(find "$@" -print0);
}
-faf() { # find all files
- find -L $1 -not \( -name .svn -prune -o -name .git -prune \
+faf() { # find all files. use -L to follow symlinks
+ find $@ -not \( -name .svn -prune -o -name .git -prune \
-o -name .hg -prune -o -name .editor-backups -prune \
-o -name .undo-tree-history -prune \) -type f 2>/dev/null
}
hstatus() {
# do git status on published repos
- cd /a/bin/githtml
+ c /a/bin/githtml
for x in *; do
cd $(readlink -f $x)/..
status=$(i status -s) || pwd
[[ -e $src ]] || { set +x; return 1; }
mv -T $src $dst || { set +x; return 1; }
ln -s -T $dst $src
- /a/exe/lnf /p/.mu ~
+ /a/exe/lnf /m/.mu ~
mu index --maildir=/m/4e
set +x
}
sudo virsh dumpxml $2|grep "<graphics.*type='spice'" | \
sed -rn "s/.*port='([0-9]+).*/\1/p"
EOF
- )
+ )
if [[ $port ]]; then
spicy -h $1 -p $port
else
# note, for exim daemon, you can turn on debug options by
# adding -d, etc to COMMONOPTIONS in
# /etc/default/exim4
- exim -d -t <<'EOF'
+# exim -d -t <<'EOF'
+ exim -i 'test@zroe.org, t2@zroe.org' <<'EOF'
From: ian@iankelling.org
-To: root@lists0p.fsf.org
+To: test@zroe.org, t2@zroe.org
Subject: Testing Exim
This is a test message.
if [[ -e $1 && ! -w $1 || ! -w $(dirname "$1") ]]; then
s=s;
fi
- $s teeu "$@"
+ # full path for using in some initial setup steps
+ $s /a/exe/teeu "$@"
}
tx() { # toggle set -x, and the prompt so it doesnt spam
# taken from default changes to bashrc and bash_profile
path_add --end $HOME/.rvm/bin
+path_add --end $HOME/.gem/ruby/2.3.0/bin
# shellcheck disable=SC1090
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export BASEFILE_DIR=/a/bin/fai-basefiles
-export ANDROID_HOME=/opt/android
+#export ANDROID_HOME=/a/opt/android-home
+# https://f-droid.org/en/docs/Installing_the_Server_and_Repo_Tools/
+#export USE_SDK_WRAPPER=yes
+#PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
# didnt get drush working, if I did, this seems like the
# only good thing to include for it.