Particionamento:
- Partição >= 25 GB para
/
- Somar tamanho da base de dados se pretender deixá-la nesta partição
- Partição >= 100 GB para
/home
- Partição >= quanto tiver de RAM para swap
{ | |
// When using non_blocking mode, delay update of gutter icons by the | |
// following amount (in milliseconds). | |
"debounce_delay": 42 | |
} |
{ | |
"caret_extra_bottom": 3, | |
"caret_extra_top": 2, | |
"caret_extra_width": 2, | |
"color_scheme": "Packages/User/Twilight with GitGutter support.tmTheme", | |
"draw_white_space": "selection", | |
"font_face": "Menlo", | |
"font_size": 14, | |
"highlight_line": true, | |
"ignored_packages": |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Michael Sheets</string> | |
<key>name</key> | |
<string>Twilight with GitGutter support</string> | |
<key>settings</key> | |
<array> |
ActiveRecord::Migration.class_eval do | |
change_table :teams, :force => true do |t| | |
# copy and paste from migrations create_table block, e.g., | |
t.string :slug, unique: true | |
end | |
# specific commands | |
add_column :people, :cpf, :integer, null: false | |
remove_column :people, :cpf |
# O( N log N ) | |
class Integer # in real apps should use refinements instead of monkey patching | |
def prime? | |
return false if self < 2 | |
! 2.upto(self**0.5).any? { |n| self % n == 0 } | |
end | |
def rotations | |
n, ss = to_s.length, to_s * 2 |
# Ruby solution to http://www.beatmycode.com/challenge/5/show | |
class Integer # in real apps should use refinements instead of monkey patching | |
def prime? | |
return false if self < 2 | |
! 2.upto(self**0.5).any? { |n| self % n == 0 } | |
end | |
def rotations | |
n, ss = to_s.length, to_s * 2 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Michael Sheets</string> | |
<key>name</key> | |
<string>Twilight with GitGutter support</string> | |
<key>settings</key> | |
<array> |
# AWS Version 4 signing example | |
# EC2 API (DescribeRegions) | |
# See: http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html | |
# This version makes a GET request and passes the signature | |
# in the Authorization header. | |
import sys, os, base64, datetime, hashlib, hmac | |
import requests # pip install requests | |
import urllib |
[credential] | |
helper = cache --timeout=3600 | |
[user] | |
name = Adriano Mitre | |
email = adriano.mitre@gmail.com | |
[core] | |
editor = subl --wait | |
[alias] | |
# one-line log |