A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
Gemfile.lock merge=bundlelock | |
db/schema.rb merge=railsschema |
# Within Mac VM | |
sudo -s | |
# Create user with id 1000 and group with id 1000 | |
dscl . -create /Groups/mygroup | |
dscl . -create /Groups/mygroup name mygroup | |
dscl . -create /Groups/mygroup passwd "clave" | |
dscl . -create /Groups/mygroup gid 1000 | |
dscl . -create /Users/myuser | |
dscl . -create /Users/myuser UserShell /bin/bash | |
dscl . -create /Users/myuser RealName "myuser" |
# | |
# Mudasobwa yadr theme. | |
# | |
# Based on Agnoster theme from https://gist.github.com/3712874 | |
# | |
# NB! In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
# | |
# Authors: | |
# agnoster (original) |
sudo -i | |
cd | |
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz | |
tar xzvf ImageMagick-6.8.9-1.tar.gz | |
cd ImageMagick-6.8.9-1/ | |
./configure --prefix=/opt/imagemagick-6.8 && make | |
checkinstall |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
require 'bundler/capistrano' | |
# Include this if you want to be able to set up different deployment stages (i.e. beta, stage, etc.) | |
# require 'capistrano/ext/multistage' | |
set :application, "example.com" | |
set :user, "linuxusername" | |
default_run_options[:pty] = true | |
set :use_sudo, true |
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)
require 'mechanize' | |
require 'csv' | |
# Load up the trending Ruby repos on GitHub from the last month. | |
url_to_scrape = "https://github.com/trending?l=ruby&since=monthly" | |
# Snag the website with Mechanize & parse it into an XML document we can query. | |
page = Mechanize.new.get(url_to_scrape) | |
# Set the name of the CSV we'll create & load from. | |
file = "repo_data.csv" |
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.