This file contains hidden or 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 python | |
from sys import argv,exit | |
def list_strip(list): | |
new_list = [] | |
for line in list: | |
if not line.strip(): | |
continue | |
else: |
This file contains hidden or 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 python | |
import pprint | |
from HTMLParser import HTMLParser | |
from urllib2 import urlopen | |
class Spider(HTMLParser): | |
line = [] | |
output = [] |
This file contains hidden or 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
# in case of chmod -x /bin/chmod | |
from sys import argv | |
from os import chmod, stat | |
from stat import S_IEXEC | |
def chmodx(filename): | |
chmod(filename, stat(filename).st_mode | S_IEXEC) | |
if __name__ == "__main__": |
This file contains hidden or 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 ps ax | grep pywxtd | grep -v grep > /dev/null | |
then | |
echo "service is running" > /dev/null | |
else | |
echo `date`: starting pywxtd after crash >> /var/log/pywxtd.log | |
/etc/init.d/pywxtd start | |
fi |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
.flasher { | |
font-weight: bold; | |
text-align: center; | |
color: #888888; | |
width: 200px; | |
height: 200px; | |
background-color: black; |
This file contains hidden or 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 | |
set -e | |
# Adapted from a script at http://eternalvoid.net/tutorials/mythtv-autotranscode/ | |
# Arguments | |
# $1 must be the directory/file to be transcoded. | |
# $2 must be the output directory / file name. The directory must be writeable by the mythtv user | |
# $3 must be chanid | |
# $4 must be starttime |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am kd7lxl on github. | |
* I am thayward (https://keybase.io/thayward) on keybase. | |
* I have a public key whose fingerprint is 574F 70DE 566F 6797 A032 6A44 4014 3F91 4E27 1413 | |
To claim this, I am signing this object: |
This file contains hidden or 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
python2 chirpw |
OlderNewer