add systemd unit

This commit is contained in:
TheK4n 2023-03-11 04:07:45 +03:00
parent a7c6e3b828
commit d8f4999a58
3 changed files with 21 additions and 11 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Wake-on-LAN for enp3s0
Requires=network.target
After=network.target
[Service]
ExecStart=/usr/bin/ethtool -s enp3s0 wol g
Type=oneshot
[Install]
WantedBy=multi-user.target

View File

@ -8,8 +8,6 @@ vim.g.snips_email = 'thek4n@yandex.com'
vim.g.snips_github = 'https://github.com/thek4n' vim.g.snips_github = 'https://github.com/thek4n'
local map = vim.keymap.set
local function jump(val) local function jump(val)
return function() return function()
ls.jump(val) ls.jump(val)
@ -17,6 +15,7 @@ local function jump(val)
end end
local map = vim.keymap.set
map({'i', 's'}, '<C-n>', jump(1)) map({'i', 's'}, '<C-n>', jump(1))
map({'i', 's'}, '<C-p>', jump(-1)) map({'i', 's'}, '<C-p>', jump(-1))

View File

@ -59,6 +59,15 @@ cl() {
} }
py() {
if [[ -z "$@" && -x "$(command -v ipython 2>/dev/null)" ]]; then
ipython -i -c "q = exit"
else
python3 $@
fi
}
ve() { ve() {
local venv_name local venv_name
@ -164,15 +173,6 @@ docker_ips() {
} }
py() {
if [[ -z "$@" && -x "$(command -v ipython 2>/dev/null)" ]]; then
ipython -i -c "q = exit"
else
python3 $@
fi
}
# toggle wireguard vpn with interface /etc/wireguard/wg0.conf # toggle wireguard vpn with interface /etc/wireguard/wg0.conf
# to allow sudo user toggle vpn without password: # to allow sudo user toggle vpn without password:
## sudo groupadd wireguard ## sudo groupadd wireguard