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
markbao@nicebreeze ~> git submodule status master | |
971b071dc67f423d8b2a6f476e1dd58819049f41 .oh-my-zsh (heads/master) | |
2dd198c6c412b4ddd361b43586b01981e8383239 .vim/bundle/nerdtree (4.1.0-42-g2dd198c) | |
6c0649ed9b38ebe58656f052fed9be838edcd4c4 .vim/bundle/vim-fugitive (v1.2-29-g6c0649e) |
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
// https://github.com/DTrejo/run.js | |
// Used to run code in a directory and rerun it if any files are changed. | |
// usage: node run.js servercode.js | |
// servercode.js is whatever js file you want to run with node. | |
// Excludes filetypes in the ignoreExtensions array | |
var util = require('util') | |
, fs = require('fs') | |
, spawn = require('child_process').spawn | |
, child // child process which runs the actual code |
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
-- adapted from http://forums.macosxhints.com/showthread.php?t=17762 but it actually works here | |
tell application "Address Book" | |
set pineBook to "" | |
-- Count people as we loop over all of the people in each group | |
set i to 1 | |
repeat with thePerson in every person | |
-- Check that there are e-mail entries for this person | |
if email of thePerson exists then | |
set theName to (name of thePerson) as string | |
-- Output every e-mail address entered for this person |
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.viewerwords.find({ viewer_id: ObjectId('4c29e71fd559307ff400000f') }).explain() | |
{ | |
"cursor" : "BasicCursor", | |
"indexBounds" : [ ], | |
"nscanned" : 268771, | |
"nscannedObjects" : 268771, | |
"n" : 10, | |
"millis" : 135, | |
"oldPlan" : { | |
"cursor" : "BasicCursor", |
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
root@db1:~# free -m | |
total used free shared buffers cached | |
Mem: 7997 1803 6194 0 150 1327 | |
-/+ buffers/cache: 325 7672 | |
Swap: 14082 0 14082 |
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
Gem files will remain installed in /opt/ree187/lib/ruby/gems/1.8/gems/pg-0.9.0 for inspection. | |
Results logged to /opt/ree187/lib/ruby/gems/1.8/gems/pg-0.9.0/ext/gem_make.out | |
-------------------------------------------- | |
Warning: some libraries could not be installed | |
The following gems could not be installed, probably because of an Internet | |
connection error: | |
* mysql | |
* sqlite3-ruby | |
* pg |
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
ActionView::TemplateError (undefined method `each' for nil:NilClass) on line #11 of app/views/home/index.html.erb: | |
8: <tr class="padfix"> | |
9: <td class="padfix" width="500" style="width:500px;"> | |
10: <% @questions = Question.find(:all, :limit => 100, :order => "_id desc") %> | |
11: <% @questions.each do |q| %> | |
12: <div class="question"> | |
13: <table width="100%" class="padfix"> | |
14: <tr class="padfix"> | |
app/views/home/index.html.erb:11 |
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
markbao@ubuntu:~/Downloads/thrift$ make | |
make all-recursive | |
make[1]: Entering directory `/home/markbao/Downloads/thrift' | |
Making all in compiler/cpp | |
make[2]: Entering directory `/home/markbao/Downloads/thrift/compiler/cpp' | |
Regenerating version.h... No changes. | |
make all-am | |
make[3]: Entering directory `/home/markbao/Downloads/thrift/compiler/cpp' | |
\ | |
\ |
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
markbao@ubuntu:~/qtsdk/bin/designer$ ls -l | |
total 28 | |
-rwxr-xr-x 1 markbao markbao 25318 2009-10-05 07:09 libqwebview.so |
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
markbao@ubuntu:~/dev/first/go$ xrdb -query | |
Xcursor.size: 18 | |
Xcursor.theme: default | |
Xcursor.theme_core: true | |
Xft.antialias: 1 | |
Xft.dpi: 96 | |
Xft.hinting: 1 | |
Xft.hintstyle: hintslight | |
Xft.lcdfilter: lcddefault | |
Xft.rgba: rgb |