This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost ~ # cat <<EOF> /etc/wpa_supplicant.conf | |
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel | |
update_config=1 | |
EOF | |
localhost ~ # wpa_supplicant -iwlp1s0 -Dnl80211 -c/etc/wpa_supplicant.conf -B | |
Successfully initialized wpa_supplicant | |
localhost ~ # wpa_cli | |
wpa_cli v2.0 | |
Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEVICE="he-ipv6" | |
DEVICETYPE=sit | |
BOOTPROTO=none | |
ONBOOT=yes | |
IPV6INIT=yes | |
IPV6TUNNELIPV4=184.105.253.10 | |
IPV6TUNNELIPV4LOCAL=XXX.XXX.XXX.XXX | |
IPV6ADDR=2001:470:YYYY:YYYY::2/64 | |
IPV6_DEFAULTGW=2001:470:YYYY:YYYY::1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Thread, Event, Timer | |
import time | |
def TimerReset(*args, **kwargs): | |
""" Global function for Timer """ | |
return _TimerReset(*args, **kwargs) | |
class _TimerReset(Thread): | |
"""Call a function after a specified number of seconds: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
launchctl unload -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist | |
launchctl load -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist |
Adapted from caddy systemd Service Unit
The provided file should work with systemd version 219 or later. It might work with earlier versions.
The easiest way to check your systemd version is to run systemctl --version
.
We will assume the following:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema-preview", | |
// "$schema": "https://raw.githubusercontent.com/microsoft/terminal/main/doc/cascadia/profiles.schema.json", // canary | |
// "$schema": "https://aka.ms/terminal-profiles-schema-preview", // preview | |
// "$schema": "https://aka.ms/terminal-profiles-schema", // stable | |
"actions": [ | |
{ | |
"command": { | |
"action": "moveFocus", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.6" | |
services: | |
my_sql: | |
image: mysql:5.7 | |
volumes: | |
- ./data:/var/lib/mysql | |
secrets: | |
- my_secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
nginx: | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.provys-transformer.rule=Host(`www.example.com`)" | |
- "traefik.http.routers.provys-transformer.tls=true" | |
networks: | |
- traefik |
OlderNewer