multiple changes...
This commit is contained in:
parent
b9ad699760
commit
b091585edb
7 changed files with 39 additions and 5 deletions
|
@ -1 +1 @@
|
|||
ayu-light.colourscheme
|
||||
sourcerer.colourscheme
|
14
simpleDots/bin/p
Executable file
14
simpleDots/bin/p
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
## A wrapper for pass to use fzf to find passwords.
|
||||
|
||||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
|
||||
password=$(printf '%s\n' "${password_files[@]}" | fzf "$@")
|
||||
|
||||
[[ -n $password ]] || exit
|
||||
|
||||
pass show -c "$password" 2>/dev/null
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Reconnect a Fritz.Box with activated UPnP
|
||||
|
||||
oldIp=$(curl -s https://canihazip.com/s)
|
||||
oldIp=$(curl -s https://v4.ident.me)
|
||||
|
||||
curl "http://fritz.box:49000/igdupnp/control/WANIPConn1" \
|
||||
-H 'Content-Type: text/xml; charset="utf-8"' \
|
||||
|
@ -19,7 +19,7 @@ curl "http://fritz.box:49000/igdupnp/control/WANIPConn1" \
|
|||
|
||||
sleep 5
|
||||
|
||||
newIp=$(curl -s https://canihazip.com/s)
|
||||
newIp=$(curl -s https://v4.ident.me)
|
||||
|
||||
|
||||
notify-send "Renew IP" "Old IP: $oldIp\nNew IP: $newIp"
|
||||
|
|
19
simpleDots/bin/sanitize_files.sh
Executable file
19
simpleDots/bin/sanitize_files.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#! /bin/bash
|
||||
|
||||
sanitize() {
|
||||
shopt -s extglob;
|
||||
|
||||
filename=$(basename "$1")
|
||||
directory=$(dirname "$1")
|
||||
|
||||
#filename_clean="${filename//+([^[:alnum:]_-\.])/_}"
|
||||
filename_clean=$(echo -n $filename | tr --complement --squeeze-repeats "[:alnum:]./" "_")
|
||||
|
||||
if (test "$filename" != "$filename_clean")
|
||||
then
|
||||
mv -v --backup=numbered "$1" "$directory/$filename_clean"
|
||||
fi
|
||||
}
|
||||
|
||||
export -f sanitize
|
||||
find $1 -depth -exec bash -c 'sanitize "$0"' {} \;
|
|
@ -415,7 +415,7 @@ k-sel(){
|
|||
}
|
||||
|
||||
k-ns(){
|
||||
kubectl config set-context
|
||||
kubectl config set-context \
|
||||
--current \
|
||||
--namespace=$(kubectl get namespace | grep Active \
|
||||
| cut -d " " -f1 \
|
||||
|
|
|
@ -248,7 +248,7 @@ bindsym $mod+$alt+n exec ~/.bin/startAltBrowserPrivat.sh
|
|||
bindsym $mod+m exec ~/.bin/dmenu_dir2menu.sh ~/.screenlayout/
|
||||
|
||||
# Get current public IP or restart a fritz.box connection
|
||||
bindsym $mod+i exec --no-startup-id notify-send "Public IPv4 address" "$(curl --silent https://ident.me)"
|
||||
bindsym $mod+i exec --no-startup-id notify-send "Public IPv4 address" "$(curl --silent https://v4.ident.me)"
|
||||
bindsym $mod+Shift+i exec --no-startup-id "~/.bin/reconnectfritzbox.sh"
|
||||
|
||||
# Get current uptime
|
||||
|
|
|
@ -163,6 +163,7 @@ set shiftround
|
|||
set smarttab
|
||||
|
||||
au BufNewFile,BufRead *.vim setlocal noet ts=4 sw=4 sts=4
|
||||
au BufNewFile,BufRead *.ino setlocal noet ts=4 sw=4 sts=4
|
||||
au BufNewFile,BufRead *.txt setlocal noet ts=4 sw=4 sts=4
|
||||
au BufNewFile,BufRead *.md setlocal noet ts=4 sw=4 sts=4
|
||||
au BufNewFile,BufRead *.json setlocal et ts=2 sw=2 sts=2
|
||||
|
|
Reference in a new issue