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
#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 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 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 mediafire.api import MediaFireApi | |
api = MediaFireApi() | |
result = api.request("system/get_status") | |
print(result) |
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
https://github.com/roman-yepishev/duplicity-mediafire/ |
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
--- libical-1.0/src/libical/icaltz-util.c.orig 2013-04-14 13:24:42.000000000 -0400 | |
+++ libical-1.0/src/libical/icaltz-util.c 2015-05-11 23:21:20.632759999 -0400 | |
@@ -349,11 +349,8 @@ | |
tz_comp = icalcomponent_new (ICAL_VTIMEZONE_COMPONENT); | |
/* Add tzid property */ | |
- tzid = (char *) malloc (strlen (ical_tzid_prefix) + strlen (location) + 8); | |
- sprintf (tzid, "%sTzfile/%s", ical_tzid_prefix, location); | |
- icalprop = icalproperty_new_tzid (tzid); | |
+ icalprop = icalproperty_new_tzid (location); |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>Logging you via Ubuntu SSO</title> | |
<style type="text/css"> | |
body { font-family: sans-serif; font-size: 10pt; color: black; background-color: white; } | |
h1 { height: 32px; } | |
#errorMessage { border-left: 3px solid red; padding: 5px; margin: 10px 0; } | |
.hidden { display: 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>English</string> | |
<key>CFBundleExecutable</key> | |
<string>ifd-ccid.bundle</string> | |
<key>CFBundleIdentifier</key> | |
<string>org.debian.alioth.pcsclite.smartcardccid</string> |
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/perl | |
# Copyright 2011 Roman Yepishev <roman.yepishev@yandex.ua> | |
# | |
# Fetch various NSMEP information from card | |
# | |
# WARNING: This application is provided AS IS. It can render your NSMEP card unusable | |
# or cause malfunction. The author assumes no liability for any of the damage | |
# resulted from using this script. | |
# This code is based on ASSUMPTIONS about the location of the data in the | |
# APDUs, there is no public information about the format of the fields. |
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
## Description: Partial but functional implementation of winscard | |
## Author: Vincent Hardy vincent.hardy.be@gmail.com | |
## Origin: http://www.winehq.org/pipermail/wine-devel/2011-September/092627.html | |
Index: wine1.3-1.3.28/configure | |
=================================================================== | |
--- wine1.3-1.3.28.orig/configure 2011-09-09 20:43:48.000000000 +0300 | |
+++ wine1.3-1.3.28/configure 2011-12-18 16:31:46.000000000 +0200 | |
@@ -11767,6 +11767,60 @@ | |
fi |
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 | |
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()) |
OlderNewer