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=~/.cargo/bin:$PATH
|
||||
|
||||
export ZSH=~/.zsh/oh-my-zsh
|
||||
ZSH_THEME="ckn"
|
||||
HIST_STAMPS="yyyy/mm/dd"
|
||||
|
@ -10,13 +12,6 @@ source $ZSH/oh-my-zsh.sh
|
|||
|
||||
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() {
|
||||
printf 'scanning for viruses' && sleep 1 && printf '.' && sleep 1 && printf '.' && sleep 1 && printf '.' &&
|
||||
sleep 1 && echo '\nyour computer is safe!'
|
||||
|
@ -26,3 +21,12 @@ eval "$(rbenv init -)"
|
|||
eval "$(pyenv init -)"
|
||||
eval "$(direnv hook zsh)"
|
||||
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):
|
||||
return {
|
||||
'systemd-timers': {
|
||||
f'steam-chat-logger': {
|
||||
'command': '/opt/steam_chat_logger/steam_chat_logger.py',
|
||||
'when': 'hourly',
|
||||
'user': 'steam_chat_logger',
|
||||
'env': {
|
||||
'DB_NAME': 'steam_chat_logger',
|
||||
'DB_USER': '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',
|
||||
},
|
||||
},
|
||||
# steam python login is broken: https://github.com/ValvePython/steam/issues/442
|
||||
# 'systemd-timers': {
|
||||
# f'steam-chat-logger': {
|
||||
# 'command': '/opt/steam_chat_logger/steam_chat_logger.py',
|
||||
# 'when': 'hourly',
|
||||
# 'user': 'steam_chat_logger',
|
||||
# 'env': {
|
||||
# 'DB_NAME': 'steam_chat_logger',
|
||||
# 'DB_USER': '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',
|
||||
# },
|
||||
# },
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue