Skip to content

Instantly share code, notes, and snippets.

Avatar

Olivier Wulveryck owulveryck

View GitHub Profile
@owulveryck
owulveryck / gist:561678958c0b566045b3f6b98e5c4531
Created Jun 30, 2016
Command lines arguments to capture my webcam asf videostream and send it to s3
View gist:561678958c0b566045b3f6b98e5c4531
avconv -i http://myip/videostream.asf -c:v libx264 -b 400k -b:a 16k -strict experimental -f mp4 -movflags frag_keyframe+empty_moov - | gof3r put -b mybucket -k output.mp4
View openvpn chromebook
Turn on developer mode (hold down Esc + F3, restart, hit Control+D).
Open a terminal (Ctrl+Alt+T, type ‘shell’, hit enter).
sudo nano /etc/resolv.conf; add “nameserver 10.4.4.1” (replacing “10.4.4.1” with the right IP) at the top
sudo stop shill
sudo shill --device-black-list=tun0
sudo openvpn ~/Downloads/client.ovpn
Enter username, password, OTP.
Leave this tab in the background.
When you’re done with the VPN, switch back to this tab and hit Ctrl+C.
@owulveryck
owulveryck / Generation.sh
Last active Sep 11, 2016
CSV parsing comparison
View Generation.sh
for i in $(seq 1 600000)
do
echo SERVER$((RANDOM%800+100)),$RANDOM,$RANDOM,$RANDOM >> sample.csv
done
View keybase.md

Keybase proof

I hereby claim:

  • I am owulveryck on github.
  • I am owulveryck (https://keybase.io/owulveryck) on keybase.
  • I have a public key whose fingerprint is D156 4498 8384 6F9B 95E0 8A5C F1A9 CEA2 D3B9 B439

To claim this, I am signing this object:

View .Xdefaults
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
View hterm.js
{
"magic": "nassh-prefs",
"version": 1,
"nassh": {
"profile-ids": [
{
"id": "1e99",
"json": {
"description": "Terminal",
"username": "chronos",
@owulveryck
owulveryck / main.go
Created Dec 1, 2016 — forked from julz/main.go
containersched minicontainer
View main.go
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
View router.go
package main
//go:generate gopherjs build main.go -o js/app.js -m
// +build ignore
import (
"github.com/gopherjs/gopherjs/js"
"log"
)
@owulveryck
owulveryck / item.go
Created Feb 2, 2017
Golang / Reflection
View item.go
package item
import (
"errors"
"reflect"
)
// Marshal takes an interface and returns an Item compatible with tidedot
func Marshal(o interface{}) map[string]interface{} {
oType := reflect.TypeOf(o)
@owulveryck
owulveryck / csv.go
Last active Mar 10, 2017
Decoding a csv to an object in GO
View csv.go
package main
import (
"encoding/csv"
"io"
"reflect"
)
// test holds a structure
type test struct {