Skip to content

Instantly share code, notes, and snippets.

View Micka33's full-sized avatar

Mickaël CASSY Micka33

View GitHub Profile
@Micka33
Micka33 / download.sh
Last active August 3, 2018 03:04
Download/install Nginx +some convenient modules (rtmp/lua5.1/upstream-fair/ssl/etc) on Ubuntu
wget http://nginx.org/download/nginx-1.4.5.tar.gz
tar xzf nginx-1.4.5.tar.gz
wget http://zlib.net/zlib-1.2.8.tar.gz
tar xzf zlib-1.2.8.tar.gz
wget http://downloads.sourceforge.net/project/pcre/pcre/8.34/pcre-8.34.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2Fpcre%2F8.34%2F&ts=1393362418&use_mirror=kent
mv pcre-8.34.tar.bz2\?r\=http\:%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2Fpcre%2F8.34%2F pcre-8.34.tar.bz2
tar xjf pcre-8.34.tar.bz2
anonymous
anonymous / logs.md
Created January 12, 2014 20:27
Slicify Logs

#Troubleshouting ##Machine Details

PC-MICKA

Microsoft Windows 7 Professional N 
(Microsoft Windows NT 6.1.7601 Service Pack 1)
64-Bit Windows
@Micka33
Micka33 / railsConsole.rb
Last active December 28, 2015 02:39
how to go through RIAKCS&RIAK to manage files
# Create a user in RIAK & RIAKCS
# Get the user
Me = User.find_by_index(:email, "[email protected]")
Me = User.find '52820a5994da266b19000002'
# Or create a new one
Me = User.new username:'Micka2', email:'[email protected]', firstname:'micka2', lastname:'cassy2', password:'testtest2', password_confirmation:'testtest2'
Me.save
# In RIAKCS, Use FOG
# Instanciate the Fog API to go through RIAKCS
s3 = Fog::Storage.new RiakCS::BucketManager.get_credentials(Me.key_id, Me.key_secret)