Skip to content

Instantly share code, notes, and snippets.

@emilpetkov
emilpetkov / gist:3201958
Last active February 16, 2023 09:10
Set up e-banking using smart card reader and electronic signature under OS X Mountain Lion (10.8)

This guide is for you if:

  • You have a smart card reader and (universal) electronic signature bought from InfoNotary (can be a different company, hardware, etc – just change the necessary steps), you are using Mac OS X, and want to do some e-banking because you value your time and prefer to cut your wrists instead of physically visiting a bank in BG to do any kind of work.
  • You haven’t set up e-banking under Mac OS before OR you did set it up but then you decided to upgrade to Mountain Lion (OS X 10.8) because it is simply better.

Follow these steps:

  1. Download the smart card reader driver. Note I personally own ACR38T USB dongle, so I used:
    wget http://repository.infonotary.com/install/mac/OpenSC-0.12.2-10.7.dmg

    Run pcsctest from the terminal to check your exact card reader model, find, and install the relevant driver for it – check this link%
@matthewlein
matthewlein / .jshintrc
Created April 30, 2012 17:03
JShint git pre-commit hook
{
"devel": false,
"undef": true
}
@mrflory
mrflory / Builder.php
Created April 1, 2012 20:24
Twitter Bootstrap Twig Template for KnpMenuBundle in Symfony2
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)
@fernandoaleman
fernandoaleman / Linux Static IP
Created March 23, 2012 16:20
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@calavera
calavera / Vagrantfile
Created March 16, 2012 00:31
Vagrant vms generator
require './vms_init'
Vagrant::Config.run do |config|
@vms.each do |vm|
config.vm.define vm.id do |definition|
definition.vm.box = "lucid64"
definition.vm.network :hostonly, vm.hostname
definition.vm.provision :chef_solo do |chef|
@jaydson
jaydson / gist:1780598
Created February 9, 2012 15:11
How to detect a click event on a cross domain iframe
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){
@cpatni
cpatni / app.rb
Created November 21, 2011 22:39
unique calculation using redis
require 'sinatra'
require 'redis'
require 'json'
require 'date'
class String
def &(str)
result = ''
result.force_encoding("BINARY")
@sleepsonthefloor
sleepsonthefloor / xen_install_basics.sh
Created October 20, 2011 23:43
Install Basics for Xenserver Devstack
#!/bin/sh
set -o xtrace
# Install basics for vi and git
yum -y --enablerepo=base install gcc make vim-enhanced zlib-devel openssl-devel
# Simple but usable vimrc
cat > /root/.vimrc <<EOF
syntax on
se ts=4
@indexzero
indexzero / demo.js
Created July 12, 2011 20:30 — forked from sorensen/demo.js
Raphael icon factory
// Basic usage
_.icon('home', 'home-id-selector')
// Advanced usage
_.icon('power', 'start-menu-icon', {
fill : {
fill : "#333",
stroke : "none"
},
none : {
<?php
/* E X A M P L E -----------------------------------------------
$feed = new RSS();
$feed->title = "RSS Feed Title";
$feed->link = "http://website.com";
$feed->description = "Recent articles on your website.";
$db->query($query);
$result = $db->result;