Skip to content

Instantly share code, notes, and snippets.

View frank184's full-sized avatar
👌
pro g[r]amer

François Bélanger frank184

👌
pro g[r]amer
View GitHub Profile
@frank184
frank184 / update
Last active May 2, 2016 21:37
Update script for Ubuntu
#!/bin/sh
# ~/bin/update
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install -f
sudo apt-get -y dist-upgrade
sudo apt-get -y autoclean
sudo apt-get -y autoremove
sudo do-release-upgrade -d
@frank184
frank184 / cloudflare.rb
Created February 15, 2016 19:17
Ruby on Rails CloudFlare gem easy connection
# Example: CloudFlare::connect { |connection| puts connection }
module CloudFlare
API_KEY = ENV['CLOUDFLARE_API_KEY']
EMAIL = ENV['CLOUDFLARE_EMAIL']
def self.connect
yield Connection.new(API_KEY, EMAIL) if block_given?
end
end
@frank184
frank184 / rails_composer
Last active May 12, 2016 05:50
My version of the railsComposer.sh script
#!/bin/bash
project_name=$1
if [ -z project_name ]; then
echo
echo "projects need names too, I'm sure you can think of a neat one!"
echo " ex: rails_composer neat_name"
echo
else
@frank184
frank184 / .bash_aliases
Created January 9, 2016 00:00
Script for booting a Rails Server in another terminal while Developing
alias rails_s="gnome-terminal -e 'bash -c \"rails s; bash\"'"