server and test desktop confi

This commit is contained in:
Hactarus 2016-11-23 10:57:56 +01:00
parent e9b586f53b
commit 54bd5338d2
5 changed files with 37 additions and 0 deletions

13
.bash_aliases Normal file
View file

@ -0,0 +1,13 @@
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias ll='ls -lah'
alias la='ls -A'
alias flip="shuf -i 0-1 -n 1 | sed -e 's/1/Pile/' -e 's/0/Face/'"
alias dl="wget -r -k -T 5 -t 2 -U 'Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0' "

10
.bashrc Normal file
View file

@ -0,0 +1,10 @@
export PATH=$PATH:~/bin
export VISUAL=/bin/nano
export EDITOR=/bin/nano
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

1
.config/awesome Submodule

@ -0,0 +1 @@
Subproject commit ad59bf2e80752f86158da3d1fac50f8d6fd13b2a

2
bin/c Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
echo "$@" | bc -l

11
bin/pass Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
if [ $# -eq 1 ]; then
LENGTH=$1
else
LENGTH=8
fi
cat /dev/urandom| tr -dc 'a-zA-Z0-9' | fold -w $LENGTH| head -n 1
cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?='|fold -w $LENGTH| head -n 1| grep -i '[!@#$%^&*()_+{}|:<>?=]'
pw=$(pwgen -Bs $LENGTH)
echo $pw " " $(openssl passwd -1 -salt $(pwgen -s 8 -1) $pw)
pw=123456