Skip to content

Instantly share code, notes, and snippets.

View Kloadut's full-sized avatar

kload Kloadut

View GitHub Profile
@mourner
mourner / TileLayer.Common.js
Created February 11, 2012 23:11
Leaflet shortcuts for common tile providers
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {
@TheConstructor
TheConstructor / inetd.conf
Last active May 22, 2020 10:42
Postfix SRS-support under Debian "Wheezy". Using http://packages.debian.org/wheezy/srs, http://packages.debian.org/wheezy/liburi-perl and http://packages.debian.org/wheezy/openbsd-inetd File paths are: - /opt/srs/srs-encode.sh - /opt/srs/srs-decode.sh - /etc/inetd.conf (should be appended to) - /etc/postfix/main.cf (should be appended to) - /etc…
# SRS
127.0.0.1:10001 stream tcp nowait root /opt/srs/srs-encode.sh /opt/srs/srs-encode.sh
127.0.0.1:10002 stream tcp nowait root /opt/srs/srs-decode.sh /opt/srs/srs-decode.sh