Skip to content

Instantly share code, notes, and snippets.

Reverse proxy over 3G modem (draft)

We will explain how to configure a cubieboard running debian as a reverese proxy. The modules that will be used are wvdial and autossh

Credits goes to:

1. http://blog.rootshell.be/2015/02/19/my-little-pwnie-box/
2. https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd
@stefket
stefket / bootstrap-carousel-transition.css
Created June 16, 2016 09:50
Bootstrap carousel transition
@stefket
stefket / confirm.js
Last active December 11, 2015 08:48
JavaScript confirm with magnific popup
var confirmDialog = function(message, headline, cb) {
var dialog = '<div class="dialog confirm mfp-with-anim">';
if (headline) {
dialog += '<h2>' + headline + '</h2>';
}
dialog += '<div class="content"><p>' + message + '</p></div>';
dialog += '<div class="actions">';
dialog += '<button type="button" class="btn btn-default btn-cancel">Abbrechen</button> ';
dialog += '<button type="button" class="btn btn-primary btn-submit">OK</button>';
dialog += '</div>';
@stefket
stefket / is_ajax.php
Last active December 11, 2015 08:36
Check if ajax request
<?php
/**
* @return boolean
*/
function is_ajax()
{
if (!isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
return false;
}