This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8"/> | |
<!-- Online here: http://ejohn.org/files/bugs/isObjectLiteral/ --> | |
<title>isObjectLiteral</title> | |
<style> | |
li { background: green; } li.FAIL { background: red; } | |
iframe { display: none; } | |
</style> |
This file contains hidden or 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
mkdir -p ~/.ssh | |
ssh-keygen -t rsa -C "[email protected]" | |
scp -P $port ~/.ssh/id_rsa.pub $user@$ip:/$folder/ | |
echo "===================================================================" | |
echo "============= Local Key ===============" | |
echo "===================================================================" | |
cat ~/.ssh/id_rsa.pub | |
echo "===================================================================" | |
echo "============= Remote ===============" | |
echo "===================================================================" |
This file contains hidden or 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
<html> | |
<head> | |
<title>Becnhmark - Javascript prototype versus closure execution speed</title> | |
<script type="text/javascript"> | |
/* | |
* Author: Coto Augosto | |
* Twitter: http://twitter.com/coto | |
* URL: http://beecoss.com | |
* Created: Nov 30, 2010 | |
*/ |
This file contains hidden or 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
/*********************************** | |
Author: Rodrigo Augosto C. | |
Twitter: http://twitter.com/coto | |
Date: Dec 17, 2010 | |
************************************/ | |
// ###### Example 1: Object Using new Object() ###### | |
person = new Object(); | |
person.name = "Brendan Eich"; | |
person.height = "6Ft"; |
This file contains hidden or 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
# Listen which port an interface is using (wlan0, eth0, etc) | |
tcpdump -nettti wlan0 | |
# List logs on real time | |
tail -f /var/log/* | |
# DNS Lookup (Query NS Records) | |
dig ns domain.com @8.8.8.8 | |
# Query MX Records |
This file contains hidden or 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
git filter-branch -f --commit-filter ' | |
if [ "$GIT_COMMITTER_EMAIL" = "OLD_EMAIL" ]; | |
then | |
GIT_COMMITTER_EMAIL="NEW_EMAIL"; | |
GIT_AUTHOR_EMAIL="NEW_EMAIL"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD | |
This file contains hidden or 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
""" | |
Use with: | |
python twitter_friends.py > twitter_friends.csv | |
JSON Tools: | |
http://www.jsoneditoronline.org/ | |
http://jsonparser.com/ | |
""" | |
import urllib2 |
This file contains hidden or 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
# Find all the .c files in each linux directory: | |
find . -print | grep -e '\.c$' > ../srcfiles-0.95.txt | |
# Find the common lines: | |
comm -1 -2 srcfiles-0.95.txt srcfiles-4.1.4.txt >srcfiles-common.txt |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
div { | |
position: relative; | |
min-height: 300px; | |
background-color: #9CCF31; | |
} | |
p { | |
bottom: 0; |
This file contains hidden or 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
/* | |
interface Obj { | |
get() => Any; | |
} | |
o(secret: Any) => Obj | |
*/ | |
const o = (secret) => { | |
return { | |
get: () => secret | |
}; |
OlderNewer