Skip to content

Instantly share code, notes, and snippets.

# cstrike plugin for python-rtmbot (https://github.com/slackapi/python-rtmbot)
import glob
import os
import re
import random
import socket
import struct
from valve.source.a2s import ServerQuerier
@cdhowie
cdhowie / README.md
Last active July 17, 2019 02:27
DNS proxy to fix Netflix stupidity
@ryancdotorg
ryancdotorg / brthanoi.py
Last active July 6, 2016 16:04
Very simple towers of hanoi snapshot script for btrfs
#!/usr/bin/env python
# Copyright 2015 Ryan Castellucci
# License: http://opensource.org/licenses/BSD-3-Clause
import sys
import time
import base64
import subprocess
from struct import pack, unpack
@endolith
endolith / Readme.txt
Last active September 23, 2023 11:04
Gnome to Wine color scraper
This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match.
Instructions:
1. Set your Gnome theme as you would like it
2. Run with a command like "python wine_colors_from_gtk.py"
3. Restart any apps running in Wine. They should match the Gnome theme colors now.
Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/
This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper