This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| PATH=$PATH:/usr/bin:/bin:/usr/local/bin | |
| while [ "$1" != "" ]; do | |
| case $1 in | |
| -s ) shift | |
| SEPARATOR=$1 | |
| ;; | |
| * ) FILEPATH=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class FizzBuzz | |
| attr_reader :lista | |
| def initialize | |
| @lista = 1..100 | |
| end | |
| def divisor_3_5 (numero) | |
| if(numero%5 == 0 && numero%3 ==0) | |
| "fizzbuzz" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #config/secrets.yml | |
| production: | |
| secret_key_base: "173df1a20fb5d746d33695c5e22762a9fad1211d7321ad1cfa7c0ed53d540337" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| for F in $(find . -size +900k) | |
| do | |
| FNAME=`basename $F` | |
| mv "$F" "$F-orig" | |
| echo -n "Converting ${FNAME}: " | |
| convert -strip -quality 80 -resize "1024x768>" "$F-orig" "$F" | |
| echo "done" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file = File.new("/Users/m3nd3s/Desktop/schedule.txt", 'r') | |
| begin | |
| report = File.open("/Users/m3nd3s/Desktop/report.txt", 'w') | |
| while(line = file.gets) | |
| cols = line.split(" - ") | |
| utc_time = DateTime.parse(cols[0]) | |
| br_time = utc_time.in_time_zone('Brasilia') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| HOSTS=$(cat <<EOF | |
| dev.adena.com.br | |
| dev.acimaq.adena.com.br | |
| EOF) | |
| CMD="ls -lah /proc/\$(pidof java)/task | wc -l" | |
| for H in $HOSTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Diretiva http {} | |
| # | |
| http { | |
| # ... | |
| geo $developer { | |
| default no; | |
| #177.206.31.159/32 yes; # IP que terá liberação |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #encoding: utf-8 | |
| module M3nd3s | |
| def me_ajuda! | |
| "NÃO" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = NOME | |
| email = EMAIL | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| ui = true | |
| [color "branch"] | |
| current = yellow reverse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
NewerOlder