This file contains 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
grep -v "Texto que deseja remover linhas" arquivoOrigem.txt > arquivoDestino.txt --Procura por um trecho de texto em todo o arquivo, e deleta a linha onde é encontrado |
This file contains 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
grep "Texto que deseja copiar linhas" arquivoOrigem.txt > arquivoDestino.txt --Procura por um trecho de texto em todo o arquivo, E copia a linha inteira para o arquivo de destino |
This file contains 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 | |
#caso queira utilizar em ambiente unix, mudar linha abaixo para o diretório base do glassfish | |
BASE=/cygdrive/c/java/glassfish3 | |
echo ":::::::::::::Parando Glassfish:::::::::::::" | |
cd $BASE/bin | |
./asadmin stop-domain |
This file contains 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
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; |
This file contains 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 | |
for foo in *; do mv $foo `echo $foo | tr /[A-Z]/ /[a-z]/` ; done |
This file contains 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 | |
for f in {1..100} | |
do | |
java ConcurrencyTest & | |
done |
This file contains 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
end_value = 0 | |
(1..52).each do |value_add| | |
end_value+=value_add | |
puts "On Week #{value_add} you has accumulated #{end_value}" | |
end | |
puts "End Value : #{end_value}" |
This file contains 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
É bom estar logado no Flipboard :D | |
Swift, Access Control and Testing | |
https://share.flipboard.com/bookmarklet/popout?v=2&title=Swift%2C%20Access%20Control%20and%20Testing&url=http%3A%2F%2Fblog.diogot.com%2Fblog%2F2014%2F08%2F23%2Fswift_access_control_and_testing%2F | |
Introdução à Mock e Stub com Rspec | |
https://share.flipboard.com/bookmarklet/popout?v=2&title=Introdu%C3%A7%C3%A3o%20%C3%A0%20Mock%20e%20Stub%20com%20Rspec&url=http%3A%2F%2Foswaldoferreira.github.io%2F2014%2F08%2F29%2Fuma-abordagem-simples-sobre-mock-e-stub-em-ruby.html | |
Stress Testing with Loader.io | |
https://share.flipboard.com/bookmarklet/popout?v=2&title=Stress%20Testing%20with%20Loader.io&url=http%3A%2F%2Fwww.sitepoint.com%2Fstress-testing-loader-io%2F |
This file contains 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
uuidgen | sed -e "s/-//g" | tr [:lower:] [:upper:] |
This file contains 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
import java.net.URLEncoder.{encode => enc} | |
object Flipit extends App { | |
if (args.size >= 2){ | |
val flip = """https://share.flipboard.com/bookmarklet/popout?v=2&title=%s&url=%s""" | |
println(args(0)) | |
println(flip.format(e(args(0)), e(args(1)))) | |
def e(url :String) :String = { |
OlderNewer