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 python | |
from os import chdir, listdir | |
from os.path import basename, islink, realpath | |
from shutil import rmtree | |
import re | |
import subprocess as sp | |
import sys | |
if __name__ == '__main__': |
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
max_tries=10 | |
i=0 | |
while ((i < max_tries)); do | |
wget -q -r --retry-connrefused --tries=10 --timeout=60 -O /tmp/my-key http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key | |
if (($? == 0)); then | |
break | |
fi | |
((i++)) | |
done |
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
configure --enable-cgi --enable-cli --enable-cli-win32 --enable-intl --enable-mbstring --enable-mbregex --with-mysqlnd --enable-zip --enable-tokenizer --enable-zlib --with-libxml --with-dom --enable-phar --with-simplexml --with-xml --enable-xmlreader --enable-xmlwriter --with-curl --enable-bcmath --with-bz2 --enable-calendar --with-gd --with-mcrypt --enable-exif --enable-json --with-iconv --with-gmp --enable-fileinfo --with-gettext --with-mysqli --with-mysql --with-pdo-mysql --with-pdo-sqlite --with-pspell --with-sqlite3 --enable-phar-native-ssl --with-openssl --enable-tokenizer --with-xsl --enable-pdo --enable-session --enable-markdown |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles] | |
"MaxScriptStatements"=dword:ffffffff |
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
if ($.browser.msie && $.browser.version <= 7) { | |
(function () { | |
$.fn.originalRemove = $.fn.remove; | |
$.fn.remove = function (selector) { | |
this.originalRemove(selector); | |
for (var k in this) { | |
delete this[k]; | |
} | |
}; | |
})(jQuery); |
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
var isIEStatic = null; | |
var isIE = function () { | |
if (isIEStatic === null) { | |
var div = document.createElement('div'); | |
div.style.display = 'none'; | |
div.innerHTML = '<!--[if IE]><div id="ie-find"><[endif]-->'; | |
document.body.appendChild(div); | |
if (document.getElementById('ie-find')) { | |
isIEStatic = true; |
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
/* | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License | |
as published by the Free Software Foundation; either version 3 | |
of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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
/* | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License | |
as published by the Free Software Foundation; either version 3 | |
of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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
var addLabels = function (form) { | |
// Thanks to yorick | |
var collections = ['input', 'textarea', 'select'].map(form.getElementsByTagName.bind(form)); | |
var labelText, labelEl; | |
var d = document, i, j, ilen; | |
var dir = (!form.dir ? (!d.dir ? 'ltr' : d.dir) : form.dir).toLowerCase(); | |
var insertLabel = function (labelEl, inputEl) { | |
var ref = dir === 'ltr' ? inputEl : inputEl.nextSibling; | |
ref.insertBefore(labelEl, ref); |
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 python | |
import sqlite3 | |
import os | |
import subprocess as sp | |
import signal | |
from time import sleep | |
home = os.environ['HOME'] |