inital commit
This commit is contained in:
parent
356fd76671
commit
21a3f05d47
21 changed files with 366 additions and 1100 deletions
2
bin/c
2
bin/c
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
echo "$@" | bc -l
|
|
@ -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}';
|
12
bin/initenv
12
bin/initenv
|
@ -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"
|
11
bin/pass
11
bin/pass
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue