Skip to content

Instantly share code, notes, and snippets.

<!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; }
@roman-yepishev
roman-yepishev / libccid_Info.plist
Created December 14, 2011 20:35
CCID with Avtor SC Reader 371
<?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>
@roman-yepishev
roman-yepishev / nsmep-balance.pl
Created December 15, 2011 10:05
NSMEP expiration and balance check
#!/usr/bin/perl
# Copyright 2011 Roman Yepishev <[email protected]>
#
# 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.
@roman-yepishev
roman-yepishev / libpcsclite-winscard.patch
Created December 17, 2011 09:28
Patch for wine1.3-1.3.28 (Ubuntu Oneiric) winscard
## Description: Partial but functional implementation of winscard
## Author: Vincent Hardy [email protected]
## 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
@roman-yepishev
roman-yepishev / ssh-twisted.py
Created January 3, 2012 16:00
twisted ssh
#!/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
@roman-yepishev
roman-yepishev / dump-passwords.py
Created February 19, 2012 12:09
twisted-ssh.py gdbm password export
#!/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())
@roman-yepishev
roman-yepishev / atompark-api-v2.0.py
Created August 4, 2012 13:14
Atompark SMS API v2.0 Example
#!/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
@roman-yepishev
roman-yepishev / atompark-api-v3.0.py
Created August 4, 2012 13:27
Atompark SMS API v3.0 Example
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This code is in public domain
import json
import httplib2
import urllib
import hashlib
@roman-yepishev
roman-yepishev / wp-import-disqus.py
Created December 4, 2012 19:15
Disqus importer to WordPress
#!/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]'
@roman-yepishev
roman-yepishev / ramconsole.patch
Created June 9, 2013 15:53
RAM console patch
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
+