Skip to content

Instantly share code, notes, and snippets.

View mojoaxel's full-sized avatar
🏠
Working from home

Alexander Wunschik mojoaxel

🏠
Working from home
View GitHub Profile
@mojoaxel
mojoaxel / mobile-meta-links.html
Created January 9, 2012 21:35
iOS Web App Configuration
@mojoaxel
mojoaxel / gist:1616416
Created January 15, 2012 16:53 — forked from leplatrem/gist:1415767
Leaflet Offline Tiles using SQL Storage
/*
* L.TileLayer.LocalCache : A tile layer using SQL Storage, if available.
*/
L.TileLayer.LocalCache = L.TileLayer.extend({
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
subdomains: 'abc',
@mojoaxel
mojoaxel / nano_jsyntax_highlightning.sh
Last active December 10, 2015 04:28
Improve syntax-highlighting for the nano text editor
#!/bin/sh
### Improve syntax-highlighting for the nano editor.
### by mojoaxel <dev@wunschik.net>
### NOT TESTED YET!! USE WITH CARE!!
### http://www.if-not-true-then-false.com/2009/tuning-nano-text-editor-with-nanorc/
### download sytax setting for javascript
#!/bin/sh
## Node.js for Raspberry Pi Packaging Script
## =========================================
## Execute this script from within node.js git repo
## Use like this:
## ~/node/$ VERSION=v0.10.0 ./buildnode.sh
if [ -z $VERSION ]; then
echo "set the VERSION first"
exit 1
@mojoaxel
mojoaxel / font-boosting.css
Last active July 1, 2019 18:23 — forked from sethlilly/font-boosting.css
Disable font boosting on mobile browsers
/* disable font boosting on mobile browsers */
body * {
max-height: 1000000em; /* Chrome for Android */
-moz-text-size-adjust: none; /* Firefox Mobile */
}
@mojoaxel
mojoaxel / server.js
Last active January 23, 2016 18:23
simple static node.js webserver
var http = require("http");
var url = require("url");
var fs = require("fs");
var port = process.argv[2] || 8080;
var contentTypes = {
'ico': 'image/x-icon',
'html': 'text/html',
'js': 'application/javascript',
'json': 'application/json',
/*
* Retina Images using Handlebars.js
*
* Created by [Makis Tracend](@tracend)
* Released under the [MIT license](http://makesites.org/licenses/MIT)
*
* Usage: <img src="{{retina 'http://mydoma.in/path/to/image.jpg'}}">
*/
Handlebars.registerHelper('retina', function( src ) {
@mojoaxel
mojoaxel / killall.sh
Created June 24, 2014 12:11
kill all processes containing the given string
#!/bin/bash
ps -ef | grep $1 | grep -v grep | awk '{print $2}' | xargs kill -9
@mojoaxel
mojoaxel / PrintGitHubIssues.ascr
Last active September 24, 2017 09:19 — forked from gaute/githubprint.user.js
Tampermonkey and Actiona Script to print GitHub issues (GitHub version 24.09.17)
<?xml version="1.0" encoding="UTF-8"?>
<scriptfile>
<settings program="actiona" version="3.9.1" scriptVersion="1.1.0" os="GNU/Linux"/>
<actions>
<action name="ActionClick" version="1.0.0"/>
<action name="ActionLoop" version="1.0.0"/>
<action name="ActionWriteText" version="1.0.0"/>
<action name="ActionKey" version="1.0.0"/>
<action name="ActionOpenURL" version="1.0.0"/>
<action name="ActionVariable" version="1.0.0"/>