Merge branch 'master' of gitlab.com:megabyte-labs/dotfiles
This commit is contained in:
commit
6b6c4e3191
2 changed files with 1 additions and 37 deletions
|
@ -6,3 +6,4 @@ ColorCursor=#C3C7D1
|
||||||
ColorCursorUseDefault=FALSE
|
ColorCursorUseDefault=FALSE
|
||||||
ScrollingUnlimited=TRUE
|
ScrollingUnlimited=TRUE
|
||||||
FontUseSystem=TRUE
|
FontUseSystem=TRUE
|
||||||
|
MiscDefaultGeometry=124x35
|
||||||
|
|
|
@ -44,16 +44,6 @@ cl() {
|
||||||
ls -F --color=auto
|
ls -F --color=auto
|
||||||
}
|
}
|
||||||
|
|
||||||
# Open bash with local Docker file
|
|
||||||
dockerssh() {
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
echo "Supply a Docker container name in order for this command to work."
|
|
||||||
echo "Usage: dockerssh <container_name>"
|
|
||||||
else
|
|
||||||
docker exec -it $1 /bin/bash
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Checks status of a website on downforeveryoneorjustme.com
|
# Checks status of a website on downforeveryoneorjustme.com
|
||||||
down4me() {
|
down4me() {
|
||||||
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g';
|
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g';
|
||||||
|
@ -78,24 +68,6 @@ macosx() {
|
||||||
docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:big-sur
|
docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:big-sur
|
||||||
}
|
}
|
||||||
|
|
||||||
# Used to provision machines using Ansible
|
|
||||||
provision () {
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
# Display usage if no parameters are given
|
|
||||||
echo "Usage: provision <ansible_inventory_name>"
|
|
||||||
echo "If an inventory name of 'test' is provided then the inventory should exist in inventories/test.yml"
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
cd ~/Playbooks
|
|
||||||
ansible-galaxy install -r requirements.yml
|
|
||||||
if [ -z "$2" ]; then
|
|
||||||
ansible-playbook --ask-vault-pass -i inventories/"$1".yml main.yml
|
|
||||||
else
|
|
||||||
ansible-playbook --ask-vault-pass -i inventories/"$1".yml "$2".yml
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Run the quickstart script
|
# Run the quickstart script
|
||||||
quickstart() {
|
quickstart() {
|
||||||
if command -v qvm-run > /dev/null; then
|
if command -v qvm-run > /dev/null; then
|
||||||
|
@ -144,9 +116,6 @@ alias autheliapassword='docker run authelia/authelia:latest authelia hash-passwo
|
||||||
# Shows IP addresses that are currently banned by fail2ban
|
# Shows IP addresses that are currently banned by fail2ban
|
||||||
alias banned='sudo zgrep "Ban" /var/log/fail2ban.log*'
|
alias banned='sudo zgrep "Ban" /var/log/fail2ban.log*'
|
||||||
|
|
||||||
# Removes all Ansible roles saved in ~/.ansible
|
|
||||||
alias clearroles='rm -rf ~/.ansible/roles/*'
|
|
||||||
|
|
||||||
alias connections='nm-connection-editor'
|
alias connections='nm-connection-editor'
|
||||||
|
|
||||||
# Make copy command verbose
|
# Make copy command verbose
|
||||||
|
@ -155,9 +124,6 @@ alias cp='cp -v'
|
||||||
# Copies with a progress bar
|
# Copies with a progress bar
|
||||||
alias cpv='rsync -ah --info=progress2'
|
alias cpv='rsync -ah --info=progress2'
|
||||||
|
|
||||||
# Reload docker-compose.yml
|
|
||||||
alias docker-reboot='docker-compose stop && docker-compose up -d'
|
|
||||||
|
|
||||||
# Download a file
|
# Download a file
|
||||||
alias download='curl --continue-at - --location --progress-bar --remote-name --remote-time'
|
alias download='curl --continue-at - --location --progress-bar --remote-name --remote-time'
|
||||||
|
|
||||||
|
@ -227,9 +193,6 @@ alias sshconfig='${EDITOR:code} ~/.ssh/config'
|
||||||
# Pastebin
|
# Pastebin
|
||||||
alias sprunge='curl -F "sprunge=<-" http://sprunge.us'
|
alias sprunge='curl -F "sprunge=<-" http://sprunge.us'
|
||||||
|
|
||||||
# Alias for sudo vim
|
|
||||||
alias svim='sudo vim'
|
|
||||||
|
|
||||||
# Disable Tor for current shell
|
# Disable Tor for current shell
|
||||||
alias toroff='source torsocks off'
|
alias toroff='source torsocks off'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue