Skip to content

Instantly share code, notes, and snippets.

View mauricesvay's full-sized avatar
💭
🍗

Maurice Svay mauricesvay

💭
🍗
View GitHub Profile
#!/usr/local/bin/node
var http = require('http');
var exec = require('child_process').exec;
var url = 'http://api.citybik.es/velib.json';
// var lat = '48.8836694';
// var lon = '2.3736453';
var id = 19030;
command = '/home/pi/blink1-tool -m 100 --rgb 50,50,50';
@mauricesvay
mauricesvay / jobboards.md
Last active December 24, 2015 16:19
Job boards spécialisés dans les nouvelles technologie en France
@mauricesvay
mauricesvay / webmail.js
Created October 19, 2012 20:13
Controlling cheap USB LED notifiers with nodejs and node-hid
/* Controlling cheap USB LED notifiers with node-hid */
var Notifier = function(hid) {
this.hid = hid;
this.colors = ['OFF', 'BLUE', 'RED', 'GREEN', 'CYAN', 'PURPLE', 'YELLOW', 'WHITE'];
};
Notifier.prototype.write = function(arBytes) {
this.hid.write(arBytes);
};
Notifier.prototype.color = function(value) {
@mauricesvay
mauricesvay / gist:4408150
Created December 29, 2012 17:19
Parse iwlist scan output in JavaScript (nodejs)
function iwlistParse(str) {
var out = str.replace(/^\s+/mg, '');
out = out.split('\n');
var cells = [];
var line;
var info = {};
var fields = {
'mac' : /^Cell \d+ - Address: (.*)/,
'ssid' : /^ESSID:"(.*)"/,
'protocol' : /^Protocol:(.*)/,
@mauricesvay
mauricesvay / composer.json
Created April 26, 2016 09:05
Sketchfab RSS Feed for Staff Picks
{
"require": {
"suin/php-rss-writer": "^1.3",
"erusev/parsedown": "^1.6"
}
}
@mauricesvay
mauricesvay / model-tools.js
Created September 2, 2016 16:13
Model tools tampermonkey script
// ==UserScript==
// @name Sketchfab Model tools
// @namespace http://svay.com/
// @version 0.1
// @description Useful tools for Sketchfab models
// @author Maurice Svay
// @match https://sketchfab.com/models/*
// @grant GM_addStyle
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
<?php
/*
How to use:
- In Dashlane, export data as CSV
- Copy this file in the same folder as the exported csv
- Run in a terminal: php dashlane-to-1password.php
- This should generate 2 files: Dashlane_passwords.csv and Dashlane_others.csv
- In 1Password, import Dashlane_passwords.csv
- Do whatever you want with Dashlane_others.csv
@mauricesvay
mauricesvay / programming-words.md
Last active July 31, 2019 09:45
Programming words
  • engine
  • height
  • integer
  • charset
  • any word that has "ough" (through, though, dough, thought, etc.)