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/python | |
# -*- coding: utf-8 -*- | |
## http://api.kde.org/pykde-4.3-api/kdeui/KWallet.Wallet.html | |
from PyKDE4.kdeui import KWallet | |
from PyQt4.QtGui import QApplication | |
import sys | |
FROM = None |
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 django.db import models | |
# http://www.djangosnippets.org/snippets/562/#c673 | |
# https://gist.github.com/fission6/2587518 | |
class QuerySetManager(models.Manager): | |
# http://docs.djangoproject.com/en/dev/topics/db/managers/#using-managers-for-related-object-access | |
# Only works for OneToOne relations...: | |
# https://code.djangoproject.com/ticket/14891 | |
use_for_related_fields = True |
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 time | |
import re | |
import os | |
import requests | |
from Crypto.PublicKey import RSA | |
from Crypto.Cipher import PKCS1_v1_5 | |
from cookielib import LWPCookieJar | |
import ConfigParser | |
from base64 import b64encode |
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
// ==UserScript== | |
// @name CouchPotato xREL | |
// @author jayme-github | |
// @namespace https://github.com/jayme-github/ | |
// @downloadURL https://gist.githubusercontent.com/jayme-github/becb38ac3577574df74e/raw/CouchPotato-xREL.user.js | |
// @version 0.1 | |
// @description add xREL search link to wanted page | |
// @match http://192.168.2.240:8083* | |
// @match http://127.0.0.1:8083* | |
// @require http://code.jquery.com/jquery-latest.min.js |
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
// ==UserScript== | |
// @name ForceEnglishMSKB | |
// @author jayme-github | |
// @namespace https://github.com/jayme-github/ | |
// @downloadURL https://gist.githubusercontent.com/jayme-github/2aa6ec4b5f319df495e8/raw/ForceEnglishMSKB.user.js | |
// @version 0.1 | |
// @description Force the MS Knowledgebase to english | |
// @match https://support.microsoft.com/*/kb/* | |
// @copyright 2015+, jayme-github | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name BugzillaCommentsUseSpace | |
// @author jayme-github | |
// @namespace https://github.com/jayme-github/ | |
// @downloadURL https://gist.githubusercontent.com/jayme-github/7ff9e834d6cdbe29a341/raw/BugzillaCommentsUseSpace.user.js | |
// @version 0.1 | |
// @description Use all available space to display comments (no stupid line breaks) | |
// @match http*://*/bugzilla/show_bug.cgi?id=* | |
// @copyright 2015+, jayme-github | |
// ==/UserScript== |
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
NEWENV="goodname" | |
PY="$(which python3)" | |
mkvirtualenv -p "$PY" --always-copy "$NEWENV" | |
mkdir ~/.virtualenvs/$NEWENV/build | |
cd ~/.virtualenvs/$NEWENV/build | |
# SIP | |
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.9/sip-4.16.9.tar.gz | |
tar xfz sip-4.16.9.tar.gz | |
cd sip-4.16.9 |
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
// ==UserScript== | |
// @name Posteo | |
// @author jayme-github | |
// @copyright 2015+, jayme-github | |
// @namespace https://github.com/jayme-github/ | |
// @downloadURL https://gist.github.com/jayme-github/65fa98d25f29062f5861/raw/Posteo.user.js | |
// @version 0.1 | |
// @description Some small improvements for posteo.de webmailer | |
// @match https://posteo.de/webmail* | |
// @match https://posteo.de/hilfe* |
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
# Based on BusinessHours written by | |
# Antano Solar John "solar_ant" <[email protected]> | |
# Sponsored by Ma Foi | |
# | |
# (C)2006-2007 All Rights Reserved, | |
# | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public | |
# License as published by the Free Software Foundation; either | |
# version 2.1 of the License, or (at your option) any later version. |
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 os | |
import jwt | |
import logging | |
from requests_oauthlib import OAuth2Session | |
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # For testing only | |
LOGFMT = '%(asctime)s (%(name)s.%(funcName)s) [%(levelname)s] %(message)s' | |
logging.basicConfig(format=LOGFMT, level=logging.DEBUG) | |
''' |
OlderNewer