Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Philipp Klaus pklaus

🎯
Focusing
  • PwC
  • Frankfurt, Germany
View GitHub Profile
@pklaus
pklaus / openssl-speed.aes-128-cbc
Last active Aug 29, 2015
Hardware Crypto on GoFlex Home running Arch Linux ARM. Repetition of https://gist.github.com/pklaus/1950517 with OpenSSL 1.0.1f
View openssl-speed.aes-128-cbc
[root@goflex ~]# openssl speed -evp aes-128-cbc
Doing aes-128-cbc for 3s on 16 size blocks: 57612 aes-128-cbc's in 0.03s
Doing aes-128-cbc for 3s on 64 size blocks: 56430 aes-128-cbc's in 0.04s
Doing aes-128-cbc for 3s on 256 size blocks: 49312 aes-128-cbc's in 0.04s
Doing aes-128-cbc for 3s on 1024 size blocks: 32394 aes-128-cbc's in 0.05s
Doing aes-128-cbc for 3s on 8192 size blocks: 7515 aes-128-cbc's in 0.02s
OpenSSL 1.0.1f 6 Jan 2014
built on: Tue Jan 28 21:30:37 MST 2014
options:bn(64,32) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) idea(int) blowfish(ptr)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS -DHASH_MAX_LEN=64 -Wa,--noexecstack -march=armv5te -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DTERMIO -O3 -Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DGHASH_ASM
@pklaus
pklaus / lsusb
Created Feb 5, 2014
UDOO quad component details inspected using Linaro 12.04
View lsusb
ubuntu@udoo:~$ lsusb -v
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
View gist:9099457
/************************************************************************
* Arduino Due: Reading & Writing to I2C EEPROM Version: 1.00 *
* Function : Reads and Writes to Atmel 24C64 Serial EEPROM *
* Exp. Level : Beginner/Elementary *
************************************************************************
* Arduino IDE v1.5.2 from http://arduino.cc/en/Main/Software *
* Configuration: Arduino Due (Programming Port) on /dev/ttyACM0 *
* Operating System: Xubuntu Linux 13.10 Saucy Salamander (32-bit) *
* Created: June 13, 2013 Latest Revision: June 13, 2013 *
************************************************************************
@pklaus
pklaus / dmesg
Last active Aug 29, 2015
i2c-tiny-usb as detected on Linux computer http://blog.philippklaus.de/2015/02/i2c-tiny-usb/
View dmesg
usb 3-2: new low speed USB device using uhci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
i2c-tiny-usb 3-2:1.0: version 2.05 found at bus 003 address 002
i2c-adapter i2c-3: connected i2c-tiny-usb device
usbcore: registered new interface driver i2c-tiny-usb
@pklaus
pklaus / agilentdmm.py
Last active Aug 29, 2015
Python script to communicate with the Digital Multimeters Agilent U1253A / U1272A / U1273A originally found on http://goo.gl/Gycv9H
View agilentdmm.py
#!/usr/bin/env python
# Python script to communicate with the
# Agilent U1253A / U1272A / U1273A etc.
# found originally on http://goo.gl/Gycv9H
# For more information on the protocol, check
# http://blog.philippklaus.de/2014/02/agilent-u1273a/
# and http://goo.gl/oIJi96
@pklaus
pklaus / dmesg.txt
Last active Aug 29, 2015
SUN Ultra 40 Workstation with 2 x DualCore AMD Opteron 280 running Debian GNU/Linux
View dmesg.txt
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.54-2
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.2.0-4-amd64 root=UUID=3f7924e1-93b9-403a-979c-6fffc68cf22b ro quiet
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009dc00 (usable)
[ 0.000000] BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000ce000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000007fef0000 (usable)
[ 0.000000] BIOS-e820: 000000007fef0000 - 000000007ff01000 (ACPI data)
@pklaus
pklaus / u1272a-0_1.pl
Created May 26, 2014
Perl program which talks to the Agilent U1272A found on http://www.mjoldfield.com/atelier/2011/06/agilent-macos.html
View u1272a-0_1.pl
#! /usr/bin/perl
#
# Proof of concept for Mac <-> Agilent U1272A communications
#
# Copyright (c) 2011 M J Oldfield <m@mjo.tc>
#
# Version 0.1 2011-06-17 M J Oldfield
#
use strict;
View createroute.sh
#!/bin/bash
#
# createroute.sh
#
# eine in GpsDrive erstellte Wegpunkte-Datei way-routenname.txt
# in eine Textdatei umwandeln und formatieren, damit sie als Route
# in den Garmin Forerunner 201/301/205/305 geladen und zum
# Navigieren verwendet werden kann.
#
# Thomas Schönhütl <pilleus.pulcher@arcor.de>
@pklaus
pklaus / file-structure.txt
Created Jun 8, 2014
Magellan explorist GC file and folder structure
View file-structure.txt
lion:~ philipp$ tree /Volumes/MAGELLAN/
/Volumes/MAGELLAN/
├── APP
│   ├── AlarmClockNotifier.exe
│   ├── Atlas.ini
│   ├── Awards
│   │   ├── i_100_DistanceMeritBadge.png
│   │   ├── i_10_DistanceMeritBadge.png
│   │   ├── i_250_DistanceMeritBadge.png
│   │   ├── i_25_DistanceMeritBadge.png
@pklaus
pklaus / iphelpers.py
Created Jun 27, 2014
Helper tools and functions for the Python3.3+ module ipaddress
View iphelpers.py
"""
Helper tools and functions for the Python3.3+ module ipaddress
"""
def optimize(networks):
"""
An algorith to optimize a list of networks:
it merges its network elements as much as possible.
Adopted from IPSet's optimize() of
https://github.com/steffann/python-ipy/blob/master/IPy.py