diff options
| -rw-r--r-- | FreeBSD/root/.profile | 54 | ||||
| -rw-r--r-- | FreeBSD/user/.profile | 60 | ||||
| -rw-r--r-- | Gentoo/root/.bashrc | 32 | ||||
| -rw-r--r-- | Gentoo/user/.bashrc | 101 |
4 files changed, 247 insertions, 0 deletions
diff --git a/FreeBSD/root/.profile b/FreeBSD/root/.profile new file mode 100644 index 0000000..7e29455 --- /dev/null +++ b/FreeBSD/root/.profile | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | # $FreeBSD: stable/12/bin/sh/dot.profile 338374 2018-08-29 16:59:19Z brd $ | ||
| 2 | # | ||
| 3 | PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin | ||
| 4 | export PATH | ||
| 5 | HOME=/root | ||
| 6 | export HOME | ||
| 7 | TERM=${TERM:-xterm} | ||
| 8 | export TERM | ||
| 9 | PAGER=less | ||
| 10 | export PAGER | ||
| 11 | |||
| 12 | # Query terminal size; useful for serial lines. | ||
| 13 | if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi | ||
| 14 | |||
| 15 | # Uncomment to display a random cookie on each login. | ||
| 16 | # if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi | ||
| 17 | |||
| 18 | |||
| 19 | ## Custom settings ## | ||
| 20 | PS1="[\[\033[01;32m\]\u\[\033[00m\]@\h \w]\\$ "; export PS1 | ||
| 21 | |||
| 22 | export HISTSIZE=10000 | ||
| 23 | export HISTCONTROL=ignorespace:erasedups | ||
| 24 | shopt -s checkwinsize | ||
| 25 | |||
| 26 | alias s='screen -r' | ||
| 27 | alias vi='vim' | ||
| 28 | alias invoke='/usr/local/bin/invoke -p' | ||
| 29 | alias pfssh='pfctl -t ssh_abusers -T show | tr -d " "' | ||
| 30 | alias pfexempted='pfctl -t ssh_exempted -T show | tr -d " "' | ||
| 31 | alias pfhttp='pfctl -t http_abusers -T show | tr -d " "' | ||
| 32 | alias pfsmtp='pfctl -t smtp_abusers -T show | tr -d " "' | ||
| 33 | alias pftelnet='pfctl -t telnet_abusers -T show | tr -d " "' | ||
| 34 | alias pfscanner='pfctl -v -t scanner_abusers -T show | tr -d " "' | ||
| 35 | alias pfsshscanner='pfctl -v -t ssh_scanner_abusers -T show | tr -d " "' | ||
| 36 | alias pfpermitted='pfctl -t ssh_permitted_networks -T show | tr -d " "' | ||
| 37 | alias pfadd='pfctl -t ssh_abusers -T add' | ||
| 38 | alias pfdel='pfctl -t ssh_abusers -T delete' | ||
| 39 | # alias snfs='service nfsd stop && service mountd stop && service rpcbind stop' | ||
| 40 | |||
| 41 | export LANG=en_US.UTF-8 | ||
| 42 | export EDITOR=/usr/local/bin/emacs | ||
| 43 | |||
| 44 | export PASSPHRASE=foo | ||
| 45 | |||
| 46 | alias dstatus='/usr/local/bin/duplicity collection-status --name mbox_regular_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/MagnumBOX/' | ||
| 47 | alias drstatus='/usr/local/bin/duplicity collection-status --name mbox_remote_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/MagnumBOX/' | ||
| 48 | |||
| 49 | alias dremove='/usr/local/bin/duplicity remove-all-but-n-full 5 --name mbox_regular_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B --log-file /var/log/duplicity.log --verbosity notice rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/MagnumBOX/' | ||
| 50 | alias drremove='/usr/local/bin/duplicity remove-all-but-n-full 7 --name mbox_remote_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B --log-file /var/log/duplicity.log --verbosity notice rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/MagnumBOX/' | ||
| 51 | |||
| 52 | # enable bash-completion | ||
| 53 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ | ||
| 54 | source /usr/local/share/bash-completion/bash_completion.sh | ||
diff --git a/FreeBSD/user/.profile b/FreeBSD/user/.profile new file mode 100644 index 0000000..c9551c4 --- /dev/null +++ b/FreeBSD/user/.profile | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | # $FreeBSD: stable/12/share/skel/dot.profile 337497 2018-08-08 19:24:20Z asomers $ | ||
| 2 | # | ||
| 3 | # .profile - Bourne Shell startup script for login shells | ||
| 4 | # | ||
| 5 | # see also sh(1), environ(7). | ||
| 6 | # | ||
| 7 | |||
| 8 | # These are normally set through /etc/login.conf. You may override them here | ||
| 9 | # if wanted. | ||
| 10 | # PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH | ||
| 11 | # BLOCKSIZE=K; export BLOCKSIZE | ||
| 12 | |||
| 13 | # Setting TERM is normally done through /etc/ttys. Do only override | ||
| 14 | # if you're sure that you'll never log in via telnet or xterm or a | ||
| 15 | # serial line. | ||
| 16 | # TERM=xterm; export TERM | ||
| 17 | |||
| 18 | EDITOR=emacs; export EDITOR | ||
| 19 | PAGER=less; export PAGER | ||
| 20 | |||
| 21 | # set ENV to a file invoked each time sh is started for interactive use. | ||
| 22 | ENV=$HOME/.shrc; export ENV | ||
| 23 | |||
| 24 | # Query terminal size; useful for serial lines. | ||
| 25 | if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi | ||
| 26 | |||
| 27 | |||
| 28 | ## customs ## | ||
| 29 | export PS1="[\u@\[\033[0;32m\]\H\[\033[00m\] \w]\\$ " | ||
| 30 | |||
| 31 | export HISTSIZE=10000 | ||
| 32 | export HISTCONTROL=ignorespace:erasedups | ||
| 33 | export CLICOLOR=yes | ||
| 34 | shopt -s checkwinsize | ||
| 35 | |||
| 36 | alias s='screen -r' | ||
| 37 | alias home='cd /usr/local/www/data-dist/simeon' | ||
| 38 | alias youtube-dl='/usr/local/bin/youtube-dl -f best -o "%(title)s.%(ext)s"' | ||
| 39 | |||
| 40 | # logins # | ||
| 41 | alias bb='ssh -2 -4 sb' | ||
| 42 | alias lblackmore='ssh -2 -4 b' | ||
| 43 | alias lfg='ssh -2 -4 fg' | ||
| 44 | alias lheep='/usr/local/bin/ssh -2 -4 hb' | ||
| 45 | alias lrasp='ssh -2 -4 rp' | ||
| 46 | alias glover='ssh -2 -4 gl' | ||
| 47 | alias lsbjail01='ssh -2 -4 sb-jail01' | ||
| 48 | alias lsbjail02='ssh -2 -4 sb-jail02' | ||
| 49 | ########## | ||
| 50 | |||
| 51 | ## mutt ## | ||
| 52 | alias mgsgs='mutt -F ~/.muttrc.sgs_gmail' | ||
| 53 | alias mblackmore='mutt -F ~/.muttrc.pichove' | ||
| 54 | alias mgueorgss='mutt -F ~/.muttrc.gueorgss_gmail' | ||
| 55 | ########## | ||
| 56 | |||
| 57 | export LANG=en_US.UTF-8 | ||
| 58 | |||
| 59 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ | ||
| 60 | source /usr/local/share/bash-completion/bash_completion.sh | ||
diff --git a/Gentoo/root/.bashrc b/Gentoo/root/.bashrc new file mode 100644 index 0000000..4771ca7 --- /dev/null +++ b/Gentoo/root/.bashrc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # .bashrc | ||
| 2 | |||
| 3 | # User specific aliases and functions | ||
| 4 | |||
| 5 | PS1="[\[\033[01;32m\]\u\[\033[00m\]@\h \w]\\$ "; export PS1 | ||
| 6 | |||
| 7 | export HISTSIZE=10000 | ||
| 8 | export HISTCONTROL=ignorespace:erasedups | ||
| 9 | shopt -s checkwinsize | ||
| 10 | |||
| 11 | alias esync='/usr/bin/eix-sync' | ||
| 12 | |||
| 13 | export PASSPHRASE="foo" | ||
| 14 | |||
| 15 | alias fduplicity_regular='/usr/bin/duplicity full --name blackmore_regular_backup --include-filelist /mnt/edisk/Backups/duplicity/regular_backup.txt --exclude / --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 --log-file /var/log/duplicity.log --verbosity notice --volsize 500 / rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/Blackmore/' | ||
| 16 | alias iduplicity_regular='/usr/bin/duplicity incremental --name blackmore_regular_backup --include-filelist /mnt/edisk/Backups/duplicity/regular_backup.txt --exclude / --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 --log-file /var/log/duplicity.log --verbosity notice --volsize 500 / rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/Blackmore/' | ||
| 17 | |||
| 18 | alias fduplicity_remote='/usr/bin/duplicity full --name blackmore_remote_backup --include-filelist /mnt/edisk/Backups/duplicity/remote_backup.txt --exclude / --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 --log-file /var/log/duplicity.log --verbosity notice --volsize 500 / rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/Blackmore/' | ||
| 19 | alias iduplicity_remote='/usr/bin/duplicity incremental --name blackmore_remote_backup --include-filelist /mnt/edisk/Backups/duplicity/remote_backup.txt --exclude / --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 --log-file /var/log/duplicity.log --verbosity notice --volsize 500 / rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/Blackmore/' | ||
| 20 | |||
| 21 | alias dstatus='/usr/bin/duplicity collection-status --name blackmore_regular_backup --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/Blackmore/' | ||
| 22 | alias drstatus='/usr/bin/duplicity collection-status --name blackmore_remote_backup --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/Blackmore/' | ||
| 23 | |||
| 24 | alias dremove='/usr/bin/duplicity remove-all-but-n-full 1 --name blackmore_regular_backup --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/Blackmore/' | ||
| 25 | alias drremove='/usr/bin/duplicity remove-all-but-n-full 1 --name blackmore_remote_backup --archive-dir /mnt/edisk/Backups/duplicity/archive --tempdir /mnt/edisk/Backups/duplicity/tmp --encrypt-sign-key DE0FFF2DD08D3B081361419A0072FA441022AD16 rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/Blackmore/' | ||
| 26 | |||
| 27 | alias youtube-dl='/usr/bin/youtube-dl -f best -o "%(title)s.%(ext)s"' | ||
| 28 | |||
| 29 | # Source global definitions | ||
| 30 | ##if [ -f /etc/bashrc ]; then | ||
| 31 | ## . /etc/bashrc | ||
| 32 | ##fi | ||
diff --git a/Gentoo/user/.bashrc b/Gentoo/user/.bashrc new file mode 100644 index 0000000..d9e7c29 --- /dev/null +++ b/Gentoo/user/.bashrc | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | # .bashrc | ||
| 2 | |||
| 3 | # User specific aliases and functions | ||
| 4 | # | ||
| 5 | # This file is sourced by all *interactive* bash shells on startup, | ||
| 6 | # including some apparently interactive shells such as scp and rcp | ||
| 7 | # that can't tolerate any output. So make sure this doesn't display | ||
| 8 | # anything or bad things will happen ! | ||
| 9 | |||
| 10 | if [[ $- != *i* ]] ; then | ||
| 11 | # Shell is non-interactive. Be done now! | ||
| 12 | return | ||
| 13 | fi | ||
| 14 | |||
| 15 | |||
| 16 | source /home/sgs/.git-prompt.sh | ||
| 17 | |||
| 18 | ##PS1="[\u@\[\033[0;32m\]\h\[\033[0;37m\] \w]\\$ "; export PS1 | ||
| 19 | export PS1='[\u@\[\033[00;32m\]\h\[\033[00m\] \w$(__git_ps1 " (%s)")]\\$ ' | ||
| 20 | |||
| 21 | # check the window size after each command and, if necessary, | ||
| 22 | # update the values of LINES and COLUMNS. | ||
| 23 | ## shopt -s checkwinsize | ||
| 24 | |||
| 25 | export HISTSIZE=10000 | ||
| 26 | export HISTCONTROL=ignorespace:erasedups | ||
| 27 | shopt -s checkwinsize | ||
| 28 | |||
| 29 | alias ls='ls --color=auto' | ||
| 30 | |||
| 31 | alias s='screen -r' | ||
| 32 | alias tmplayer='mplayer -fs -ao alsa:noblock:device=hw=1.7' | ||
| 33 | alias mplayer='mplayer -fs' | ||
| 34 | alias mpv='mpv -fs' | ||
| 35 | alias youtube-dl='/usr/bin/youtube-dl -f best -o "%(title)s.%(ext)s"' | ||
| 36 | ##alias horizons='telnet ssd.jpl.nasa.gov 6775' | ||
| 37 | |||
| 38 | ##alias lgdm='/usr/libexec/lightdm/gdmflexiserver -l' | ||
| 39 | alias lgdm='/usr/bin/dm-tool switch-to-user videouser' | ||
| 40 | alias zgdm='/usr/bin/dm-tool switch-to-user zuzanna' | ||
| 41 | alias aoslo='curl -4 wttr.in/Oslo' | ||
| 42 | ##################### | ||
| 43 | |||
| 44 | # audio # | ||
| 45 | alias adefault='pacmd set-card-profile 0 off && pacmd set-card-profile 1 output:analog-stereo+input:analog-stereo' | ||
| 46 | alias ahdmi='pacmd set-card-profile 1 off && pacmd set-card-profile 0 output:hdmi-stereo-extra1' | ||
| 47 | ######### | ||
| 48 | |||
| 49 | alias ssocks='ssh -2 -4 -N -n -T -D 9999' | ||
| 50 | |||
| 51 | #export GREP_OPTIONS="--exclude-dir=.svn" | ||
| 52 | |||
| 53 | export EDITOR=emacs | ||
| 54 | #export PYTHONSTARTUP=~/.pythonrc.py | ||
| 55 | #export ANSIBLE_HOSTS=~/.ansible.hosts | ||
| 56 | export QT_SELECT=qt5 | ||
| 57 | ##export XTERM_SHELL=/bin/bash | ||
| 58 | ##export XTERM_LOCALE=en_US.utf8 | ||
| 59 | # export TSOCKS_CONF_FILE='/home/sgs/.tsocks.conf' | ||
| 60 | # export TSOCKS_USERNAME='foo' | ||
| 61 | # export TSOCKS_PASSWORD='bar' | ||
| 62 | |||
| 63 | alias aleksander_video='/usr/local/bin/aleksander_video.py -d /mnt/edisk/phome/sgs -A /mnt/edisk/Video/Clips/Family/Aleks' | ||
| 64 | |||
| 65 | # ./fgallery -i -c txt --index http://gnulover.simeonov.no/galleries/ --quality 100 ~/pics/2016/2016-Processed-Web ~/2016 2016 | ||
| 66 | |||
| 67 | ## nvidia-settings ## | ||
| 68 | # if [[ $HOSTNAME != "BlackmoreX" ]] | ||
| 69 | # then | ||
| 70 | # alias dmonitoronly='xrandr --output DVI-I-1 --mode 1920x1080 --primary --output HDMI-1 --off' | ||
| 71 | # alias dtvonly='xrandr --output HDMI-1 --mode 1920x1080 --primary --output DVI-I-1 --off' | ||
| 72 | # alias dclone='xrandr --output DVI-I-1 --mode 1920x1080 --output HDMI-1 --mode 1920x1080' | ||
| 73 | # else | ||
| 74 | # alias dmonitoronly='nvidia-settings --assign CurrentMetaMode="DFP-0: 1920x1080 +0+0"' | ||
| 75 | # alias dtvonly='nvidia-settings --assign CurrentMetaMode="DFP-1: 1920x1080 +0+0"' | ||
| 76 | # alias dclone='nvidia-settings --assign CurrentMetaMode="DFP-0: 1920x1080 +0+0, DFP-1: 1920x1080 +0+0"' | ||
| 77 | # fi | ||
| 78 | |||
| 79 | # alias dmonitoronly='xrandr --output DVI-I-1 --mode 1920x1080 --primary --output HDMI-1 --off' | ||
| 80 | # alias dtvonly='xrandr --output HDMI-1 --mode 1920x1080 --primary --output DVI-I-1 --off' | ||
| 81 | # alias dclone='xrandr --output DVI-I-1 --mode 1920x1080 --output HDMI-1 --mode 1920x1080' | ||
| 82 | |||
| 83 | alias dleftonly='xrandr --output HDMI-1 --mode 2560x1440 --primary --output DVI-D-1 --off' | ||
| 84 | alias dboth='xrandr --output HDMI-1 --mode 2560x1440 --primary --output DVI-D-1 --mode 2560x1440 --right-of HDMI-1' | ||
| 85 | alias dclone='xrandr --output HDMI-1 --mode 2560x1440 --output DVI-D-1 --mode 2560x1440' | ||
| 86 | ##################### | ||
| 87 | |||
| 88 | ## Programming ## | ||
| 89 | export PYTHONPATH=~/.pythonpath | ||
| 90 | alias eminicms='source /home/sgs/development/venvs/django_markwhat/bin/activate' | ||
| 91 | alias ppsql='psql -h db.pichove.org' | ||
| 92 | ################# | ||
| 93 | |||
| 94 | export FLASK_DEBUG=1 | ||
| 95 | export FLASK_ENV=development | ||
| 96 | # export FLASK_APP=utils.py | ||
| 97 | |||
| 98 | #export TERM=xterm-256color | ||
| 99 | # export TERMCAP= | ||
| 100 | alias invoke='/home/sgs/development/venvs/venvInvoke/bin/invoke' | ||
| 101 | # cvlc -vvv alsa://hw:1,0 --sout '#transcode{vcodec=none,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{dst=10.0.1.16,port=1234,sdp=rtsp://10.0.1.16:8001/test.sdp}' | ||
