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 requests | |
import unittest | |
API_BASE = 'https://www.mediafire.com/api' | |
class MediaFireGzipTest(unittest.TestCase): | |
"""Test MediaFire gzipped content response""" | |
def test_api_1_0_gzip(self): |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int is_sep(const char s, const char *separators) | |
{ | |
int i; | |
for (i = 0; i < strlen(separators); i++) { | |
if (s == separators[i]) { |
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 | |
"""Telepathy CouchDB Logger""" | |
from dbus.mainloop.glib import DBusGMainLoop | |
import gobject | |
import dbus | |
#for observer thing | |
import telepathy | |
import telepathy.server |
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
diff -ur ../gvfs-1.16.3.orig/daemon/gvfsbackendmtp.c ./daemon/gvfsbackendmtp.c | |
--- ../gvfs-1.16.3.orig/daemon/gvfsbackendmtp.c 2013-09-10 08:20:43.199638261 +0300 | |
+++ ./daemon/gvfsbackendmtp.c 2013-09-10 08:27:06.859955187 +0300 | |
@@ -33,6 +33,7 @@ | |
#include <glib/gstdio.h> | |
#include <glib/gi18n.h> | |
#include <gio/gio.h> | |
+#include <glib.h> | |
#include <libmtp.h> |
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
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c | |
index 15e114c..3b2bfcf 100644 | |
--- a/arch/arm/mach-msm/board-qsd8x50.c | |
+++ b/arch/arm/mach-msm/board-qsd8x50.c | |
@@ -132,9 +132,14 @@ | |
#define MSM_SMI_BASE 0x00000000 | |
#endif | |
+#define MODEM_SIZE 0x02B00000 | |
+ |
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 | |
"""Quick and dirty hack to get disqus comments into WordPress DB""" | |
import sys | |
from datetime import datetime | |
from xml.etree import ElementTree as ET | |
import MySQLdb | |
ANONYMOUS_EMAIL = '[email protected]' |
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 -*- | |
# This code is in public domain | |
import json | |
import httplib2 | |
import urllib | |
import hashlib |
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 -*- | |
# This code is in public domain | |
import httplib2 | |
import urllib | |
import random | |
from xml.etree.ElementTree import Element, SubElement, Comment, tostring | |
from xml.dom import minidom |
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 gdbm | |
import sys | |
from datetime import datetime | |
print """# Updated: %s | |
# SSH creds for attack attempts on my server. | |
# If your password is listed here, CHANGE IT RIGHT NOW | |
#""" % (datetime.now().isoformat()) |
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 sys | |
import gdbm | |
from twisted.conch.unix import UnixSSHRealm | |
from twisted.cred import portal | |
from twisted.cred.credentials import IUsernamePassword | |
from twisted.cred.checkers import ICredentialsChecker | |
from twisted.cred.error import UnauthorizedLogin |