Skip to content

Instantly share code, notes, and snippets.

View ydbondt's full-sized avatar
:octocat:
Solution Architect @ Unifly

Youri De Bondt ydbondt

:octocat:
Solution Architect @ Unifly
View GitHub Profile
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
// Wifi
const char* ssid = "my-ssid";
const char* password = "xxxxxxx";
@ydbondt
ydbondt / pins.c
Created December 17, 2016 21:09
NodeMCU Pins
static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t D9 = 3;
@ydbondt
ydbondt / gist:a96a1f8e6794984e8609b3c4b2a6f407
Last active November 14, 2016 16:46
Verifying that "de_youri.id" is my Blockstack ID. https://onename.com/de_youri
Verifying that "de_youri.id" is my Blockstack ID. https://onename.com/de_youri
@ydbondt
ydbondt / git-pr
Created September 23, 2016 09:18
git-pr
#!/bin/bash
# Usage: git pr <branch> -a <user>
hub pull-request -b unifly-aero:$1 -a "${@:2}"
sudo arp-scan -I wlan0 192.168.1.0/24 | grep b8:27:eb
@ydbondt
ydbondt / gist:4259364
Last active October 13, 2015 21:38
My Git Aliasses
[alias]
lg = log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
branch-name = "!git rev-parse --abbrev-ref HEAD"
publish = "!git push -u origin $(git branch-name)"
delete-merged-branches = "!git checkout master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
changed = "!git log --color --abbrev-commit --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' $(git branch-name) ^central/master --no-merges"
@ydbondt
ydbondt / loglive
Created October 12, 2012 13:40
Log live for Git
#!/bin/bash
watch --color "git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all -20"