Skip to content

Instantly share code, notes, and snippets.

Aurélien Baumann aubm

Block or report user

Report or block aubm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View main.go
package main
import (
"encoding/xml"
"flag"
"fmt"
"net/http"
"os"
@aubm
aubm / theme.json
Created Oct 15, 2016
iTerm dark theme
View theme.json
{
"Working Directory" : "\/Users\/aurelienbaumann",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.7847255,
"Red Component" : 1,
"Blue Component" : 0.5426263
},
"Rows" : 40,
"Ansi 11 Color" : {
@aubm
aubm / ul-br to bbox
Last active May 17, 2016
Web cartography helpers
View ul-br to bbox
javascript:(function () {
var ul, br, validCoords = /^[+-]?\d+(\.\d+)?,[+-]?\d+(\.\d+)?$/;
do {
if (!(ul = window.prompt('Type in the value for UL (upper left) as lng, lat. Example: 58, 58'))) {
return;
}
if (!ul.replace(/ /g, '').match(validCoords)) {
console.log('Invalid format for UL, please type again');
ul = undefined;
View Docker cheatsheet
# Remove all stopped containers
docker rm $(docker ps -a -q)
# Remove all untagged images (<none>)
docker rmi $(docker images -f="dangling=true" -q)
@aubm
aubm / php.ini
Created Nov 21, 2015
Debug remote autostart configuration
View php.ini
[XDebug]
zend_extension = "/path/to/xdebug.dll"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=on
@aubm
aubm / end of supervisord.conf
Last active Jun 30, 2017
Sentry configuration files example
View end of supervisord.conf
[program:sentry-web]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py start http
autostart=true
autorestart=true
redirect_stderr=true
[program:sentry-worker]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py celery worker -B
You can’t perform that action at this time.