Skip to content

Instantly share code, notes, and snippets.

@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 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
@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 <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.
@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>
<!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; }