start new:
tmux
start new with session name:
tmux new -s myname
| $VERBOSE = nil | |
| require File.expand_path('../rooby', __FILE__) | |
| Person = Rooby::Class.new 'Person' do | |
| define :initialize do |name| | |
| @name = name | |
| end | |
| define :name do |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| #include <string.h> | |
| #include <uthash.h> | |
| // this is an example of how to do a LRU cache in C using uthash | |
| // http://uthash.sourceforge.net/ | |
| // by Jehiah Czebotar 2011 - [email protected] | |
| // this code is in the public domain http://unlicense.org/ | |
| #define MAX_CACHE_SIZE 100000 |
| # | |
| # A C Parser using the Parslet library. | |
| # | |
| # ANSI C Grammar: | |
| # | |
| # * http://www.lysator.liu.se/c/ANSI-C-grammar-l.html | |
| # * http://www.lysator.liu.se/c/ANSI-C-grammar-y.html | |
| # | |
| require 'parslet' |
| module ActiveAdmin | |
| module Reports | |
| module DSL | |
| def enable_reports | |
| action_item only: :index do | |
| link_to("Download", {action: :report, params: params}, {method: :post, data: { confirm: "Are you sure you want to generate this report?"}}) | |
| end | |
| collection_action :report, method: :post do |
| # Install tmux on Centos release 6.5 | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| tar -xvzf libevent-2.0.21-stable.tar.gz | |
| cd libevent-2.0.21-stable | |
| ./configure --prefix=/usr/local |
| #define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */ | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <limits.h> | |
| #include <string.h> | |
| struct entry_s { | |
| char *key; | |
| char *value; |