Skip to content

Instantly share code, notes, and snippets.

View wellington1993's full-sized avatar
🏠
Working from home

Wellington Torrejais da Silva wellington1993

🏠
Working from home
View GitHub Profile
@wellington1993
wellington1993 / .gemrc
Created April 5, 2016 11:26 — forked from jch/.gemrc
gemrc example
# http://docs.rubygems.org/read/chapter/11
---
gem: --no-ri --no-rdoc
benchmark: false
verbose: true
update_sources: true
sources:
- http://gems.rubyforge.org/
- http://rubygems.org/
backtrace: true
@wellington1993
wellington1993 / ember-rails-scaffold.md
Created April 18, 2016 13:45 — forked from pixelhandler/ember-rails-scaffold.md
Scaffold for a browser app build with Ember.js, Rails, Ember.Data

Scaffold for a browser app build with Ember.js, Rails, Ember.Data

Journal App

This is a scaffold for setting up: an API with Rails and the ember-rails gem, persistence with Ember.Data, and a browser app using Ember.js

See source code on GitHub: pixelhandler/journal.

@wellington1993
wellington1993 / rbenv-howto.md
Created April 27, 2016 13:12 — forked from MicahElliott/rbenv-howto.md
Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.

aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev

@wellington1993
wellington1993 / ng-really.js
Created April 28, 2016 20:12 — forked from asafge/ng-really.js
ng-really? An AngularJS directive that creates a confirmation dialog for an action.
/**
* A generic confirmation for risky actions.
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function
*/
angular.module('app').directive('ngReallyClick', [function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.bind('click', function() {
var message = attrs.ngReallyMessage;
@wellington1993
wellington1993 / Extra info
Created May 5, 2016 20:29 — forked from ryanjm/Extra info
Issues with bad interpreter
Something else I found helpful along the way (as I had old stuff installed):
gem uninstall --install-dir /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 rails
@wellington1993
wellington1993 / ubuntu_rails_install.rb
Created May 16, 2016 14:52 — forked from JangoSteve/ubuntu_rails_install.rb
Capistrano script to install Ruby, RVM, Rails in ubuntu (modified from deploy.rb scripts)
namespace :ubuntu do
desc "Setup Environment"
task :setup_env, :roles => :app do
update_apt_get
install_dev_tools
install_git
install_subversion
install_sqlite3
# Install and setup RVM instead of old Rails stack
#install_rails_stack
@wellington1993
wellington1993 / .gemrc
Created August 8, 2016 18:51 — forked from kathgironpe/.gemrc
gemrc
---
:update_sources: true
:sources:
- http://gems.rubyforge.org/
- http://gems.github.com
:benchmark: false
:bulk_threshold: 1000
:backtrace: false
:verbose: true
gem: --no-ri --no-rdoc
@wellington1993
wellington1993 / firebird_xinetd.conf
Last active December 7, 2016 17:02 — forked from mariuz/firebird_xinetd.conf
corrected firebird 2.5 classic xinetd conf
# default: on
# description: FirebirdSQL classic server, v2.5
#
# firebird2.5-classic uses /etc/xinet.d/firebird2.5 by default
service gds_db
{
bind = 127.0.0.1
disable = no
flags = REUSE NODELAY
@wellington1993
wellington1993 / Linux Static IP
Created September 5, 2016 17:16 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@wellington1993
wellington1993 / data.csv
Created September 13, 2016 12:49 — forked from eightysteele/data.csv
Unicode DictReader and DictWriter
id name age
0 aaron 34
1 tina 36
2 noah ©