h1. Meus comandos
for i in $(find -name '.');do file $i;done |grep UTF
#!/bin/bash for i in $(find -name '*.*');do iconv -f iso-8859-1 -t UTF-8 -o $i $i;done #do encoding=$(file -bi $i | sed -e 's/.*[ ]charset=//'); do iconv -f iso-8859-1 -t UTF-8 -o $i $i;done ----------------------------------------- for i in $(find -name '*.*');do encoding=$(file -bi $i | sed -e 's/.*[ ]charset=//'); iconv -f $encoding -t UTF-8 -o $i $i; done --------------------------- for i in $(find -name '*.*');do iconv -f ISO-8859-1 -t UTF-8 -o $i $i; done while true;do ls -lah vendor/plugins/acts_as_xapian/xapiandbs/development.new/ | grep total;sleep 10; done;
vi /etc/pam.d/sshd
zypper install libxml-devel zypper install libxslt-devel zypper search libxml
select * from dba.dba_snapshot_sql
h2. DB2
db2 get db cfg
h2. Linux
lsof -i tcp:5601
df -h sar 1 1000 chown db2inst1."LBVDC\Domain users" -Rf * chown "LBVDC\altherlg"."LBVDC\Domain users" -Rf * chmod 775 -Rf *
#pacotes instalados rpm -qa |grep ????
#Editor Config S yast
#Check cron service cron status
#Suse Version cat /etc/SuSE-release
#set LC_CTYPE export LC_CTYPE=ISO-8859-1
#Apache configuration vi /etc/apache2/vhosts.d/
#rsync -a [email protected]:/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2 .
#find /backup/mysql/* -ctime +10 -exec rm -f '{}' ;
#whereis ruby
#find / -name database.yml whereis ruby
h1. nginx
#nginx configuration /usr/local/nginx/conf
Matando enginex #killproc nginx
Subindo enginex #cd /usr/local/nginx/sbin/ && ./nginx #/usr/local/nginx/sbin/nginx
Recuperando o IP da maquina #/sbin/ifconfig eth1 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
Executado apos o login do root #vi /etc/profile
Definindo o language do sistema #yast language
h1. Gerenciador do repositorio do suse: zypper
Buscando: #zypper search git
Repositório #zypper lr
obs.: Ao adcionar um novo local para o repositorio cuidado pois as bibliotecas do SUSE podem não serem compatíveis com a ferramenta a ser instalada
Download #wget