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 / 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 / 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 / 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 / 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 / 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 / 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 / index.js
Created July 25, 2016 19:00
workshop nodejs by @silexlabs
var insultes = [
'méchant',
'coco',
'bachibouzouk',
'débile'
];
@lexoyo
lexoyo / vidadeo-add.js
Created May 8, 2016 11:44
hacks social nets
// on http://www.viadeo.com/network/requests/
// accepts or requests 100 people
var idx = 0; function dome(){ $('.vicon-add').click(); window.scrollBy(0, 150); if(idx++<100) { setTimeout(dome, 500) } }; dome();
@lexoyo
lexoyo / align-widget.js
Last active March 26, 2016 13:47 — forked from anonymous/align-widget.js
align widget for silex
silex.model.Widget.register(function(model, view, controller) {
return {
title: 'Align tool',
description: 'This widget displays buttons to align selected elements.',
selection: [],
@lexoyo
lexoyo / .bashrc
Last active January 1, 2016 16:28
My bash prompt
# needs this: curl -L https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.bash_git
source ~/.bash_git
# comes from http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O