Skip to content

Instantly share code, notes, and snippets.

View relet's full-sized avatar

Thomas Hirsch relet

View GitHub Profile
@relet
relet / leaflet.fullhash.js
Created September 14, 2017 12:04
leaflet.fullhash.js
(function(window) {
var HAS_HASHCHANGE = (function() {
var doc_mode = window.documentMode;
return ('onhashchange' in window) &&
(doc_mode === undefined || doc_mode > 7);
})();
L.Hash = function(map, options) {
this.onHashChange = L.Util.bind(this.onHashChange, this);
@relet
relet / update-monitor-position
Last active June 22, 2023 05:45
update-monitor-position with profile support.
#!/bin/bash
# -------------------------------------------------
# Get monitors configuration from monitor.xml and apply it for current user session.
# In case of multiple definitions in monitor.xml only first one is used.
#
# See http://bernaerts.dyndns.org/linux/74-ubuntu/309-ubuntu-dual-display-monitor-position-lost
# for instructions
#
# Parameters :
# $1 : profile name, loaded from $HOME/.config/monitors-$1.xml"
@relet
relet / ns-inet.sh
Last active January 23, 2017 06:57 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"
NET="eth0"
Verifying I am +relet on my passcard. https://onename.com/relet
This file has been truncated, but you can view the full file.
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -117.254959629863123, 32.883258098598681 ], [ -117.255148978356985, 32.884394831626587 ], [ -117.255193724756239, 32.884573561425469 ], [ -117.255310784672361, 32.88498980919951 ], [ -117.256215030495554, 32.887882469759028 ], [ -117.256377001746117, 32.888619778385966 ], [ -117.256395315298633, 32.889047599973466 ], [ -117.25629694432881, 32.889796052944341 ], [ -117.255567151012045, 32.893099676276854 ], [ -117.255394084417162, 32.89494645875272 ], [ -117.25553334614726, 32.899505616195881 ], [ -117.255675977515438, 32.900749914934416 ], [ -117.256023683613165, 32.901953128767246 ], [ -117.260121209361827, 32.912679068722753 ], [ -117.260344691750618, 32.913493817036638 ], [ -117.260379728087784, 32.913970860171204 ], [ -117.260321950943236, 32.914445685927355 ], [ -117.26017353689560
@relet
relet / utm32.html
Last active August 29, 2015 14:16
Kartverket / UTM32
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="http://openlayers.org/en/v3.0.0/css/ol.css" type="text/css">
<style>
.map {
height: 600px;
width: 800px;
}
</style>
@relet
relet / SassMeister-input.scss
Created October 21, 2014 08:54
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
/* common styles */
@font-face {
font-family: 'MetaBook';
src: url("/fonts/MetaWeb-Book.eot");