Skip to content

Instantly share code, notes, and snippets.

@twerp
twerp / restartAudio.bat
Created January 12, 2019 17:54 — forked from tigerhawkvok/restartAudio.bat
Restart Windows Audio Service (with admin permissions, if needed)
rem Written for buggy audio drivers that need to be restarted
rem In my case, the Claro 8.18 drivers bug out every once in a while on Windows 10, and need restarting to not sound poppy
@echo off
goto check_Permissions
:check_Permissions
echo Administrative permissions required to run this script. Checking...
net session >nul 2>&1
@twerp
twerp / pycdump.py
Created November 17, 2016 17:34 — forked from anonymous/pycdump.py
Dump .pyc file (Python 3.5 version)
#
# read a .pyc file and pretty-print it
#
# copied from http://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html
# and updated to Python 3.5 (Nov 10th 2015)
@twerp
twerp / README.md
Created August 7, 2014 19:40 — forked from AviDuda/README.md
@twerp
twerp / 0_reuse_code.js
Created January 3, 2014 18:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console