Skip to content

Instantly share code, notes, and snippets.

View natanael-araujo's full-sized avatar

Natanael de Araújo Silva natanael-araujo

View GitHub Profile
@rajanand02
rajanand02 / tmux.conf
Last active February 3, 2024 07:28
Tmux configurations with status bar theme
# set prefix to control-f
set -g prefix C-f
#unbind system defined prefix
unbind C-b
# helps in faster key repetition
set -sg escape-time 0
# start session number from 1 rather than 0
@cmilfont
cmilfont / quadro.rb
Created February 20, 2014 12:40
BDD com rspec
require 'spec_helper'
describe Quadro do
describe "#mover", %q{
Como um usuário
Eu quero mover um cartão de um quadro para outro
Para definir o status do cartão
} do
@lambdalisue
lambdalisue / README.md
Last active October 7, 2023 12:27
Download and Compile and Install latest Vim on Debian
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@scotje
scotje / development.rb
Created June 7, 2012 22:59
Completely hide asset related logging in Rails 3.2
config.assets.logger = false
@schatteleyn
schatteleyn / hack.sh
Last active October 2, 2015 15:08 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@them0nk
them0nk / rspec_rails_cheetsheet.rb
Created March 23, 2012 03:39
Rspec Rails cheatsheet (include capybara matchers)
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
class Question
CHARS = ("a".."z").to_a
attr_accessor :description
attr_writer :right_answer, :chosen_answer
[:right_answer, :chosen_answer].each do |name|
class_eval <<-RUBY
def #{name}(*args)
@#{name} = args.first if args.any?