Compare commits
2 commits
ccc54b53a5
...
70091eca8c
Author | SHA1 | Date | |
---|---|---|---|
70091eca8c | |||
fdd35e0a2c |
2 changed files with 26 additions and 21 deletions
|
@ -1,4 +1,6 @@
|
||||||
export PATH=~/.bin:$PATH
|
export PATH=~/.bin:$PATH
|
||||||
|
export PATH=~/.cargo/bin:$PATH
|
||||||
|
|
||||||
export ZSH=~/.zsh/oh-my-zsh
|
export ZSH=~/.zsh/oh-my-zsh
|
||||||
ZSH_THEME="ckn"
|
ZSH_THEME="ckn"
|
||||||
HIST_STAMPS="yyyy/mm/dd"
|
HIST_STAMPS="yyyy/mm/dd"
|
||||||
|
@ -10,13 +12,6 @@ source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
ulimit -S -n 24000
|
ulimit -S -n 24000
|
||||||
|
|
||||||
sshn() {
|
|
||||||
ssh "$(tr '.' ' ' <<< "$1" | tac -s ' ' | xargs | tr ' ' '.').smhss.de"
|
|
||||||
}
|
|
||||||
pingn() {
|
|
||||||
ping "$(tr '.' ' ' <<< "$1" | tac -s ' ' | xargs | tr ' ' '.').smhss.de"
|
|
||||||
}
|
|
||||||
|
|
||||||
antivir() {
|
antivir() {
|
||||||
printf 'scanning for viruses' && sleep 1 && printf '.' && sleep 1 && printf '.' && sleep 1 && printf '.' &&
|
printf 'scanning for viruses' && sleep 1 && printf '.' && sleep 1 && printf '.' && sleep 1 && printf '.' &&
|
||||||
sleep 1 && echo '\nyour computer is safe!'
|
sleep 1 && echo '\nyour computer is safe!'
|
||||||
|
@ -26,3 +21,12 @@ eval "$(rbenv init -)"
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
eval "$(op completion zsh)"; compdef _op op
|
eval "$(op completion zsh)"; compdef _op op
|
||||||
|
|
||||||
|
# //S/M
|
||||||
|
|
||||||
|
sshn() {
|
||||||
|
ssh "$(tr '.' ' ' <<< "$1" | tac -s ' ' | xargs | tr ' ' '.').smhss.de"
|
||||||
|
}
|
||||||
|
pingn() {
|
||||||
|
ping "$(tr '.' ' ' <<< "$1" | tac -s ' ' | xargs | tr ' ' '.').smhss.de"
|
||||||
|
}
|
||||||
|
|
|
@ -34,18 +34,19 @@ defaults = {
|
||||||
)
|
)
|
||||||
def systemd_timer(metadata):
|
def systemd_timer(metadata):
|
||||||
return {
|
return {
|
||||||
'systemd-timers': {
|
# steam python login is broken: https://github.com/ValvePython/steam/issues/442
|
||||||
f'steam-chat-logger': {
|
# 'systemd-timers': {
|
||||||
'command': '/opt/steam_chat_logger/steam_chat_logger.py',
|
# f'steam-chat-logger': {
|
||||||
'when': 'hourly',
|
# 'command': '/opt/steam_chat_logger/steam_chat_logger.py',
|
||||||
'user': 'steam_chat_logger',
|
# 'when': 'hourly',
|
||||||
'env': {
|
# 'user': 'steam_chat_logger',
|
||||||
'DB_NAME': 'steam_chat_logger',
|
# 'env': {
|
||||||
'DB_USER': 'steam_chat_logger',
|
# 'DB_NAME': 'steam_chat_logger',
|
||||||
'DB_PASSWORD': metadata.get('postgresql/roles/steam_chat_logger/password'),
|
# 'DB_USER': 'steam_chat_logger',
|
||||||
**metadata.get('steam_chat_logger'),
|
# 'DB_PASSWORD': metadata.get('postgresql/roles/steam_chat_logger/password'),
|
||||||
},
|
# **metadata.get('steam_chat_logger'),
|
||||||
'working_dir': '/var/lib/steam_chat_logger',
|
# },
|
||||||
},
|
# 'working_dir': '/var/lib/steam_chat_logger',
|
||||||
},
|
# },
|
||||||
|
# },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue