Skip to content

Instantly share code, notes, and snippets.

View vincentchu's full-sized avatar

Vincent Chu vincentchu

View GitHub Profile
1277854174: Built 520f3b0: status=1
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:55: command not found: sh .git/hooks/build-failed
remote: Counting objects: 47, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 29 (delta 23), reused 0 (delta 0)
Unpacking objects: 100% (29/29), done.
From [email protected]:garrytan/posterous
520f3b0..f6e1652 master -> origin/master
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:55: command not found: sh .git/hooks/after-reset
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:55: command not found: cd /home/posterous/posterous && git config cijoe.branch 2>&1
curl -v -H 'X-Auth-Service-Provider: https://api.twitter.com/1/account/verify_credentials.json'
-H 'X-Verify-Credentials-Authorization: OAuth oauth_nonce="gMfO3YKSNBt5w8s1gQ9TnUQ1Ji219gYFq5VovyC1Y0", oauth_callback="http%3A%2F%2Fposterous.com%2Foauth%2Fcallback", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1273511181", oauth_consumer_key="STWUDG4OpJhxrEnLZ1uQ4g", oauth_token="21465735-lwKdG1iDzWhTFjiCdlddrmcslMNllHZUd5SPY1xMo", oauth_signature="1sYBtfLl%2EBLXkg655gYNLalXOP0%3D", oauth_version="1.0"' -F "key=2b38a676d9b58d1d44da0db832512a1f"
-F "media=@/path/to/some/image.jpg"
-F "message=message" http://posterous.com/api2/upload.xml
<?xml version="1.0" encoding="UTF-8"?>
<image>
<id>T8w</id>
<text>message at Wed Jun 02 13:23:02 -0700 2010</text>
<url>http://post.ly/T8w</url>
<width>165</width>
<height>211</height>
<size>66</size>
<type>png</type>
<timestamp>Wed Jun 02 13:23:07 -0700 2010</timestamp>
{
"id":"T8v",
"type":"png",
"timestamp":"Wed Jun 02 13:19:29 -0700 2010",
"text":"message",
"url":"http://post.ly/T8v",
"height":211,
"width":165,
"size":66,
"user":{
// Google Closure Compiler examples
// Malformed JS
var foo = {
attrib1: 'foo',
attrib2: 'bar', // <--- trailing comma
}
// RESULT:
// [vincentc@local bad_js]$ gjs --js bad_js.js
// bad_js.js:8: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all.
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
apiKey : 'APIKEY',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
<script type="text/javascript>
var has_fb_session = <%= !!facebook_session %>;
</script>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
Element.observe(window,'load', function() {
FB_RequireFeatures(["XFBML"], function() {
FB.Facebook.init('XXXXXXXX','/xd_receiver.html');
var all_spans = document.getElementsByTagName("span");
var i = 0;
for (i=0; i<all_spans.length; i++) {
www.myilibrary.com TRUE / FALSE 1218315550 lastpage 291
www.myilibrary.com TRUE / FALSE 1218315550 abcebklocn 23
www.myilibrary.com TRUE / FALSE 1218315550 ASPSESSIONIDAABDBQAT FNMJDJDCOIMKLAEEDIJFKKLL
www.myilibrary.com TRUE / FALSE 1218315550 webauth_at SJx22PGTgrr6sRGW+ktjh1JgB1g+ASZPlrYEWUaBsFlYjIjVKB+bPdY1qiturr2/9mZRlDvZ3+o7E9PBAiXsTf0yruvRzmK5jNwGvg68XFysy204
#!/usr/bin/perl
$cookie="cookies.txt";
$rackNum = 16;
$docID = 84699;
$pgStart = 262;
$pgEnd = 291;
$header = "maggiore-qft-new-";
$sleepTime = 300;