git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
var os = require('os'); | |
var net = require('net'); | |
// config | |
var con = net.createConnection(6667,'irc.freenode.net'); | |
var nick = '__YOURNICK__'; | |
var chan = '#__YOURCHANNEL__'; | |
var chatlogs = []; |
<?php | |
if ($diretorio = opendir("./")) | |
{ | |
while(false !== ($pasta = readdir($diretorio))) | |
{ | |
if(is_dir($pasta) and ($pasta != ".") and ($pasta != "..")) | |
{ | |
echo "<a href='$pasta'>$pasta</a><br>"; | |
} | |
} |
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
$('a').click(function(e) { | |
e.preventDefault(); | |
var url = this.href; | |
$.get(url, function(html) { | |
$('.newpage').html(html).animate({ left: "-= 1000px" }, function() { | |
window.history.pushState({}, "New Page Title", url ); | |
}); | |
}); | |
return false; | |
}); |
// Create our server | |
var server; | |
server = http.createServer(function(req,res){ | |
// Set CORS headers | |
res.setHeader('Access-Control-Allow-Origin', '*'); | |
res.setHeader('Access-Control-Request-Method', '*'); | |
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET'); | |
res.setHeader('Access-Control-Allow-Headers', '*'); | |
if ( req.method === 'OPTIONS' ) { | |
res.writeHead(200); |
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo | |
echo usage: $0 network-interface | |
echo | |
echo e.g. $0 eth0 | |
echo | |
echo shows packets-per-second |
#!/bin/bash | |
# | |
# This script encapsulates the functionality of a queue. It requires there to be | |
# an input file with the data in the queue being separated on different lines. | |
# | |
INPUT=queue.txt | |
OUTPUT=trash.txt | |
CMD=/usr/bin/vlc |
$(document).ready(function() | |
{ | |
/* Check to see if we have saved a style already, a bit verbose but you get the drift! */ | |
var theme = localStorage.getItem('style'); | |
if (!theme) { | |
localStorage.setItem('style', 'light'); | |
}; | |
updateTheme(); |