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
#unix (replace 1.2.3.4 with website/service ip address) | |
#add | |
#ip addr add 1.2.3.4/32 dev lo | |
#delete | |
#ip addr del 1.2.3.4/32 dev lo | |
#mac | |
#add | |
#sudo ifconfig lo0 add 1.2.3.4 | |
#delete |
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 file is part of the Spludo Framework. | |
* Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/ | |
* | |
* Licensed under the terms of MIT License. For the full copyright and license | |
* information, please see the LICENSE file in the root folder. | |
*/ | |
var child_process = require('child_process'); | |
var fs = require("fs"); |
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
<tr><td align=right valign=top class="title">11.</td><td><center><a id=up_2656837 onclick="return vote(this)" href="vote?for=2656837&dir=up&by=siculars&auth=54ab6bff51e737f7db1d9505a4193c26f681de90&whence=%6e%65%77%73"><img src="http://ycombinator.com/images/grayarrow.gif" border=0 vspace=3 hspace=2></a><span id=down_2656837></span></center></td><td class="title"><a href="http://consumerist.com/2011/06/how-hackers-stole-200000-citi-accounts-by-exploiting-basic-browser-vulnerability.html">How Hackers Stole 200,000 Citi Accounts Just By Changing Numbers In The URL</a><span class="comhead"> (consumerist.com) </span></td></tr><tr><td colspan=2></td><td class="subtext"><span id=score_2656837>322 points</span> by <a href="user?id=mmavnn">mmavnn</a> 16 hours ago | <a href="/r?fnid=ZopW9eSqeB">flag</a> | <a href="item?id=2656837">151 comments</a></td></tr><tr style="height:5px"></tr> | |
<tr><td align=right valign=top class="title">12.</td><td></td><td class="title"><a href="http://adioso.com/jobs/pythondjangohacker" r |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<title>Demo</title> | |
</head> | |
<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
/* | |
// paginate-riak.js | |
// use riak-js to paginate a set of data from a bucket in riak | |
// | |
// call the file like so: | |
// | |
// node paginate-riak bucketname start end | |
// | |
// ie. | |
// |
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
db.head('bucket', key, function (err, data, meta){ | |
if (err) sys.puts(JSON.stringify(err)); | |
sys.puts(JSON.stringify(data)); | |
sys.puts(JSON.stringify(meta)); | |
} ); |
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
//save the object with no key in riak. riak will autogen a key | |
riak.save('posts','',{content: content, tags: vettedPostTags })( | |
//success callback | |
function (d,m){ | |
//return an int of lastmodified in meta | |
var paresedDate = Date.parse(m.headers.date); | |
//push riak key to a mostrecents list in redis |
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
Yoni: hi there? | |
Alexander: dude ! how goes . shana tova | |
Yoni: not too good here | |
Alexander: whats wrong ? | |
Yoni: my Fam and I are stranded in England |
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
//check a tag against the main tag list | |
checkSubmittedTag: function(submittedTag) { | |
//sys.log('checking : ' + submittedTag); | |
var origTags = this.getTags(tags); | |
//sys.log('origtags: ' + origTags); | |
//return 0 ; | |
//if ( origTags.search(submittedTag) > 0 ) return 1 ; | |
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
8 Sep 05:08:38 - getfiltertags. submitted tags: one,two,test fail tag , 3 | |
8 Sep 05:08:38 - checking : one | |
8 Sep 05:08:38 - getfiltertags. vetted tags: , length : 1 |
NewerOlder