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
set -g default-shell /usr/bin/fish | |
set -g default-command /usr/bin/fish | |
set -g default-terminal screen-256color |
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 __future__ import print_function | |
from os import path | |
from sphinxbase import sphinxbase # noqa | |
from pocketsphinx import pocketsphinx | |
MODELDIR = "pocketsphinx/model" | |
DATADIR = "pocketsphinx/test/data" | |
# Create a decoder with certain model |
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 | |
set -e | |
# Substitute environment variables in Prosody configs | |
for tpl in /etc/prosody/*.tpl; do | |
envsubst < $tpl > ${tpl%\.tpl} | |
done | |
exec su -s /bin/bash -c "$*" prosody |
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 python2 | |
import glob | |
from itertools import takewhile | |
import os | |
import subprocess | |
import sys | |
import tempfile | |
EDITOR = 'c:\\Program Files\\Sublime Text 3\\sublime_text.exe' |
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 Tkinter import Tk | |
r = Tk() | |
r.withdraw() | |
print r.clipboard_get() | |
r.destroy() |
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
Windows Registry Editor Version 5.00 | |
; Registry file that maps the solarized palette to the 16 avaliable colors | |
; in a Windows command prompt. Note, hex values in the table are RGB but byte | |
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R> | |
; | |
; Solarized color table from http://ethanschoonover.com/solarized. | |
; | |
; NR cmd.exe PowerShell SOLARIZED HEX DWORD | |
; -- ------- ----------- --------- ------- -------- |
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
youtube-dl -a - -i -o ' out=%(uploader)s/%(id)s %(title)s.%(ext)s' -g --get-filename --cookies .cookies \ | |
< all-bookmarks.txt \ | |
^ youtube-dl.log \ | |
| aria2c -c -j 6 -x 6 -s 6 -k 1M --load-cookies=.cookies -i - --deferred-input=true \ | |
^ aria2c.log |
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
┌────────────────────────────┤ Byobu Help ├─────────────────────────────┐ | |
│ │ | |
│ Byobu is a suite of enhancements to tmux, as a command line │ | |
│ tool providing live system status, dynamic window management, │ | |
│ and some convenient keybindings: │ | |
│ │ | |
│ F1 * Used by X11 * │ | |
│ Shift-F1 Display this help │ | |
│ F2 Create a new window │ | |
│ Shift-F2 Create a horizontal split │ |
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
:: Copy this file to the root of the flash memory and then run it | |
md autorun.inf | |
cd autorun.inf | |
md -..\ | |
:: Now, to delete the folder autorun.inf format the flash memory |
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
"""closingqueue.py | |
Inspired by `pychan <https://github.com/stuglaser/pychan>`_. | |
""" | |
import asyncio | |
class ClosingQueue(asyncio.Queue): | |
"""A subclass of Queue with close() method. |