-
Acesse pelo terminal:
aluno6@aluno6-OptiPlex-990:~/Workspace/RegistroLivre/.git/hooks -
Abra o arquivo commit-msg.sample pelo gedit:
gedit commit-msg -
Substitua o conteúdo pelo texto abaixo:
#!/usr/bin/env ruby
# utf:8
| #!/bin/bash | |
| sudo cp rangel /usr/bin/ | |
| sudo chmod 777 /usr/bin/rangel |
| #!/bin/bash | |
| # | |
| # Script para deploy de Rails 3.2.17 | |
| # nos servidores compartilhados da Kinghost | |
| # Desenvolvido por Gustavo Kuklinski (@tuxlinski) | |
| # http://www.kuklinski.com.br | |
| # | |
| # Até o momento o Script apenas funciona caso você tenha mais de UMA aplicação | |
| # criada pelo painel de controle! |
| # Moved to https://github.com/lucasrcezimbra/dotfiles/ |
| Substitui: | |
| <link rel="stylesheet" href="css/font-awesome.min.css"> | |
| por | |
| <link rel="stylesheet" href="{% static 'css/font-awesome.min.css %}"> | |
| Find: | |
| \(src\|href\)="\(\(img\|css\|js\)[^)]\{-}\)" | |
| Replace: | |
| s/\(src\|href\)="\(\(img\|css\|js\)[^)]\{-}\)"/\1="{% static '\2' %}"/g |
| def happy(number): | |
| if number < 10: | |
| return number in (1,7) | |
| next_ = sum(int(char) ** 2 for char in str(number)) | |
| return happy(next_) | |
| assert all([happy(n) for n in (1, 10, 100, 130, 97)]) | |
| assert not all([happy(4) for n in (2,3,4,5,6,8,9)]) |
| """ | |
| Regras do FizzBuzz | |
| 1. Se a posição for multipla de 3: fizz | |
| 2. Se a posição for multipla de 5: buzz | |
| 3. Se a posição for multipla de 3 e 5: fizzbuzz | |
| 4. Para qualquer outra posição fale o próprio nº. | |
| """ | |
| from functools import partial |
| source 'https://rubygems.org' | |
| ruby '1.9.3' | |
| # RSpec | |
| gem 'rspec-rails' |
| import os | |
| files = sorted(os.listdir()) | |
| cont = 1 | |
| new_names = [] | |
| for filename in files: | |
| new_name = '{:03d}.{}'.format(cont, filename[-3:]) | |
| new_names.append(new_name) | |
| os.rename(filename, new_name) |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |