Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Vanderbeken iamkevinv

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am iamkevinv on github.
  • I am iamkevinv (https://keybase.io/iamkevinv) on keybase.
  • I have a public key ASDTGTFktSgnSXkZX77u-PmgxIUlZyqtSt1KdWnFs4Qcbwo

To claim this, I am signing this object:

@iamkevinv
iamkevinv / index.html
Last active Jan 17, 2017 — forked from sfinktah/index.html
d3-map-visible-area-coordinates
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.info {
position: absolute;
@iamkevinv
iamkevinv / .block
Last active Aug 5, 2019 — forked from mbostock/.block
Zoom to Bounding Box II - Updated for d3 v4
View .block
license: gpl-3.0
@iamkevinv
iamkevinv / vpn-status.sh
Created Dec 21, 2015 — forked from aelveborn/vpn-status.sh
Synology DSM 5 VPN reconnection script.Save file to /usr/openVPNreconnect then run chmod +x /usr/openVPNreconnect. Schedule by following http://forum.synology.com/enu/viewtopic.php?f=241&t=65444
View vpn-status.sh
# Replace o1234567890 with your OpenVPN id. To get your id, start the VPN and run ps|grep client_o
# Replace YOUR_VPN_NAME with the name of your VPN profile in DSM 5 admin panel.
if echo `ifconfig tun0` | grep -q "00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00"
then
echo "VPN is running"
else
echo conf_id=o1234567890 > /usr/syno/etc/synovpnclient/vpnc_connecting
echo conf_name=YOUR_VPN_NAME >> /usr/syno/etc/synovpnclient/vpnc_connecting
echo proto=openvpn >> /usr/syno/etc/synovpnclient/vpnc_connecting
@iamkevinv
iamkevinv / NeoPixelTest.ino
Last active Apr 22, 2016 — forked from dougalcampbell/NeoPixelTest.ino
Example of driving an Adafruit NeoPixel Ring with the Digispark Arduino-compatible board
View NeoPixelTest.ino
#include <Adafruit_NeoPixel.h>
#define PIN 1
#define STRIPSIZE 16
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
@iamkevinv
iamkevinv / setup.sh
Last active Aug 29, 2015 — forked from marklawlor/setup.sh
Setup things for a new mac
View setup.sh
#!/bin/bash
#
# Helper functions
#
function pause(){
read -p "$*"
}
@iamkevinv
iamkevinv / dabblet.css
Created Dec 4, 2013
Just for fun™: Flickr spinner in pure CSS - Lea L
View dabblet.css
/**
* Just for fun™: Flickr spinner in pure CSS - Lea L
*/
@keyframes move {
to { left: 50%; }
}
@keyframes cover {
from,49.9% { z-index: 1 }