Bem-vindo ao WordPress. Esse é o seu primeiro post. Edite-o ou exclua-o, e então comece a publicar!
openssl – Create self signed certificate
Step 1: Generate a Private Key
openssl genrsa -des3 -out server.key 1024
to generate key without password:
openssl genrsa -out server.key 1024
Step 2: Generate a CSR (Certificate Signing Request)
openssl req -new -key server.key -out server.csr
Step 3: Remove Passphrase from Key
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
Step 4: Generating a Self-Signed Certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Step 5: Installing the Private Key and Certificate
cp server.crt /usr/local/apache/conf/ssl.crt
cp server.key /usr/local/apache/conf/ssl.key
Step 6: Configuring SSL Enabled Virtual Hosts
SSLEngine on
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
SetEnvIf User-Agent “.*MSIE.*” nokeepalive ssl-unclean-shutdown
CustomLog logs/ssl_request_log
“%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x “%r” %b”
Step 7: Restart Apache and Test
/etc/init.d/httpd stop
/etc/init.d/httpd stopor
service apache2 restart
http://www.akadia.com/services/ssh_test_certificate.html
install ubuntu 14.04 on xenserver 6.2
1 – create template based on Lucid
TEMPLATE_UUID=`xe template-list name-label=”Ubuntu Lucid Lynx 10.04 (64-bit)” params=uuid –minimal`
NEW_TEMPLATE_UUID=`xe vm-clone uuid=$TEMPLATE_UUID new-name-label=”Ubuntu Trusty Tahir 14.04 (64-bit)”`
xe template-param-set other-config:install-methods=cdrom,http,ftp other-config:default_template=true other-config:debian-release=trusty uuid=$NEW_TEMPLATE_UUID
2 – Modify /usr/lib/python2.4/site-packages/grub/GrubConf.py on the XenServer machine
Line 428, change:
to
http://ubuntuforums.org/showthread.php?t=2216358&page=2&p=13006428#post13006428
http://softlit.blogspot.com.br/2014/05/xenserver-62-and-ubuntu-1404-lts.html
Change EFW root password
HOW-TO: be your own DDNS provider
http://andrwe.org/linux/own-ddns
mount nfs export on Windows
mount \192.168.0.111export U:
script for remove old dirs on windows
REM INICIO BAT
set qtde_dias = 2
forfiles -p “h:BackupSystextilOracle” /D -%qtde_dias% -c “cmd /c rd /s /q @path”
REM FIM BAT
from
http://www.ricardomartins.com.br/exluir-arquivos-com-mais-de-x-dias-de-idade/
PHP – OOB
http://www.killerphp.com/tutorials/object-oriented-php/php-objects-page-3.php
zend framework best practices
http://joegornick.com/2009/12/02/zend-framework-best-practices-part-2-i18n/
configure trac on apache 2.2 with ldap authentication
# vi /etc/http/conf.d/trac.conf
<IfModule mod_python.c>
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac
PythonOption TracUriRoot /trac
</Location>
<LocationMatch “/trac/[^/]+/login”>
AuthName “Trac”
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPUrl ldap://[SERVER]:389/OU=People,DC=siarcon,DC=com,DC=br?uid
require valid-user
</LocationMatch>
</IfModule>