Skip to content

Instantly share code, notes, and snippets.

@SunboX
SunboX / gist:3ad98781eab0e9d34585ec01d96994ec
Created November 19, 2017 20:11 — forked from bruth/gist:2865951
Backbone Sync Queue
# Reference Backbone ajax function
_ajax = Backbone.ajax
requestQueue = []
requestPending = false
sendRequest = (options, promise, trigger=true) ->
options = _.clone options
if trigger
requestPending = true
{"matches": [{"product": "thttpd", "hash": 1654515131, "timestamp": "2017-02-21T08:30:27.732199", "title": "", "transport": "tcp", "ip": 1598823199, "isp": "UPC Romania SRL", "http": {"redirects": [], "title": "", "robots": null, "server": "thttpd/2.25b 29dec2003", "host": "95.76.27.31", "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n<html>\r\n<head>\r\n\r\n <meta content=\"text/html; charset=ISO-8859-1\" http-equiv=\"content-type\">\r\n <meta http-equiv=\"refresh\" content=\"0;url=/web/index.html\">\r\n <title></title>\r\n\r\n</head>\r\n\r\n\r\n<body>\r\n</body>\r\n</html>\r\n", "location": "/", "components": {}, "sitemap": null, "html_hash": -1302171317}, "cpe": ["cpe:/a:acme:thttpd:2.25b_29dec2003"], "ip_str": "95.76.27.31", "asn": "AS6830", "port": 80, "version": "2.25b 29dec2003", "data": "HTTP/1.1 200 OK\r\nServer: thttpd/2.25b 29dec2003\r\nContent-Type: text/html; charset=utf-8\r\nDate: Tue, 21 Feb 2017 08:27:47 GMT\r\nLast-Modified: Thu, 10 Apr 2014 04:20:41 GMT\r\nAc
<?php
/*
Plugin Name: VereinOnline.org
Plugin URI: http://www.vereinonline.org/
Description: Zeigt VereinOnline-Inhalte in WordPress an
Version: 1.6
Date: 11 Jul 2016
Author: GRITH AG
Author URI: http://www.grith-ag.de/
*/
@SunboX
SunboX / UWP_ZXing_with_preview.cs
Created February 7, 2017 11:27
UWP ZXing with preview
using System;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading;
using System.Threading.Tasks;
using Windows.Graphics.Imaging;
using Windows.Media.Capture;
using Windows.Media.MediaProperties;
[Device Install Log]
OS Version = 10.0.14393
Service Pack = 0.0
Suite = 0x0100
ProductType = 1
Architecture = arm
[BeginLog]
[Boot Session: 2017/01/27 12:57:28.782]
[Device Install Log]
OS Version = 10.0.14393
Service Pack = 0.0
Suite = 0x0100
ProductType = 1
Architecture = arm
[BeginLog]
[Boot Session: 2017/01/26 11:24:57.394]
{"matches": [{"_shodan": {"options": {}, "id": "c5a9e565-8375-4f71-b48b-532b3dce36ec", "module": "http", "crawler": "264b5a9d15a64f96a4768e9d8081b9ddefadb706"}, "product": "thttpd", "isp": "Comcast Cable", "hash": -729323081, "asn": "AS7922", "title": "", "ip": 849093965, "org": "Comcast Cable", "deprecated": {"opts.robots": {"new": "http.robots", "eol": "2016-07-01"}, "opts.pem": {"new": "ssl.chain", "eol": "2016-07-01"}, "html": {"new": "http.html", "eol": "2016-07-01"}, "opts.sitemap": {"new": "http.sitemap", "eol": "2016-07-01"}, "title": {"new": "http.title", "eol": "2016-07-01"}}, "os": null, "cpe": ["cpe:/a:acme:thttpd:2.25b_29dec2003"], "data": "HTTP/1.1 200 OK\r\nServer: thttpd/2.25b 29dec2003\r\nContent-Type: text/html; charset=utf-8\r\nDate: Tue, 16 Aug 2016 14:06:46 GMT\r\nLast-Modified: Mon, 23 Sep 2013 12:29:11 GMT\r\nAccept-Ranges: bytes\r\nConnection: close\r\nContent-Length: 282\r\n\r\n", "version": "2.25b 29dec2003", "location": {"city": "Santa Maria", "region_code": "CA", "area_code": 805,
@SunboX
SunboX / fxos-fading-away.md
Created January 26, 2016 22:03
Why I care about Firefox OS fading away

Why I care about Firefox OS fading away

Now it's official, Firefox OS moves into the „Tier 3“ support category.

Tier-3 platforms have a maintainer or community which attempt to keep the platform working. These platforms may or may not work at any time, and often have little test coverage.

Quote from MDN — Supported build targets

… So this basically means there won't be any extended effort to make Firefox OS more stable, or to make it even more user friendly. Also, there won't be any new advertisements to get a wider user base.

@SunboX
SunboX / meeting.md
Last active November 10, 2015 17:33
meeting.md

• Your topic

Transforming a Firefox OS Phone into a SMS Gateway Server

• Where you're planning to present it

at the OpenTech Summit '16 in Berlin

• Size of audience

var metas = head.querySelectorAll('meta[name="availableLanguages"],' + 'meta[name="defaultLanguage"],' + 'meta[name="appVersion"]');
console.log(metas);
// {"0":{},"1":{}}
console.log(Array.isArray(metas));
// false