Skip to content

Instantly share code, notes, and snippets.

View markvdb's full-sized avatar

Mark Van den Borre markvdb

View GitHub Profile
@markvdb
markvdb / gist:95e69610cdcc9bcfe7dd5d74ea75c498
Created October 19, 2016 09:04
wpa2 enterprise config
config wifi-iface
option device 'radio0'
option network 'lan'
option ssid 'Lede-Intern'
option encryption 'wpa2'
option mode 'sta'
option eap_type 'peap'
option auth 'MSCHAPV2'
option ca_cert '/root/wlan2008r2-ca.cer'
option identity 'leerkracht'
Sun Jan 31 21:21:52 2016 kern.info kernel: [ 8455.710000] wlan0: authenticate with 9c:1c:12:4c:44:00
Sun Jan 31 21:21:52 2016 kern.info kernel: [ 8455.720000] wlan0: send auth to 9c:1c:12:4c:44:00 (try 1/3)
Sun Jan 31 21:21:52 2016 kern.info kernel: [ 8455.730000] wlan0: authenticated
Sun Jan 31 21:21:52 2016 kern.info kernel: [ 8455.740000] wlan0: associate with 9c:1c:12:4c:44:00 (try 1/3)
Sun Jan 31 21:21:52 2016 daemon.notice netifd: Network device 'wlan0' link is up
Sun Jan 31 21:21:52 2016 kern.info kernel: [ 8455.750000] wlan0: RX AssocResp from 9c:1c:12:4c:44:00 (capab=0x1431 status=0 aid=1)
Sun Jan 31 21:21:52 2016 kern.info kernel: [ 8455.760000] wlan0: associated
Sun Jan 31 21:21:52 2016 kern.debug kernel: [ 8455.950000] wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 9c:1c:12:4c:44:00
Sun Jan 31 21:21:59 2016 kern.info kernel: [ 8462.890000] wlan0: deauthenticating from 9c:1c:12:4c:44:00 by local choice (Reason: 3=DEAUTH_LEAVING)
Sun Jan 31 21:21:59 2016 daemon.notice netifd: Network d
root@OpenWrt:/etc/config# cat /var/run/wpa_supplicant*
cat: read error: Is a directory
network={
scan_ssid=1
ssid="Lede-Intern"
key_mgmt=WPA-EAP
identity="leerkracht"
phase2="MSCHAPV2"
password="hahanottellingyouthisone"
adb devices
List of devices attached
0123456789ABCDEF recovery
#!/bin/sh
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
. $confdir/config.sh
fi
ffmpeg -y -nostdin \
-i "udp://227.0.0.2:9000" \
-ac 2 \
#!/bin/sh
wget -nc -O /tmp/overlay_hd.png http://c3voc.mazdermind.de/testfiles/overlay_hd.png
ffmpeg -y -nostdin \
-i tcp://localhost:11000 \
-threads:0 0 \
-aspect 16:9 \
-c:v libx264 \
-filter_complex '
[0:v] yadif=mode=2, hqdn3d [deinter];
movie=/tmp/overlay_hd.png [logo];
@markvdb
markvdb / vocto.mmd
Last active November 21, 2016 12:26
mermaid description for use with grafana. dump into http://knsv.github.io/mermaid/live_editor/ for a live view.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/local/bin/bash
PRES=Welcome_to_IoT_Devroom.webm
CAM=Wine_hacking_session.webm
TITLE="Test talk"
SUBTITLE="jjjjjj a talk to demonstrate the compositing setup"
SPEAKERS="Niels"
ffmpeg -framerate 1/5 -i artwork/preroll-%d.jpg \
-loop 1 -i artwork/bg.jpg \
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/44100
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
[ 9575.180000] wlan0: authenticate with 9c:1c:12:4c:44:00
[ 9575.200000] wlan0: send auth to 9c:1c:12:4c:44:00 (try 1/3)
[ 9575.210000] wlan0: authenticated
[ 9575.230000] wlan0: associate with 9c:1c:12:4c:44:00 (try 1/3)
[ 9575.240000] wlan0: RX AssocResp from 9c:1c:12:4c:44:00 (capab=0x1431 status=0 aid=1)
[ 9575.240000] wlan0: associated
[ 9575.270000] wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 9c:1c:12:4c:44:00
[ 9582.290000] wlan0: deauthenticating from 9c:1c:12:4c:44:00 by local choice (Reason: 3=DEAUTH_LEAVING)