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 | |
export BROWSER=firefox | |
export tabstop=4 | |
export TERM=dumb | |
export PAGER=nobs | |
# Path to 'a' script itself | |
acme_bin_dir=$( cd $(dirname $0) && pwd ) |
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
curl -D cookie1.txt blog.xrmplatform.org/wp-login.php | |
# step 1 | |
# get default cookie of blog and write cookie to cookie1.txt | |
# step 2 | |
# simulate browser Firefox( of course , you can use any browser agent<!--more--> what you want!) "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" | |
# input your username and also password | |
# write new cookie to cookie2.txt | |
curl -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" -D cookie2.txt -b cookie1.txt -F log=username -F pwd=password -F testcookie=1 -F wp-submit="Log In" -F redirect_to=blog.xrmplatform.org/wp-admin -F submit=login -F rememberme=forever blog.xrmplatform.org/wp-login.php | |
# currently cookie2.txt stored all cookie info |
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
// importera http-modulen | |
var http = require('http'); | |
// | |
// Skapar en webbserver och spottar ut två variabler (objekt), | |
// request och response, som innehåller en massa rolig information och | |
// användbara metoder. | |
// | |
// request: http://nodejs.org/docs/latest/api/http.html#http.ServerRequest | |
// response: http://nodejs.org/docs/latest/api/http.html#http.ServerResponse |
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
// importera http-modulen | |
var http = require('http'); | |
// | |
// Skapar en webbserver och spottar ut två variabler (objekt), | |
// request och response, som innehåller en massa rolig information och | |
// användbara metoder. | |
// | |
// request: http://nodejs.org/docs/latest/api/http.html#http.ServerRequest | |
// response: http://nodejs.org/docs/latest/api/http.html#http.ServerResponse |
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
// Index of | |
var arr=["one","two","three"]; | |
arr.indexOf('two'); // 1 | |
arr.indexOf('four'); // -1 | |
// Prototyping | |
Array.prototype.exists = function(o) { | |
for(var i = 0; i < this.length; i++) | |
if(this[i] === o) | |
return true; |
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
/* small is for descriptions */ | |
form small { display: block; font-style: italic; } | |
form label small { display: inline; } | |
form label, form th label small { display: block; } | |
form button { display: block; } |
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
// Create Database | |
$.couch.db('db_name').create(); | |
// Save Document | |
var json_data = { | |
key: 'value', | |
another_key: 'another value' | |
}; | |
$.couch.db('db_name').saveDoc( | |
json_data, |
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
The Ten Living Principles - Yamas And Niyamas | |
© Donna Farhi | |
(Excerpted from Yoga Mind, Body & Spirit: A Return to Wholeness) | |
Although there are many branches to the tree of yoga, from devotional methods to more intellectual approaches, from schools that emphasize service toward others to those that focus on physical purification, Patanjali Sutras, clearly defines an eight-limbed path (ashtanga) that forms the structural framework for whatever emphasis upon which an individual wishes to concentrate. The Yoga Sutras, or "threads," consist of four books produced sometime in the third century before Christ. Such was the clarity of Patanjali's vision of wholeness that he consolidated the entirety of yoga philosophy in a series of 196 lucid aphorisms. Each thread of the Yoga Sutras is revealed as a part of a woven fabric, with each aphorism merely a mark or color within the whole pattern. The threads, however, begin to make sense only through a direct experience of their meaning. This is not a linear process bu |