Skip to content

Instantly share code, notes, and snippets.

View olistik's full-sized avatar

Maurizio De Magnis olistik

View GitHub Profile
@peter
peter / creating-edgerails-app.sh
Created June 30, 2012 21:03
Creating and Deploying an EdgeRails (Rails 4) Application to Heroku
# 0. Make sure you have Ruby 1.9.3 installed, and optionally RVM and PostgreSQL
# 0.2 If you are on the Mac, make sure you have a c compiler by installing XCode Command Line Tools or gcc4.2 with homebrew
# https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers
# 0.5 Make sure you have bundler version ~> 1.2 as Rails depends on it
gem install bundler
# 1. Get edge Rails source (master branch)
git clone https://github.com/rails/rails.git
@olistik
olistik / config
Created October 4, 2012 13:30
terminator config with solarized theme
# place this file in ~/.config/terminator/config
[global_config]
title_transmit_bg_color = "#d30102"
focus = system
[keybindings]
[profiles]
[[default]]
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
background_color = "#eee8d5"
foreground_color = "#002b36"
@olistik
olistik / gist:3894072
Created October 15, 2012 18:09
Ubuntu 12.04 Terminator config: solarized theme + iTerm2-like key bindings
# place this file in ~/.config/terminator/config
[global_config]
title_transmit_bg_color = "#d30102"
focus = system
[keybindings]
reset_clear = <Ctrl>R
new_tab = <Ctrl>T
split_horiz = <Ctrl><Shift>E
split_vert = <Ctrl>E
close_term = <Ctrl><Shift>W
@olistik
olistik / gist:3895166
Created October 15, 2012 20:24
Ubuntu 12.04 - Sublime Text 2 - Preferences -> Settings - User
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
@olistik
olistik / gist:3899476
Created October 16, 2012 14:07
Ubuntu 12.04 mac-like
@olistik
olistik / gist:3899721
Created October 16, 2012 14:43
Ubuntu 12.04 mac-like keyboard

Ubuntu 12.04 mac-like keyboard

Layout

  • Italian: Settings -> Keyboard Layout -> Italian
  • options -> Alt/Win key behavior: "Control is mapped to Win Keys (and the usual Ctrl keys)"

System

  • launch web browser: cmd + alt + y
@olistik
olistik / gist:3899771
Created October 16, 2012 14:53
Sublime Text 2 -> Resesif color scheme
cd ~/.config/sublime-text-2/Packages
git clone git://github.com/sonereker/resesif.tmbundle.git

Sublime Text 2 -> Preferences -> Color Scheme -> Reserif...

@olistik
olistik / gist:3904477
Created October 17, 2012 08:44
My Ubuntu Opinions (12.10)

My Ubuntu Opinions (12.10)

Show every indicator (not working)

12.04 solution

dconf-editor -> com -> canonical -> Unity -> Panel -> systray-whitelist = "['all']"

@francescoagati
francescoagati / stream.rb
Created November 4, 2012 16:53
celluloid streaming content and write to mysql db
class Writer
include Celluloid
include Celluloid::Logger
def write_tweet(tweet)
DB[:links].insert(tweet)
end
@olistik
olistik / gist:5025558
Created February 24, 2013 20:45
Princìpi di Democrazia efficiente

Princìpi di democrazia efficiente

Localizzazione geografica

Reperire informazioni e ragionare su un territorio diventa più complesso all'aumentare delle dimensioni dello stesso.

Localizzazione del settore

Decisioni che tangono N settori vengono analizzate più efficientemente da gruppi di persone la cui professionalità riguarda principalmente quegli N settori.