Skip to content

Instantly share code, notes, and snippets.

View Pilooz's full-sized avatar

Pierre-Gilles Levallois Pilooz

  • Freelancer
  • France
View GitHub Profile
@Pilooz
Pilooz / example.ino
Created September 11, 2019 16:36 — forked from abcd-ca/example.ino
Example of getting unique mac address using Ethernet Featherwing
#import "macAddress.h"
void setup () {
byte mac[6];
getUniqueMacAddress(mac);
Serial.begin(115200);
Serial.print("mac: ");
for (uint8_t i = 0; i < sizeof(mac); i++) {
@Pilooz
Pilooz / web-servers.md
Created May 6, 2019 14:52 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@Pilooz
Pilooz / GitCommitEmoji.md
Created January 31, 2019 12:50 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@Pilooz
Pilooz / mirror.conf
Created March 9, 2016 10:00 — forked from ctrlaltdylan/mirror.conf
The nginx server configuration file needed to host the MirrorMirror application
server {
listen 80;
server_name localhost;
root /home/pi/projects/MirrorMirror/public;
index index.html index.htm index.php;
charset utf-8;
location / {
@Pilooz
Pilooz / pr.md
Last active August 29, 2015 14:23 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: