Skip to content

Instantly share code, notes, and snippets.

View owulveryck's full-sized avatar

Olivier Wulveryck owulveryck

View GitHub Profile
@owulveryck
owulveryck / gist:561678958c0b566045b3f6b98e5c4531
Created June 30, 2016 13:11
Command lines arguments to capture my webcam asf videostream and send it to s3
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
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 September 11, 2016 19:28
CSV parsing comparison
for i in $(seq 1 600000)
do
echo SERVER$((RANDOM%800+100)),$RANDOM,$RANDOM,$RANDOM >> sample.csv
done

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:

@owulveryck
owulveryck / .Xdefaults
Created October 6, 2016 07:38
Configurations X
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
@owulveryck
owulveryck / router.go
Last active December 25, 2016 06:50
GopherJS
package main
//go:generate gopherjs build main.go -o js/app.js -m
// +build ignore
import (
"github.com/gopherjs/gopherjs/js"
"log"
)
{
"magic": "nassh-prefs",
"version": 1,
"nassh": {
"profile-ids": [
{
"id": "1e99",
"json": {
"description": "Terminal",
"username": "chronos",
@owulveryck
owulveryck / main.go
Created December 1, 2016 14:05 — forked from julz/main.go
containersched minicontainer
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@owulveryck
owulveryck / Emotion.go
Last active September 2, 2018 10:47
Rekognition test
package main
import (
"bufio"
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/rekognition"
"github.com/blackjack/webcam"
"os"
package main
import (
"encoding/json"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
"github.com/kelseyhightower/envconfig"
"log"