This file contains 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
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using Microsoft.Win32; | |
namespace skat.Printserver | |
{ | |
/// <summary> | |
/// A wrapper around Adobe Acrobat Reader that helps to print PDF files. |
This file contains 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
$photo = [byte[]](Get-Content d:\port300.png -Encoding byte) | |
Set-ADUser SAMACCOUNTNAME -Replace @{thumbnailPhoto=$photo} |
This file contains 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 | |
# script to check for complete torrents in transmission folder, then stop and move them | |
# either hard-code the MOVEDIR variable here… | |
MOVEDIR=/media/tc/downloads # the folder to move completed downloads to | |
# …or set MOVEDIR using the first command-line argument | |
# MOVEDIR=%1 | |
AUTH="PWD" | |
USER="USER" | |
# And push a message to PROWL | |
# Fill in with your own API key here |
This file contains 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 re | |
def checkMessage(message): | |
""" | |
Checks if the message content matches one of the message rules | |
B: <message> | |
R: <message> | |
F: <message> | |
S: <message> | |
Merge |
This file contains 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 urllib | |
import urllib2 | |
API_URL = 'https://api.prowlapp.com/publicapi/add' | |
API_KEY = 'xxxxxxxxxxxxxxxxxxx' | |
PROXY = 'xxx.xxx.xxx.xxx:xxxx' | |
def push(): | |
This file contains 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 logging | |
class ProwlHandler(logging.Handler): | |
""" | |
A handler class which sends a Prowl notification for each logging event. | |
""" |
This file contains 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
/* DeleteOnError stylesheet for MarkdownPad (http://markdownpad.com) */ | |
/* Author: Silvio Katzmann - http://deleteonerror.com */ | |
/* Version: */ | |
/* Source: */ | |
/* --------------------------------------------------------------------RESET */ | |
html, body, div, span, applet, object, iframe, p, blockquote, pre, a, abbr, | |
acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, |
This file contains 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
from shutil import move | |
import os | |
from sys import stdout | |
from datetime import datetime | |
from time import time | |
from PIL import ImageFont, Image, ImageDraw | |
img_number = 1 | |
black_images = 0 |
This file contains 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
Show hidden characters
[ | |
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" } | |
] |
This file contains 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 sys | |
import re | |
def checkMessage(msg): | |
""" | |
Checks if the message content matches one of the message rules | |
B: <message> |
OlderNewer