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
// ==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 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
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 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
// ==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 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
// ==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 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
// ==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 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 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 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
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 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 -*- | |
## 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 |
NewerOlder