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
provide-module color-mark %{ | |
declare-option int color_mark_index 0 | |
set-face global ColorMark0 rgb:FF7F00+rb | |
set-face global ColorMark1 rgb:0095FF+rb | |
set-face global ColorMark2 rgb:FF00AA+rb | |
set-face global ColorMark3 rgb:6AFF00+rb | |
set-face global ColorMark4 rgb:00EAFF+rb | |
set-face global ColorMark5 rgb:AA00FF+rb | |
set-face global ColorMark6 rgb:8F2323+rb | |
set-face global ColorMark7 rgb:23628F+rb |
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/sh | |
if [ -z "$1" ]; then | |
aplay -L | grep -v "^ " | cut -d ':' -f 2 | uniq | sort | uniq | |
exit 1 | |
fi | |
cat <<EOF > "$HOME/.asoundrc" | |
pcm.!default { | |
type asym |
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
$> cat run-server.sh | |
#!/bin/sh | |
# Copyright (c) 2012-2015 Kaarle Ritvanen | |
# See LICENSE file for license details | |
export AUGEAS_LENS_LIB=augeas | |
if [ $(basename $0) = run-server.sh ]; then | |
export LUA_PATH="./?.lua;./?/init.lua;;" |
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
$> cat run-server.sh | |
#!/bin/sh | |
# Copyright (c) 2012-2015 Kaarle Ritvanen | |
# See LICENSE file for license details | |
export AUGEAS_LENS_LIB=augeas | |
if [ $(basename $0) = run-server.sh ]; then | |
export LUA_PATH="./?.lua;./?/init.lua;;" |
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
qemu-system-x86_64 | |
-m 512M | |
-serial stdio | |
-monitor null | |
-kernel {S.kernel} | |
-initrd {S.initramfs} | |
-drive file=root.squashfs,if=virtio,format=raw | |
--append "root=/dev/vda console=ttyS0" |
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 json | |
import smtplib | |
import subprocess | |
import sys | |
import time | |
from email.message import EmailMessage | |
import toml | |
TO = "[email protected]" |
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/dash | |
exec python -m pip install \ | |
pdbpp \ | |
black \ | |
vmprof \ | |
isort \ | |
python-language-server \ | |
pydocstyle \ | |
pycodestyle \ | |
pyls-isort \ |
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 datetime | |
import json | |
from subprocess import check_output | |
end = datetime.datetime.now() + datetime.timedelta(days=1) | |
start = end - datetime.timedelta(days=31) | |
end_fmt = end.strftime("%Y-%m-%d") | |
start_fmt = start.strftime("%Y-%m-%d") | |
cmd = ( |
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
'aax-eu.amazon-adsystem.com', | |
'abs-0.twimg.com', | |
'abs.twimg.com', | |
'acdn.adnxs.com', | |
'ad.doubleclick.net', | |
'ade.googlesyndication.com', | |
'adservice.google.com', | |
'ads.pubmatic.com', | |
'ad.turn.com', | |
'ad.yieldlab.net', |
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
#!/usr/bin/env python3 | |
import bisect | |
import functools | |
import shlex | |
import subprocess as s | |
import sys | |
devel = False |
NewerOlder