Skip to content

Instantly share code, notes, and snippets.

View AlexxNica's full-sized avatar
🚀

Alexandre Nicastro AlexxNica

🚀
View GitHub Profile
@AlexxNica
AlexxNica / sphp.sh
Created February 1, 2017 17:14 — forked from w00fz/sphp.sh
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
@AlexxNica
AlexxNica / application-name.txt
Created March 13, 2017 14:16 — forked from marcoscaceres/application-name.txt
application-name.txt
.//00/a10.com_00a075e9a37f52022bdb13807e8bd15f.html.txt
.//00/parcelmonkey.co.uk_00258938c78d758402a7157fbfe9d547.html.txt
.//00/xero.com_0043b9237e6b712ab1fc191cb6826929.html.txt
.//01/7474.com_01a45d3fccad44a8b093c354c34d0922.html.txt
.//01/allinonehomeschool.com_01aa6d67084a66ba2a1911c7ff9fea09.html.txt
.//01/bbyxy.com_012d4c22966d1fa7daa65da54d105b5b.html.txt
.//01/donkiz.fr_017165c9107dec5a1d65817e28c0b65e.html.txt
.//01/engadget.com_015756f28e553328b5d358aa09764558.html.txt
.//01/petersons.com_01ec5e91f48b6cf9a72d93af3a8bde33.html.txt
.//01/pizzahut.com_01eb225f350f043bf0744a325eb6644a.html.txt
@AlexxNica
AlexxNica / implementing WebIDL in js.markdown
Created March 13, 2017 14:19 — forked from marcoscaceres/implementing WebIDL in js.markdown
Implementing a JS-based WebIDL binding in Gecko

Implementing a JS-based WebIDL binding in Gecko

This provides a gentle introduction to implementing a WebIDL interface in JavaScript. Once you are done, you can refer to the MDN Wiki, to add more advanced things.

Before you start

We would encourage you to first build a simple prototype version of your API in JS. Going through the process of creating a WebIDL is fairly straight forward, but if you screw it up you will need to recreate a whole bunch of files, etc. As such, it's much easier to make sure you have your API in a good state before attempting the steps below.

We know you will probably just skip ahead, but you'll soon find yourself here with us telling you, "I told ya so!" :)

Part 1 - Write the WebIDL

@AlexxNica
AlexxNica / _README.md
Created March 14, 2017 01:43 — forked from morganrallen/_README.md
Janky Browser

JankyBrowser

The only cross-platform browser that fits in a Gist!

One line install. Works on Linux, MacOSX and Windows.

Local Install

$> npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download
@AlexxNica
AlexxNica / demo.html
Created March 14, 2017 13:06 — forked from RichAyotte/demo.html
Performance Comparison for React, Angular and Knockout
<!DOCTYPE html>
<html ng-app="test">
<head>
<title>Performance Comparison for Knockout, Angular and React</title>
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.css" rel="stylesheet" />
<style type="text/css">
* { box-sizing:border-box; }
body { padding:30px 0; }
h2 { margin:0; margin-bottom:25px; }
h3 { margin:0; padding:0; margin-bottom:12px; }
@AlexxNica
AlexxNica / document.md
Created March 15, 2017 21:20 — forked from foolip/document.md
Document interfaces
page url
http://www.ef.fr/ http://mediakey1.ef.com/Funneling2016/scripts/main-funneling-2016.js
http://www.sukker.no/ https://static.sukker.no/ver/1192/web/js/all.min.js
http://www.adr.org/ https://www.adr.org/aaa/afr/partition/webkit/n/default/opt/core-11.1.1.6.0-3343.js
http://www.ugvcl.in/ https://www.ugvcl.in:7016/PortalWeb/adf/jsLibs/Common1_0_11.js;jsessionid=yxvqXk1byqBBhkPvfdRFp4zH6lvy92pKnVKqKGkTbTNFhKlp6T66!-576897312!NONE
http://www.ladwp.com/ https://www.ladwp.com/ladwp/afr/partition/webkit/default/opt/core-11.1.1.5.0-1095.js
http://www.ef.com.tr/ http://media.ef.com/Funneling2016/scripts/main-funneling-2016.js
http://www.cap.org/ http://www.cap.org/afr/partition/webkit/n/default/opt/core-11.1.1.7.0-5334.js
http://www.ultragaz.com.br/ https://www.ultragaz.com.br/UltragazPortal/afr/partition/webkit/n/default/opt/core-11.1.1.7.0-3009.js
http://www.ef.edu/ http://media2.ef.com/Funneling2016/scripts/main-funneling-2016.js
page url
http://www.worldhotels.com/ https://script.hotjar.com/modules-5d1a8bf72bf05947875b5bb4e2648210.js
http://www.impetus.com/ https://script.hotjar.com/modules-5d1a8bf72bf05947875b5bb4e2648210.js
http://www.hoy.com.do/ https://mobile.usabilitytools.com/recorder/tracker/tracker.js
http://www.trafficsafetystore.com/ https://script.hotjar.com/modules-5d1a8bf72bf05947875b5bb4e2648210.js
http://www.usawaterpolo.org/ https://s.yimg.com/uq/syndication/yad.js
http://www.southern.edu/ https://script.hotjar.com/modules-5d1a8bf72bf05947875b5bb4e2648210.js
http://www.monocle.com/ https://script.hotjar.com/modules-09b4dbe96763521218bd719171fd39a3.js
http://www.interiordesign.net/ https://script.hotjar.com/modules-09b4dbe96763521218bd719171fd39a3.js
http://www.youvisit.com/ https://script.hotjar.com/modules-5d1a8bf72bf05947875b5bb4e2648210.js
@AlexxNica
AlexxNica / 01-filternet-top200k-26-03-2016.csv
Created March 24, 2017 20:13 — forked from alibo/01-filternet-top200k-26-03-2016.csv
State of Alexa Top 200K global sites in Iran [Censorship] [26-03-2016] #filternet
Rank Site SNI HTTP DNS
1 google.com open open open
2 youtube.com blocked blocked blocked
3 facebook.com blocked blocked blocked
4 baidu.com open open open
5 yahoo.com open open open
6 amazon.com open open open
7 wikipedia.org open open open
8 qq.com open open open
9 google.co.in open open open