Skip to content

Instantly share code, notes, and snippets.

View stephanethomas's full-sized avatar

Stéphane Thomas stephanethomas

View GitHub Profile
gameStarted = false
discoveryTilePos = {
{-22.29, 1.6, -5.03},
{-16.96, 1.6, -3.70},
{-11.67, 1.6, -1.51},
{-11.67, 1.6, -6.27},
{-32.65, 1.6, -21.02},
{19.10, 1.6, -21.02},
{32.78, 1.6, 20.53},
@stephanethomas
stephanethomas / loader.js
Last active November 3, 2017 11:35
Calypso Webpack Loader
var config = require( 'config' ),
page = require( 'page' ),
React = require( 'react' ),
activateNextLayoutFocus = require( 'state/ui/layout-focus/actions' ).activateNextLayoutFocus,
LoadingError = require( 'layout/error' ),
controller = require( 'controller' ),
restoreLastSession = require( 'lib/restore-last-path' ).restoreLastSession,
preloadHub = require( 'sections-preload' ).hub,
switchCSS = require( 'lib/i18n-utils/switch-locale' ).switchCSS,
debug = require( 'debug' )( 'calypso:bundler:loader' );
@stephanethomas
stephanethomas / apache-ddos.conf
Created April 27, 2012 08:45
Fail2ban Denial Of Service Filter
# Fail2Ban configuration file
#
# 93.114.132.34 - - [27/Apr/2012:09:50:55 +0200] "GET / HTTP/1.1" 200 3241 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
# sd-31638.dedibox.fr:80 193.33.237.205 - - [26/Apr/2012:13:27:46 +0200] "GET /db/main.php HTTP/1.0" 403 249 "-" "-"
#
[Definition]
# Option: failregex
# Notes.: regex to match any GET entry in the logfile, so basically all valid