inital commit

This commit is contained in:
Hactarus 2018-05-22 12:50:58 +00:00
parent 356fd76671
commit 21a3f05d47
21 changed files with 366 additions and 1100 deletions

2
bin/c
View file

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

View file

@ -1,4 +0,0 @@
#!/bin/bash
_SERVER="https://paste.cresi.be"
a=$(cat);
curl -X POST -s -d "$a" ${_SERVER}/documents | awk -F '"' '{print "'${_SERVER}'/"$4}';

View file

@ -1,12 +0,0 @@
#!/bin/bash
for _FILE in .bashrc bin .vim .vimrc .zshrc
do
if [ ! -L $HOME/$_FILE ]; then
if [[ -f $HOME/$_FILE ]]; then
mv $HOME/$_FILE $HOME/$_FILE.bak
fi
ln -s "$HOME/dotfiles/$_FILE" "$HOME/$_FILE"
fi
done
rsync -av "$HOME/dotfiles/.config" "$HOME/.config"

View file

@ -1,11 +0,0 @@
#!/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