Skip to content

Instantly share code, notes, and snippets.

View sfsgagi's full-sized avatar
🦉

Dragan Stankovic sfsgagi

🦉
View GitHub Profile
(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 \
@sfsgagi
sfsgagi / apache-logs-hive.sql
Created October 4, 2012 09:35 — forked from emk/apache-logs-hive.sql
Apache log analysis with Hadoop, Hive and HBase
-- 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,
@sfsgagi
sfsgagi / ftnvim.sh
Created April 3, 2012 07:49
ftnvim.sh
#!/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
@sfsgagi
sfsgagi / ftnvim
Created April 3, 2012 07:42
ftnvim
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
@sfsgagi
sfsgagi / mypassenger.load
Created January 22, 2012 16:50
passenger.load
#PassengerMaxPoolSize 20
PassengerMinInstances 5
RailsAppSpawnerIdleTime 0
RailsFrameworkSpawnerIdleTime 0
# need this because otherwise, redis/memcaches gets
# sucked into some thread conflicts
PassengerSpawnMethod conservative