add systemd unit
This commit is contained in:
parent
a7c6e3b828
commit
d8f4999a58
11
etc/systemd/system/wol.service
Normal file
11
etc/systemd/system/wol.service
Normal 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
|
||||
@ -8,8 +8,6 @@ vim.g.snips_email = 'thek4n@yandex.com'
|
||||
vim.g.snips_github = 'https://github.com/thek4n'
|
||||
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
local function jump(val)
|
||||
return function()
|
||||
ls.jump(val)
|
||||
@ -17,6 +15,7 @@ local function jump(val)
|
||||
end
|
||||
|
||||
|
||||
local map = vim.keymap.set
|
||||
map({'i', 's'}, '<C-n>', jump(1))
|
||||
map({'i', 's'}, '<C-p>', jump(-1))
|
||||
|
||||
|
||||
@ -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() {
|
||||
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
|
||||
# to allow sudo user toggle vpn without password:
|
||||
## sudo groupadd wireguard
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user