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": [
@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");