Skip to content

Instantly share code, notes, and snippets.

View lexoyo's full-sized avatar
🥰
working full time on silex.me (foss)

Alex Hoyau lexoyo

🥰
working full time on silex.me (foss)
View GitHub Profile
@lexoyo
lexoyo / index.js
Created July 25, 2016 19:00
workshop nodejs by @silexlabs
var insultes = [
'méchant',
'coco',
'bachibouzouk',
'débile'
];
@lexoyo
lexoyo / dabblet.css
Created August 14, 2016 18:50 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@lexoyo
lexoyo / struggle.user.js
Last active November 4, 2016 12:38
make the browser struggle
// ==UserScript==
// @name struggle.js
// @namespace lexoyo
// @version 1
// @grant none
// ==/UserScript==
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
@lexoyo
lexoyo / reload.user.js
Last active November 29, 2016 09:17
reload X times
// ==UserScript==
// @name reload X times
// @namespace secretmedia
// @include *
// @version 0.3
// @description reload X times
// @author me lexoyo
// @grant none
// ==/UserScript==
@lexoyo
lexoyo / private-facebook.user.js
Created December 2, 2016 13:34
Cleanup Facebook History user script
// ==UserScript==
// @name private-facebook
// @namespace lexoyo.user.scripts
// @description cleanup facebook as you go
// @version 1.0.0
// @grant none
// @include https://www.facebook.com*
// @run-at document-end
// ==/UserScript==
@lexoyo
lexoyo / osm-from-url-overhttps.html
Last active March 21, 2017 00:24
Open Street map from map URL and over HTTPS
<div id="mapdiv"></div>
<style>
#mapdiv {
width: 1000px;
height: 1000px;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.11/OpenLayers.js"></script>
<script>
map = new OpenLayers.Map("mapdiv");
@lexoyo
lexoyo / config.js
Last active July 11, 2017 13:03
My MagicMirror² config
/*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
@lexoyo
lexoyo / roverjeff.js
Last active January 7, 2018 12:09
jeff's attempt to the stars
var rover = {
directions : {"N" , "S" , "E" , "W"};
default : "N";
function turnLeft(rover){
console.log("turnLeft was called");
}
function turnRight(rover){
console.log("turnRight was called")
@lexoyo
lexoyo / warn-when-down.sh
Created March 18, 2018 22:58
check if silex has reboot after a release to production
while true; do curl -sSf https://preprod.silex.me/ > /dev/null ; sleep 2; done
@lexoyo
lexoyo / README.md
Last active January 27, 2019 02:31
Page rank

Page rank user script

About this user script

It adds a button to google search result, then ask you for a website and browse all result pages to find the position of this website in google.

screenshot from 2019-01-26 20-19-14

TODO:

  • use the URL un get rather than localstorage => enable multiple tabs