Skip to content

Instantly share code, notes, and snippets.

View cyberoctopi's full-sized avatar
😣
Tinkering

No Say cyberoctopi

😣
Tinkering
  • No where
View GitHub Profile
@cyberoctopi
cyberoctopi / tmux-cheatsheet.markdown
Created March 22, 2017 09:07 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Setting Up Clojure on OS X

I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.

I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.

This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.

Step 1: Getting Clojure (1.3)

class PagesController < ApplicationController
before_filter :login_required, :except => [ :show ]
# GET /pages
# GET /pages.xml
def index
@pages = Page.find(:all)
respond_to do |format|
format.html # index.html.erb
# themes/theme-name/app.rb
require 'rubygems' # Can't leave < 1.9.2 hanging...
require 'compass'
require 'sinatra'
require 'haml'
module Nesta
class App
configure do
@cyberoctopi
cyberoctopi / about.md
Created September 27, 2012 07:29 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@cyberoctopi
cyberoctopi / gist:2469328
Created April 23, 2012 07:24 — forked from pithyless/gist:1208841
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@cyberoctopi
cyberoctopi / infb.py
Created April 18, 2012 05:10 — forked from ruel/infb.py
A script to scrape information from your facebook friends.
#!/usr/bin/python
'''
InFB - Information Facebook
Usage: infb.py user@domain.tld password
http://ruel.me
Copyright (c) 2011, Ruel Pagayon
All rights reserved.