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
View arduino-1.6.1-Bridge-baudrate.patch
diff -ruN arduino-1.6.1.orig/libraries/Bridge/src/Bridge.h arduino-1.6.1/libraries/Bridge/src/Bridge.h
--- arduino-1.6.1.orig/libraries/Bridge/src/Bridge.h 2015-03-10 14:19:56.000000000 +0100
+++ arduino-1.6.1/libraries/Bridge/src/Bridge.h 2015-03-14 14:43:28.461304458 +0100
@@ -19,6 +19,10 @@
#ifndef BRIDGE_H_
#define BRIDGE_H_
+#define BRIDGE_BAUDRATE 250000
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
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 utopic main restricted
deb utopic-updates main restricted
deb utopic universe
deb utopic-updates universe
deb utopic multiverse
deb utopic-updates multiverse
deb utopic-security main restricted
deb utopic-security universe
View BANANIAN_BPi-R-etc-network-if-pre-up.d-swconfig
# 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 / 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/ /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!
PLUGIN_NAME="Shockwave Flash"
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.