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
Pegar o retorno de uma listagem obtida pelo GREP, lê o conteúdo de cada arquivo da listagem e gravar em outro arquivo | |
for i in `grep -l "TEXTO" /pasta/arquivo(s)`; do | |
cat $i >> destino.txt ; | |
done | |
Monitorar uma Listagem de Arquivos em um Diretório | |
while [ 1 ]; do clear; ls -l;sleep 1; done; | |
Pesquisar e mover arquivos criados/modificados ha mais de quatro dias | |
$ find . -mtime +4 -exec mv {} temp/ \; |
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
#http://caldersphere.rubyforge.org/warbler/ | |
#~/projetos/minha_aplicacao/config/warble.rb | |
Warbler::Config.new do |config| | |
config.dirs = %w(app config lib log vendor tmp) | |
config.excludes = FileList["lib/tasks/*", "db/meta_data/*", "doc/projeto/**/*", "features/**/*", "log/*","spec/**/*", "test/**/*","tmp/war/**/*", "tmp/*.png", "vendor/remarkable/**/*", "vendor/selenium-server/**/*"] | |
config.java_libs += FileList["#{RAILS_ROOT}/vendor/plugins/jasper-reports-integration/jars/*.jar"] | |
config.gems += ["jruby-openssl", "activerecord-jdbc-adapter"] | |
config.gem_dependencies = true | |
config.webxml.jruby.min.runtimes = 2 |
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
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge |
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
Na versão 11.10 do Ubuntu, o qual utiliza a versão 3.0.0 do Kernel Linux, algumas bibliotecas mudaram de lugar, dentre elas a types.h | |
Para compilar e instalar a gem ruby-oci8, faz necessário criar um link para este arquivo na pasta /usr/include/sys/. | |
Obviamente, se não existir a pasta, será necessário cria-la antes. | |
mkdir -p /usr/include/sys | |
ln -s /usr/include/linux/types.h /usr/include/sys/types.h |
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
# encoding: utf-8 | |
# Be sure to restart your server when you modify this file. | |
# Add new inflection rules using the following format | |
# (all these examples are active by default): | |
# ActiveSupport::Inflector.inflections do |inflect| | |
# inflect.plural /^(ox)$/i, '\1en' | |
# inflect.singular /^(ox)en/i, '\1' | |
# inflect.irregular 'person', 'people' | |
# inflect.uncountable %w( fish sheep ) |
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
#!/usr/bin/env bash | |
sudo apt-get install sed grep tar curl | |
sudo apt-get install zlibc zlib1g zlib1g-dev zlib-bin ssh perl openssl subversion libcurl3 expat | |
sudo apt-get install git libxml2 libxml2-dev ruby-dev libxslt1-dev | |
sudo apt-get install mysql-server libmysqlclient-dev imagemagick librmagick-ruby libmagick++3 libgraphicsmagick3 libgraphicsmagick1-dev libpng3 | |
sudo apt-get install libopenssl-ruby libssl-dev libssl0.9.8 | |
sudo apt-get install libreadline5-dev |
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
Rota especifica para determinada rede | |
sudo route add -net 192.168.14.0/24 gw 192.168.10.3 |
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
#!/usr/bin/env bash | |
sudo apt-get install sed grep tar curl | |
sudo apt-get install zlibc zlib1g zlib1g-dev zlib-bin ssh perl openssl subversion libcurl3 expat | |
sudo apt-get install git-core libxml2 libxml2-dev ruby-dev libxslt1-dev | |
sudo apt-get install mysql-server libmysqlclient-dev imagemagick librmagick-ruby libgraphicsmagick3 libgraphicsmagick1-dev libpng3 | |
sudo apt-get install libopenssl-ruby libssl-dev libssl0.9.8 | |
sudo apt-get install libreadline5-dev |
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
/home/luciano/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/generators | |
alterar arquivo: app_base.rb |
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
English NetBeans: | |
-J-Duser.language=en -J-Duser.region=US |
OlderNewer