P2P VPNs allow you to connect two or more hosts together and do some stuff like play games or test out services just like you were on one real physical local network (LAN). Even when you are on different continents.
This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
import sys | |
from subprocess import Popen, PIPE, STDOUT | |
import time | |
HEADPHONE_EVENT = "jack/headphone" | |
p = Popen(["/usr/bin/acpi_listen"], | |
stdout=PIPE, stderr=STDOUT, bufsize=1) |
This file contains hidden or 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
#!/usr/bin/env python3 | |
from gi.repository import GLib | |
from gi.repository import Gio | |
import os | |
import time | |
def onPrepareForSleep(conn, sender, obj, interface, signal, parameters, data): | |
if not parameters[0]: |
OlderNewer