http://skypegrab.info – good service to resolv IP address of Skype user
Graphite cluster setup blueprint (by Anatoliy Dobrosynets)
add self signed certificate to local ubuntu machine
1) Copy generated ca.rt to /usr/local/share/ca-certificates
2) run sudo update-ca-certificates
Thats all fox!
git over smart-http with https secured by openldap on Centos
# git --version
git version 1.7.1
# apachectl -v
Server version: Apache/2.2.15 (Unix)
My repos will located at /opt/data/repo named “repo1” and “repo2”
mkdir /opt/data/repo
#create first repo
git init --bare repo1
cp repo1/hooks/post-update.sample repo1/hooks/post-update
chmod +x repo1/hooks/post-update
chown -R apache:apache repo1/
#create second repo
git init --bare repo2
cp repo2/hooks/post-update.sample repo2/hooks/post-update
chmod +x repo2/hooks/post-update
chown -R apache:apache repo2/
LoadModule ssl_module modules/mod_ssl.so
Listen 443
SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout 300
SSLMutex default
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
## SSL Virtual Host Context
NameVirtualHost *:443
<Virualhost *:443>
ServerName myserver.com
DocumentRoot /var/www/html
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Files ~ “\.(cgi|shtml|phtml|php3?)$”>
SSLOptions +StdEnvVars
</Files>
<Directory “/var/www/cgi-bin”>
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent “.*MSIE.*” \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \
“%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \”%r\” %b”
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
ScriptAlias /repo1/ /usr/libexec/git-core/git-http-backend/
ScriptAlias /repo2/ /usr/libexec/git-core/git-http-backend/
<LocationMatch “^/repo1/”>
AuthName “Authentication”
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL ldap://127.0.0.1/ou=People,dc=localhost
Require valid-user
SetEnv GIT_PROJECT_ROOT /opt/data/repo/repo1
SetEnv GIT_HTTP_EXPORT_ALL
</LocationMatch>
<LocationMatch “^/repo2/”>
AuthName “Authentication”
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL ldap://127.0.0.1/ou=People,dc=localhost
Require valid-user
SetEnv GIT_PROJECT_ROOT /opt/data/repo/repo2
SetEnv GIT_HTTP_EXPORT_ALL
</LocationMatch>
ScriptAliasMatch \
“(?x)^/git/(.*/(HEAD | \
info/refs | \
objects/(info/[^/]+ | \
[0-9a-f]{2}/[0-9a-f]{38} | \
pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
git-(upload|receive)-pack))$” \
/usr/libexec/git-core/git-http-backend/$1
#Securing all apache with openLdap
<Location “/”>
AuthName “Authentication”
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL ldap://127.0.0.1/ou=People,dc=localhost
Require valid-user
</Location>
</Virtualhost>
setup apache+ssl on centos
yum install mod_ssl openssl
# Generate private key
openssl genrsa -out ca.key 1024
# Generate CSR
openssl req -new -key ca.key -out ca.csr
# Generate Self Signed Key
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
# Copy the files to the correct locations
cp ca.crt /etc/pki/tls/certs
cp ca.key /etc/pki/tls/private/ca.key
cp ca.csr /etc/pki/tls/private/ca.csr
Here is sample config
vi /etc/hhtpd/conf.d/ssl.conf
LoadModule ssl_module modules/mod_ssl.so
Listen 443
SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout 300
SSLMutex default
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
<VirtualHost _default_:443>
DocumentRoot “/var/www/html”
ServerName www.myserver.com:443
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
SSLOptions +StdEnvVars
<Directory “/var/www/cgi-bin”>
SSLOptions +StdEnvVars
SetEnvIf User-Agent “.*MSIE.*”
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log
“%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x “%r” %b”
</VirtualHost>
centos 6 Openldap logging
#touch /var/log/openldap/ldap.log
Add new line to rsyslog configuration
#vi /etc/rsyslog.conf
#OpenLDAP
local4.* /var/log/openldap/ldap.log
Now restart rsyslog and slapd ….
#service rsyslog restart
#service slapd restart
…and enjoy!
tail -f /var/log/openldap/ldap.log
SSL certificate reject git over HTTPS
git clone REPOSITORY
fatal: HTTP request failed
Two solutions:
git config --global http.sslVerify false
export GIT_SSL_NO_VERIFY=true
Mediatek JY G3 recovery
JIAYU G3 recovery
Download pack http://pan.baidu.com/share/link?shareid=65391&uk=537002687
To root, flash, recover JIAYU G3 use this manual http://techideki.com/how-to-root-jiayu-g3-working-recovery-mode/
code review plugin for Redmine 2.3
I choose https://bitbucket.org/haru_iida/redmine_code_review/downloads
#cd /tmp
#wget https://bitbucket.org/haru_iida/redmine_code_review/downloads/redmine_code_review-0.6.2.zip
#unzip redmine_code_review-0.6.2.zip -d /var/www/redmine/plugins/
#rake redmine:plugins:migrate RAILS_ENV=production
http://teamtreehouse.com
http://teamtreehouse.com.
I think it really cool