sudo apt-get install -y git autoconf automake libtool curl make g++ unzip
git clone https://github.com/google/protobuf.git
cd protobuf/
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig # refresh shared library cache.
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
{ | |
"auto_indent": true, | |
"auto_match_enabled": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
"draw_indent_guides": true, | |
// "ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
CKEDITOR.editorConfig = ( config ) -> | |
config.toolbar_Forum = [ | |
{ | |
name: 'riga1' | |
items : [ | |
"Source" | |
"Save" | |
"NewPage" | |
"DocProps" | |
"Preview" |
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
[alias] | |
st = status -sb | |
ci = commit | |
br = branch -rv | |
co = checkout | |
df = diff | |
damn = blame | |
lg = log -p | |
who = shortlog -s -- | |
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git |
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
/** | |
# ms.js | |
No more painful `setTimeout(fn, 60 * 4 * 3 * 2 * 1 * Infinity * NaN * '☃')`. | |
ms('2d') // 172800000 | |
ms('1.5h') // 5400000 | |
ms('1h') // 3600000 | |
ms('1m') // 60000 |
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
$('#products').append('<%= j render(@products) %>'); | |
<% if @products.next_page %> | |
$('.pagination').replaceWith('<%= j will_paginate(@products) %>'); | |
<% else %> | |
$('.pagination').remove(); | |
<% end %> |
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
URxvt*termName: rxvt-256color | |
URxvt*xftAntialias: true | |
URxvt*background: #3f3f3f | |
URxvt*foreground: #dcdccc | |
URxvt*cursorColor: #aaaaaa | |
URxvt*colorUL: #366060 | |
URxvt*underlineColor: #dfaf8f | |
URxvt*color0: #3f3f3f | |
URxvt*color1: #cc9393 | |
URxvt*color2: #7f9f7f |
http://robots.thoughtbot.com/post/12890232727/how-to-find-a-time-format-for-rubys-strftime
a Tue Thu Sat
b Nov Nov Dec
c Tue Nov 1 00:00:00 2011 Thu Nov 17 00:14:27 2011 Sat Dec 31 23:59:59 2011
d 01 17 31
e 1 17 31
f %f %f %f
g 11 11 11