git rebase -i HEAD~N
Example, remove the latest commit:
git rebase -i HEAD~2
// Get more info about APIEasy: https://github.com/flatiron/api-easy | |
// This example is originated from the Readme page of APIEasy project page. | |
// I made this gist just to keep the collection of Vows examples test suite I have to learn. | |
var request = require('request'), | |
vows = require('vows'), | |
assert = require('assert'); | |
vows.describe('your/awesome/api').addBatch({ | |
"When using your awesome api": { |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<httpErrors errorMode="Detailed" /> | |
<asp scriptErrorSentToBrowser="true"/> | |
<rewrite> |
#!/bin/bash | |
# generate the file name using the string provided on the args | |
ffmpeg -f x11grab -r 25 -s 1366x768 -i :0.0 -vcodec libx264 -sameq $1.mp4 |
git push origin && git branch -D working-on-issue-11 | |
Counting objects: 20, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (10/10), done. | |
Writing objects: 100% (11/11), 4.10 KiB, done. | |
Total 11 (delta 9), reused 0 (delta 0) | |
remote: bb/acl: me is allowed. accepted payload. | |
Auto packing the repository for optimum performance. | |
fatal: protocol error: bad line length character: Remo | |
error: error in sideband demultiplexer |
> c = db.products
pcat.products
> c.find()
{ "_id" : "ac3", "name" : "AC3 Phone", "brand" : "ACME", "type" : "phone", "price" : 200, "warranty_years" : 1, "available" : true }
{ "_id" : "ac7", "name" : "AC7 Phone", "brand" : "ACME", "type" : "phone", "price" : 320, "warranty_years" : 1, "available" : false }
{ "_id" : ObjectId("507d95d5719dbef170f15bf9"), "name" : "AC3 Series Charger", "type" : [ "accessory", "charger" ], "price" : 19, "warranty_years" : 0.25, "for" : [ "ac3", "ac7", "ac9" ] }
{ "_id" : ObjectId("507d95d5719dbef170f15bfa"), "name" : "AC3 Case Green", "type" : [ "accessory", "case" ], "color" : "green", "price" : 12, "warranty_years" : 0 }
{ "_id" : ObjectId("507d95d5719dbef170f15bfb"), "name" : "Phone Extended Warranty", "type" : "warranty", "price" : 38, "warranty_years" : 2, "for" : [ "ac3", "ac7", "ac9", "qp7", "qp8", "qp9" ] }
{ "_id" : ObjectId("507d95d5719dbef170f15bfc"), "name" : "AC3 Case Black", "type" : [ "accessory", "case" ], "color" : "black", "price" : 12.5, "warranty_year
// require a lot of bullshit to "talk is cheap" | |
var talkIsCheap = require('talk-is-cheap'); | |
// of course you will got TypeError: Cannot call method 'say' of undefined, because talk is cheap! | |
talkIsCheap.say('Talk is cheap!') |
test: | |
npm install --dev | |
mysql -u ubuntu -e 'CREATE DATABASE IF NOT EXISTS circle_test' | |
mysql -u ubuntu circle_test < test_database.sql | |
node_modules/vows/bin/vows some-test/*-spec.js | |
mysql -u ubuntu circle_test < test_database.sql | |
node_modules/vows/bin/vows another-test/*-spec.js | |
mysql -u ubuntu -e 'DROP DATABASE IF EXISTS circle_test' |