summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-04-28 21:32:06 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-04-28 21:32:06 +0200
commitbc56e96dd3d2471b1cd8d086addc35d516aa272d (patch)
tree702bded3a6eaee867a12690a253c18f7d0c8929e /root
parentposodobi.sh (diff)
downloadn-bc56e96dd3d2471b1cd8d086addc35d516aa272d.tar
n-bc56e96dd3d2471b1cd8d086addc35d516aa272d.tar.gz
n-bc56e96dd3d2471b1cd8d086addc35d516aa272d.tar.bz2
n-bc56e96dd3d2471b1cd8d086addc35d516aa272d.tar.lz
n-bc56e96dd3d2471b1cd8d086addc35d516aa272d.tar.xz
n-bc56e96dd3d2471b1cd8d086addc35d516aa272d.tar.zst
n-bc56e96dd3d2471b1cd8d086addc35d516aa272d.zip
Diffstat (limited to 'root')
-rw-r--r--root/.bash_aliases27
1 files changed, 27 insertions, 0 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases
index 4bfda86..7dd4fa0 100644
--- a/root/.bash_aliases
+++ b/root/.bash_aliases
@@ -14,3 +14,30 @@ function c () {
gcc -g -Wall -Wextra -pedantic -Wformat -Wformat-security $@ -lm
}
alias pmbootstrap="pmbootstrap --as-root"
+function upload () {
+ chmod 0664 "$1"
+ sftp -b- upload@4a.si <<< "put '$1' www/`[ '$2'x = x ] && echo $1 || echo $2`"
+}
+HISTCONTORL=ignoreboth
+shopt -s histappend
+HISTSIZE=100000000
+HISTFILESIZE=1000000000
+function upload () {
+ chmod 0644 "$1"
+ d=`[ '$2'x = x ] && echo $1 || echo $2`
+ sftp -b- upload@upload <<< "put '$1' www/$d"
+ echo https://upload.sijanec.eu./$d | xclip
+}
+function mcd () {
+ mkdir -p $@ && cd $@
+}
+function ocd () {
+ cd $OLDPWD
+}
+alias gdb="gdb -q"
+alias x11vnc="x11vnc -repeat -multiptr"
+alias digs="dig +nocomments +noquestion +nostats +norrcomments +nocmd"
+alias nc="nc -v"
+alias m=make
+export EDITOR=/usr/bin/vim
+ulimit -c unlimited # core dumps