Skip to content

Instantly share code, notes, and snippets.

View seberm's full-sized avatar

Sabart Otto seberm

View GitHub Profile
@seberm
seberm / anycoin.import
Last active January 21, 2022 12:44
Beancount CSV exporter/importer for anycoin.cz
#!/usr/bin/env python3
# Usage: $ bean-extract extractors/anycoin.import ./anycoin.csv > transactions.beancount
import csv
from beancount.ingest.importers.csv import (
Importer,
Col,
)
@seberm
seberm / pmdmask.py
Last active October 13, 2016 11:02 — forked from ctrautma/pmdmask.py
PMD Mask creator for DPDK
#!/usr/bin/env python3
import sys
print("PMD Mask calculator")
print("*******************\n\n")
numcores = input("How many cores in the system?")
if int(numcores) % 4 != 0:
print(
"No Support for core totals not being divisble by 4. Number of cores = {}".format(
@seberm
seberm / gist:a74cfd838ea66d734d79
Created December 29, 2015 11:46 — forked from andrewlkho/gist:7373190
How to use authentication subkeys in gpg for SSH public key authentication

GPG subkeys marked with the "authenticate" capability can be used for public key authentication with SSH. This is done using gpg-agent which, using the --enable-ssh-support option, can implement the agent protocol used by SSH.

Requirements

A working gpg2 setup is required. It may be possible to use gpg 1.4 but with gpg-agent compiled from gpg2. If you are using OS X 10.9 (Mavericks) then you may find the instructions [here][1] useful.

@seberm
seberm / makefile
Created April 24, 2012 08:25
Pouziti semaforu a shm
CC=gcc
CFLAGS=-pthread -lrt -std=gnu99
sem: sem.c
clean:
rm -f sem