Skip to content

Instantly share code, notes, and snippets.

Mattias Schlenker mschlenker

Block or report user

Report or block mschlenker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mschlenker
mschlenker / trace.out
Created Mar 30, 2015
Arduino 1.6.2 strace Linux 64 bit
View trace.out
root@barium:/home/mattias# dpkg -L libjna-java
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libjna-java
/usr/share/doc/libjna-java/copyright
/usr/share/doc/libjna-java/changelog.Debian.gz
/usr/share/doc/libjna-java/README.Debian
/usr/share/java
View gist:3e98a33ef08596b80515
/*
I used the Serial Call and Response example sketch and modified it
This program similarly sends an ASCII A (byte of value 65) on
startup and repeats that until it gets some data in.
Then it waits for a byte in the serial port, and
sends sensor values whenever it gets a byte in.
The circuit:
* 5 piezos hooked up to Analog Pins 0-4
View gist:5f236a669c2177b9ee7e
deb http://ports.ubuntu.com utopic main restricted
deb http://ports.ubuntu.com utopic-updates main restricted
deb http://ports.ubuntu.com utopic universe
deb http://ports.ubuntu.com utopic-updates universe
deb http://ports.ubuntu.com utopic multiverse
deb http://ports.ubuntu.com utopic-updates multiverse
deb http://security.ubuntu.com/ubuntu utopic-security main restricted
deb http://security.ubuntu.com/ubuntu utopic-security universe
View BANANIAN_BPi-R-etc-network-if-pre-up.d-swconfig
#!/bin/sh
#---------------------------#
# BPI-R1 VLAN configuration #
#---------------------------#
#
# This will create the following ethernet ports:
# - eth0.101 = WAN (single port)
# - eth0.102 = LAN (4 port switch)
#
View BANANIAN-BPi-R-etc-network-interfaces
auto lo
iface lo inet loopback
auto eth0.101
auto eth0.102
# dhcp configuration
iface eth0.101 inet dhcp
# static ip configuration
@mschlenker
mschlenker / gist:3851bf425810bcdeab95
Created Sep 19, 2014
fix install of gnu-efi 3.0w
View gist:3851bf425810bcdeab95
make install
mkdir -p /usr/include/efi/protocol
mkdir -p /usr/include/efi/x86_64
install -m 0644 ./inc/efi_nii.h /usr/include/efi/
install -m 0644 ./inc/protocol/piflash64.h /usr/include/efi/protocol/
install -m 0644 ./inc/x86_64/pe.h /usr/include/efi/x86_64/
install -m 0644 ./gnuefi/elf_x86_64_efi.lds /usr/lib64/
install -m 0644 ./gnuefi/crt0-efi-x86_64.o /usr/lib64/
install -m 0644 ./gnuefi/libgnuefi.a /usr/lib
make install
View gist:bff00dda18f257957d94
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Registration file for Pepper Flash player.
# Copy the version number from manifest.json!
FILE_NAME=/opt/google/chrome/pepper/libpepflashplayer.so
PLUGIN_NAME="Shockwave Flash"
VERSION="14.0.0.177"
@mschlenker
mschlenker / gist:11ec60d0006f088eedd9
Created Jul 27, 2014
Use lkvm to run a prepared Ubuntu image
View gist:11ec60d0006f088eedd9
lkvm run -p 'root=/dev/vda2 ro console=ttyS0' --kernel /mnt/archiv/tmp/lkvm/vmlinuz-3.13.0-24-generic --initrd /mnt/archiv/tmp/lkvm/initrd.img-3.13.0-24-generic --console serial --network mode=tap,tapif=tap1 --no-dhcp -d /mnt/archiv/tmp/lkvm/vda.img
You can’t perform that action at this time.