Compare commits
2 commits
2c84b2effa
...
a6e4ce98f0
Author | SHA1 | Date | |
---|---|---|---|
a6e4ce98f0 | |||
34cb04dc6d |
8 changed files with 56 additions and 16 deletions
|
@ -28,23 +28,27 @@ fi
|
||||||
pass_content=$(pass "ansible/$project")
|
pass_content=$(pass "ansible/$project")
|
||||||
pass_path=$project_dir/$(echo "$pass_content" | grep "path:" | cut -d' ' -f2-)
|
pass_path=$project_dir/$(echo "$pass_content" | grep "path:" | cut -d' ' -f2-)
|
||||||
|
|
||||||
case "$1" in
|
action="${1:-show}"
|
||||||
|
case "$action" in
|
||||||
|
show)
|
||||||
|
echo "$pass_content" | head -n 1
|
||||||
|
exit 0 ;;
|
||||||
|
view)
|
||||||
|
ansible-vault view "$pass_path"
|
||||||
|
exit 0 ;;
|
||||||
edit)
|
edit)
|
||||||
ansible-vault edit "$pass_path"
|
ansible-vault edit "$pass_path"
|
||||||
exit 0
|
exit 0 ;;
|
||||||
;;
|
|
||||||
deploy)
|
deploy)
|
||||||
pass show "ansible/$project.file" > "$pass_path"
|
pass show "ansible/$project.file" > "$pass_path"
|
||||||
exit 0
|
exit 0 ;;
|
||||||
;;
|
|
||||||
save)
|
save)
|
||||||
pass insert -m "ansible/$project.file" < "$pass_path"
|
pass insert -m "ansible/$project.file" < "$pass_path"
|
||||||
exit 0
|
exit 0 ;;
|
||||||
;;
|
|
||||||
pass-edit)
|
pass-edit)
|
||||||
pass edit "ansible/$project"
|
pass edit "ansible/$project"
|
||||||
exit 0
|
exit 0 ;;
|
||||||
;;
|
*)
|
||||||
|
echo "Usage: ansible-vault-manager [show|view|edit|deploy|save|pass-edit]"
|
||||||
|
exit 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "$pass_content" | head -n 1
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
echo "Deleting tag from origin"
|
echo "Deleting tag from origin"
|
||||||
git push --delete origin "$1"
|
git push --delete origin "v$1"
|
||||||
|
|
||||||
echo "Deleting tag locally"
|
echo "Deleting tag locally"
|
||||||
git tag -d "$1"
|
git tag -d "v$1"
|
||||||
|
|
||||||
echo "Recreating tag"
|
echo "Recreating tag"
|
||||||
git tag -s -m "$1" "$1"
|
git vtag "$1"
|
||||||
|
|
3
.bin/git-vtag
Executable file
3
.bin/git-vtag
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
git tag -sm "v$1" "v$1"
|
17
.bin/portalo-mode
Executable file
17
.bin/portalo-mode
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
portalo_mode_std () {
|
||||||
|
echo "Loading portalo standard screen layout"
|
||||||
|
yadm config --unset-all local.class monitor-single
|
||||||
|
}
|
||||||
|
|
||||||
|
portalo_mode_single () {
|
||||||
|
echo "Loading portalo single screen layout"
|
||||||
|
yadm config --add local.class monitor-single
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
std) portalo_mode_std ;;
|
||||||
|
single) portalo_mode_single ;;
|
||||||
|
*) echo "'$1' is not a valid-setup (single, std)" ;;
|
||||||
|
esac
|
7
.bin/telnet-ts
Executable file
7
.bin/telnet-ts
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p inetutils
|
||||||
|
|
||||||
|
echo "auth apikey=$TS3_CLIENT_API_KEY" | wl-copy
|
||||||
|
|
||||||
|
telnet 127.0.0.1 25639
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
set -a
|
set -a
|
||||||
#. "/etc/profile"
|
#. "/etc/profile"
|
||||||
. "$HOME/.config/user-dirs.dirs"
|
. "$HOME/.config/user-dirs.dirs"
|
||||||
|
|
||||||
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
|
export XDG_CACHE_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
|
||||||
. "$XDG_CONFIG_HOME/locale.conf"
|
. "$XDG_CONFIG_HOME/locale.conf"
|
||||||
set +a
|
set +a
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
dt = difftool
|
dt = difftool
|
||||||
dtc = difftool --cached
|
dtc = difftool --cached
|
||||||
l = log --graph
|
l = log --graph
|
||||||
lo = log --graph --decorate --oneline --all
|
lo = log --graph --decorate --pretty='format:%C(auto)%h <%as>%d %s' --abbrev-commit --all
|
||||||
s = status
|
s = status
|
||||||
ignore-io = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
|
ignore-io = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,12 @@ def init(c):
|
||||||
'ddg': 'https://duckduckgo.com/?q={}',
|
'ddg': 'https://duckduckgo.com/?q={}',
|
||||||
'kagi': 'https://kagi.com/search?q={}'
|
'kagi': 'https://kagi.com/search?q={}'
|
||||||
}
|
}
|
||||||
c.url.start_pages = ['rss.serguzim.me', 'open.spotify.com']
|
c.url.start_pages = [
|
||||||
|
'https://rss.serguzim.me/',
|
||||||
|
'http://homeassistant-33:8123/',
|
||||||
|
'https://status.serguzim.net/'
|
||||||
|
'https://open.spotify.com/'
|
||||||
|
]
|
||||||
|
|
||||||
c.zoom.mouse_divider = 0
|
c.zoom.mouse_divider = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue