Skip to content

Instantly share code, notes, and snippets.

View ScottSteiner's full-sized avatar

Scott Steiner ScottSteiner

  • Detroit, Michigan
View GitHub Profile
@ScottSteiner
ScottSteiner / whatson.py
Last active October 11, 2015 04:13
Gets currently playing show using locatetv.com
#!/usr/bin/env python
from lxml import html
import requests
#Set just for testing purposes. channel value should be set using current channel information
channel = 'wxin-fox'
#Gets the TV listings
content = requests.get('http://www.locatetv.com/listings/{}'.format(channel)).content
tree = html.fromstring(content)
import xchat, re, random
import string
__module_name__ = "Noise"
__module_version__ = "1.0.0"
__module_description__ = "Generates random colored string of the length specified"
def RandomWord(Length):
charlist = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&\'()*+,-./:;<=>?@[\]^_`{|}~"
word = ""
@ScottSteiner
ScottSteiner / csgog.md
Last active August 29, 2015 14:12
/csgog/'s git gud linkgist

If you want to improve your game and are a new player or veteran, there's something to take from all of these videos and most of the concepts/ideas from videos about 1.6/Source can be applied to CS:GO.

How to be good at CS:GO for all skill levels

TheWarOwl's tutorial series

Curse Pro Tips (many more available separately on Youtube)

@ScottSteiner
ScottSteiner / catalyst1312.patch
Created December 24, 2013 22:15
Patch for AMD's 13.12 driver which fails in debian. Run with `patch -Np1 -i ../catalyst1312.patch`
--- 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-17 20:05:35.000000000 +0100
+++ 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-19 18:40:18.386568588 +0100
@@ -995,7 +995,11 @@
#endif
{
return KCL_ACPI_ERROR;
- }
+ }
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,1)
+ ((acpi_tbl_table_handler)handler)(hdr);
@ScottSteiner
ScottSteiner / thief.bat
Created January 16, 2013 08:42
NO$GMB Nag Screen
@echo off
title C:\THIEF.COM
color 4E
echo This should give you some time to think about your actions - I hope your parentswill also read this message. Hear me? Tell your child that stealing isn't nice!
echo.
echo THIS IS AN INFORMATION MESSAGE ONLY - YOUR HARDDISK WILL REMAIN INTACT THIS TIME
echo.
echo.
echo.
echo YOU HAVE INSTALLED AN ILLEGAL COPY OF A NO$GMB REGISTRATION KEY ON YOUR COMPUTER
@ScottSteiner
ScottSteiner / zipsubdirectories.bat
Created June 5, 2012 03:06
Zips subdirectories into zips using 7-Zip
@echo off
cd %1
for /D %%i in (*) do cd %%i && 7z a -r "..\%%i.zip" * && cd ..