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 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 qr.tex
\documentclass[a4paper]{article}
\usepackage{ngerman}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
% QR package: https://www.ctan.org/tex-archive/macros/latex/contrib/qrcode
\usepackage[final]{qrcode}
% Es ist überhaupt nicht schön, article zu vergewaltigen,
% aber es funktioniert...
View uhrundneopixel
/*
RV8523 RTC (Real-Time-Clock) Example
Uno A4 (SDA), A5 (SCL)
Mega 20 (SDA), 21 (SCL)
Leonardo 2 (SDA), 3 (SCL)
Note: To enable the I2C pull-up resistors on the RTC-Breakout, the jumper J1 has to be closed.
*/
View uhrbeispiel
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 13
#define BLUE strip.Color(0,0,255)
#define BLACK strip.Color(0,0,0)
#define GREEN strip.Color(0,255,0)
#define RED strip.Color(255,0,0)
View uhrseriell
/*
* Neue Uhrzeit von serieller Schnittstelle lesen
*/
int setClock(int oldCounter) {
char in;
in = Serial.read();
Serial.print(in);
if ((in == 10 || in == 13) && (recv_size > 0)) {
parse_cmd(recv, recv_size);
View visitenkarten-qr.tex
\documentclass[a4paper]{article}
\usepackage{ngerman}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
% QR package: https://www.ctan.org/tex-archive/macros/latex/contrib/qrcode
\usepackage[final]{qrcode}
% Es ist überhaupt nicht schön, article zu vergewaltigen,
% aber es funktioniert...
View start_lljabba.sh
qemu-system-x86_64 -enable-kvm -smp cpus=4 \
-vnc :1 -m 3072 \
-cdrom /mnt/archiv/tmp/lesslinux-bigfatfull-jabba-20150711-190742.iso \
-drive file=/dev/sdb,if=virtio -boot d -netdev user,id=network0 \
-device e1000,netdev=network0 \
-redir tcp:22222::22 -redir tcp:5900::5900
@mschlenker
mschlenker / gist:3adc4a803aadbecdb8a1
Created Jul 10, 2015
More LessLinux build stuff
View gist:3adc4a803aadbecdb8a1
qemu-system-x86_64 -enable-kvm -smp cpus=4 -vnc :3 -m 3072 \
-cdrom /mnt/archiv/tmp/lesslinux-bigfatfull-jabba-20150710-105028.iso \
-drive file=/dev/sdb,if=virtio -boot d \
-netdev user,id=network0 -device e1000,netdev=network0 -redir tcp:22222::22
View LessLinux Build stuff
qemu-system-x86_64 -enable-kvm -smp cpus=4 -vnc :3 -m 3072 \
-cdrom /mnt/archiv/tmp/lesslinux-bigfatfull-jabba-20150710-105028.iso \
-boot d -netdev user,id=network0 -device e1000,netdev=network0 \
-redir tcp:22222::22 \
-fsdev local,security_model=passthrough,id=fsdev0,path=/mnt/archiv \
-device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=LessLinux_build
View avrdude.confATtiny85
# $Id: avrdude.conf.in 1236 2013-09-16 19:40:15Z joerg_wunsch $ -*- text -*-
#
# AVRDUDE Configuration File
#
# This file contains configuration data used by AVRDUDE which describes
# the programming hardware pinouts and also provides part definitions.
# AVRDUDE's "-C" command line option specifies the location of the
# configuration file. The "-c" option names the programmer configuration
# which must match one of the entry's "id" parameter. The "-p" option
# identifies which part AVRDUDE is going to be programming and must match
You can’t perform that action at this time.