This file contains hidden or 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
| (failed on Jessie machine - try older version of Vim source) | |
| 1. Configure (prerequisites explained before the command) | |
| # I have also enabled debug by uncommenting this line from src/Makefile: | |
| CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes | |
| # also had to set cross_compilling=yes within src/auto/configure to avoid uint32_t check errors | |
| ./configure --prefix=/usr/local \ | |
| --with-x \ |
This file contains hidden or 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
| -- This is a Hive program. Hive is an SQL-like language that compiles | |
| -- into Hadoop Map/Reduce jobs. It's very popular among analysts at | |
| -- Facebook, because it allows them to query enormous Hadoop data | |
| -- stores using a language much like SQL. | |
| -- Our logs are stored on the Hadoop Distributed File System, in the | |
| -- directory /logs/randomhacks.net/access. They're ordinary Apache | |
| -- logs in *.gz format. | |
| -- | |
| -- We want to pretend that these gzipped log files are a database table, |
This file contains hidden or 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 | |
| #Usage | |
| # | |
| # bash < <( curl https://raw.github.com/gist/2290218/dee69fffcd28fc9860caa41cbe56c3645eb90b94/ftnvim ) | |
| cd $HOME | |
| wget --no-check-certificate https://raw.github.com/gist/2290218/dee69fffcd28fc9860caa41cbe56c3645eb90b94/ftnvim | |
| mv ftnvim .vimrc |
This file contains hidden or 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
| function Maximize_Window() | |
| silent !wmctrl -r :ACTIVE: -b add,fullscreen | |
| endfunction | |
| "au GUIEnter * call Maximize_Window() | |
| set guifont=Inconsolata\ 14 | |
| set nu | |
| syntax on | |
| filetype indent on | |
| " set autoindent | |
| set smartindent |
This file contains hidden or 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
| #PassengerMaxPoolSize 20 | |
| PassengerMinInstances 5 | |
| RailsAppSpawnerIdleTime 0 | |
| RailsFrameworkSpawnerIdleTime 0 | |
| # need this because otherwise, redis/memcaches gets | |
| # sucked into some thread conflicts | |
| PassengerSpawnMethod conservative |