Skip to content

Instantly share code, notes, and snippets.

View CodeZombieCH's full-sized avatar

CodeZombieCH

  • Zürich, Switzerland
View GitHub Profile
@CodeZombieCH
CodeZombieCH / interfaces.json
Last active July 1, 2020 16:07
Router7 configuration examples
{
"interfaces": [
{
"hardware_addr": "12:34:56:78:9a:b0",
"name": "lan0",
"addr": "192.168.0.1/24"
},
{
"hardware_addr": "12:34:56:78:9a:b2",
"name": "uplink0"
@CodeZombieCH
CodeZombieCH / data.xml
Created December 4, 2016 20:42
GPSies top 15 countries
<select>
<option value="AF">Afghanistan (27)</option>
<option value="EG">Ägypten (527)</option>
<option value="AL">Albanien (551)</option>
<option value="DZ">Algerien (86)</option>
<option value="AD">Andorra (406)</option>
<option value="AO">Angola (61)</option>
<option value="AI">Anguilla (4)</option>
<option value="AQ">Antarktis (10)</option>
<option value="AG">Antigua und Barbuda (10)</option>
/* Laura Doktorova https://github.com/olado/doT */
(function(){function p(b,a,d){return("string"===typeof a?a:a.toString()).replace(b.define||h,function(a,c,e,g){0===c.indexOf("def.")&&(c=c.substring(4));c in d||(":"===e?(b.defineParams&&g.replace(b.defineParams,function(a,b,l){d[c]={arg:b,text:l}}),c in d||(d[c]=g)):(new Function("def","def['"+c+"']="+g))(d));return""}).replace(b.use||h,function(a,c){b.useParams&&(c=c.replace(b.useParams,function(a,b,c,l){if(d[c]&&d[c].arg&&l)return a=(c+":"+l).replace(/'|\\/g,"_"),d.__exp=d.__exp||{},d.__exp[a]=
d[c].text.replace(new RegExp("(^|[^\\w$])"+d[c].arg+"([^\\w$])","g"),"$1"+l+"$2"),b+"def.__exp['"+a+"']"}));var e=(new Function("def","return "+c))(d);return e?p(b,e,d):e})}function k(b){return b.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}var f={version:"1.0.3",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[
@CodeZombieCH
CodeZombieCH / Form1.cs
Created May 16, 2015 14:21
WinForm: Get available caption size
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
@CodeZombieCH
CodeZombieCH / newDigitecStore.md
Last active August 29, 2015 14:04
New digitec store

New digitec store

Findings for crawling the new digitec store

General thougts

It might be a good idea to work with the mobile site in order to get smaller responses.

The mobile site can be triggered by setting the following cookie:

Cookie: dismod=m1