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
__all__ = ( | |
FormatMessageSystem, | |
LCID_ENGLISH, | |
LCID_NEUTRAL, | |
) | |
import ctypes | |
import ctypes.wintypes | |
LANG_NEUTRAL = 0x00 |
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
import subprocess | |
import signal | |
def pipeline(cmds, first_stdin=None, last_stdout=None): | |
"""Pipe together programs using subprocess""" | |
pcount = len(cmds) | |
plist = [] | |
for i, cmd in enumerate(cmds): | |
stdin = None | |
stdout = None |
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
#!/bin/bash | |
token() { | |
echo -n 'Authorization: Bearer YOUR_TOKEN_HERE' | |
} | |
acurl() { | |
curl \ | |
-H 'tz: America/New_York' \ | |
-H "$(token)" \ |
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
# This is a systemd user service | |
# | |
[Unit] | |
Description=Start krfb | |
After=graphical-session.target | |
[Service] | |
Type=exec | |
ExecStart=krfb --display $DISPLAY --nodialog | |
Restart=always |
OlderNewer