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 dom=prompt("Doamin name"); | |
url = 'http://domai.nr/api/json/info?callback=domlist&q=' + dom; | |
window.domlist = function (data){ | |
console.log(data); | |
}; | |
yepnope({test : true, | |
both : [url] | |
}); |
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
yepnope({ | |
test : typeof $.lightbox_me == 'undefined', | |
yep : 'http://buckwilson.me/lightboxme/jquery.lightbox_me.js', | |
complete: function () { | |
if ($('#ocnsole_inputs').length == 1){ | |
$('#ocnsole_inputs').remove(); | |
} | |
if ($('#ocnsole_inputs').length == 0){ | |
$('<input>').attr('type','text').attr('id','ocnsole_inputs').attr('name','ocnsole_inputs').appendTo('body'); | |
} |
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
console.clear(); | |
function mapDOM(element, json) { | |
var treeObject = {}; | |
// If string convert to document Node | |
if (typeof element === "string") { | |
if (window.DOMParser) | |
{ | |
parser = new DOMParser(); | |
docNode = parser.parseFromString(element,"text/xml"); |
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 | |
if [ ! -f ~/.alias ] | |
then | |
echo "source ~/.alias" >> ~/.bashrc | |
echo "#This must stay at END" > ~/.alias | |
echo "alias realias='unalias -a;source ~/.alias'" > ~/.alias | |
echo "alias alias='nano ~/.alias;realias;'" >> ~/.alias | |
fi |
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 | |
if [ -z "$1" ] | |
then | |
echo "No domain defined" | |
exit | |
fi | |
echo ' '>> /etc/powerdns/bindbackend.conf | |
echo 'zone "'$1'" {' >> /etc/powerdns/bindbackend.conf |
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
/* Hello World program */ | |
#include <time.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
//#include "getopt32.c" | |
main(int argc, char **argv){ | |
int opt; |
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
[ | |
{ | |
"caption": "Undo", | |
"command": "undo" | |
}, | |
{ | |
"caption": "UberSearch", | |
"command": "show_panel", | |
"args": { | |
"panel": "find_in_files" |
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
<snippet> | |
<content><![CDATA[ | |
isset(\$${1:this}) ? \$${1:this} : '' | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> |
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
############################################## | |
# Sample client-side OpenVPN 2.0 config file # | |
# for connecting to multi-client server. # | |
# # | |
# This configuration can be used by multiple # | |
# clients, however each client should have # | |
# its own cert and key files. # | |
# # | |
# On Windows, you might want to rename this # | |
# file so it has a .ovpn extension # |
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
#Client List | |
alias cl='cat /var/log/openvpn-status.log | grep "10.8"' |
OlderNewer