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
type LimitedWaitGroup struct { | |
limit int | |
count int | |
countChan chan int | |
} | |
func NewLimitedWaitGroup(limit int) *LimitedWaitGroup { | |
wg := LimitedWaitGroup{limit: limit} | |
wg.countChan = make(chan int) | |
return &wg |
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/sh | |
cd /tmp | |
wget http://rtr.ca/ft232r/ft232r_prog-1.24.tar.gz | |
tar -xf ft232r_prog-1.24.tar.gz | |
cd ft232r_prog-1.24 | |
make | |
sudo ./ft232r_prog --old-pid 0 --new-pid 0x6001 |
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/sh | |
# more info: | |
# https://wiki.archlinux.org/index.php/GnuPG#Smartcards | |
SHELL_CONF=~/.bashrc | |
su -C "pacman -S pcsclite libusb-compat" | |
su -C "systemctl enable pcscd.service" |
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 python2 | |
from lxml import etree | |
import urllib | |
api_base = 'http://efa.avv-augsburg.de/avv/' | |
request = 'XML_DM_REQUEST' | |
params = { |