Skip to content

Instantly share code, notes, and snippets.

View superbiche's full-sized avatar
🕹️
Working from everywhere

Michel Tomas superbiche

🕹️
Working from everywhere
View GitHub Profile
@superbiche
superbiche / geolocation-with-fallback.js
Last active August 29, 2015 14:22 — forked from paulirish/gist:366184
HTML5 Geolocation with Google API fallback. Forked from https://gist.github.com/paulirish/366184
// geo-location shim
// currentely only serves lat/long
// depends on jQuery
// doublecheck the ClientLocation results because it may returning null results
;(function(geolocation){
if (geolocation) return;
@superbiche
superbiche / wordlist.txt
Last active September 1, 2015 14:03 — forked from ehedaya/wordlist.txt
Oren Tirosh’s mnemonic encoding project word list (http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html)
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
@superbiche
superbiche / gist:e85cd613ec4d59ef6223
Created October 10, 2015 17:11
VLC plugin - delete currently playing file
--[[
INSTALLATION (create directories if they don't exist):
- put the file in the VLC subdir /lua/extensions, by default:
* Linux (all users): /usr/share/vlc/lua/extensions/
* Linux (current user): ~/.local/share/vlc/lua/extensions/
* Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
* Windows: not supported - getting permission error on delete...
- Restart VLC.
]]--
<?php
define( 'DB_NAME', '' );
define( 'DB_USER', '' );
define( 'DB_PASSWORD', '' );
define( 'DB_HOST', '127.0.0.1' );
define( 'WPLANG', '' );
define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );
@superbiche
superbiche / _service.md
Created March 29, 2016 09:46 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)

PHP-CLI (PHP en ligne de commande) sur les hébergements mutualisés OVH

(cli)

/usr/local/php5.3/bin/php  =>  PHP 5.3.29 (cli) (built: Dec 10 2014 16:59:41)
/usr/local/php5.4/bin/php  =>  PHP 5.4.38 (cli) (built: Feb 26 2015 09:53:00)
/usr/local/php5.5/bin/php  =>  PHP 5.5.22 (cli) (built: Feb 23 2015 13:12:45)
/usr/local/php5.6/bin/php  =>  PHP 5.6.6 (cli) (built: Feb 23 2015 13:13:02)
/usr/local/php7.0/bin/php =&gt; PHP 7.0.2 (cli) (built: Feb 8 2016 10:58:42) ( NTS )
@superbiche
superbiche / bash-cheatsheet.sh
Created September 29, 2016 08:42 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@superbiche
superbiche / youtube_id_regex.php
Created February 21, 2017 01:56 — forked from ghalusa/youtube_id_regex.php
Extract the YouTube Video ID from a URL in PHP
<?php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
// http://youtu.be/dQw4w9WgXcQ
// http://www.youtube.com/embed/dQw4w9WgXcQ
// http://www.youtube.com/watch?v=dQw4w9WgXcQ
// http://www.youtube.com/?v=dQw4w9WgXcQ
// http://www.youtube.com/v/dQw4w9WgXcQ
// http://www.youtube.com/e/dQw4w9WgXcQ
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ
@superbiche
superbiche / fix_git_sslread_9806.sh
Last active March 5, 2017 02:04 — forked from entropiae/fix_git_sslread_9806.sh
git: how to solve "SSLRead() return error -9806" in OSX using brew
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git
# If you don't already have php71 installed, replace "reinstall" with "install"
$ brew reinstall php71 --with-homebrew-curl # and any other with/without option offered by "brew info php71"
@superbiche
superbiche / INSTALL.rst
Created April 30, 2017 00:29 — forked from jensens/INSTALL.rst
sentry setup with docker-compose

In order to run this image do: docker-compose up -d to get all up. On first run DB initialization and initial user setup is done like so:

First start a bash in the container: docker-compose exec sentry /bin/bash. Then, inside bash, do sentry upgrade wait until it asks you for an inital user. When finished exit the bash.

When in doubt check with docker-compose ps if all went fine.