Skip to content

Instantly share code, notes, and snippets.

View abrcoelho's full-sized avatar

Abraão Coelho abrcoelho

  • Tech Lead
  • Belo Horizonte, MG, Brasil
  • X @abrcoelho
View GitHub Profile

Create Linode: Ubuntu LTS

Gaining SSH Access

  1. Login with set password
  2. mkdir ~/.ssh
  3. chmod go-w ~/.ssh
  4. exit
  5. scp /.ssh/id_rsa.pub SERVER:/.ssh/authorized_keys
class Duck
def initialize(name)
@name = name
end
def quaqua
puts "Pato #{@name} faz quaqua!!"
end
end
cat /usr/share/calendar/calendar.lotr
# em seu terminal no Mac
cat /usr/share/calendar/calendar.lotr
cat /usr/share/calendar/calendar.lotr
#em seu terminal no Mac
cat /usr/share/calendar/calendar.lotr
# em seu terminal no Mac
cat /usr/share/calendar/calendar.lotr
@abrcoelho
abrcoelho / findPHPFilesWithTrailingWhitespace.sh
Last active September 8, 2015 21:36 — forked from AlexChittock/findPHPFilesWithTrailingWhitespace.sh
Find PHP files with trailing whitespace
find . -name "*.php" | xargs grep -c -P '\s+$' | grep -v ':0$'
<div class="periodo">
<div class="field">
<%= f.label :data %><br />
<%= f.date_select :data, :order => [:day, :month, :year] %>
</div>
<div class="field">
<%= f.label :start, "Horário de Início" %><br />
<%= f.time_select :start %>
</div>
<div class="field">
" Pathogen
call pathogen#infect()
set nocompatible " choose no compatibility with legacy vi
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
set visualbell