skip to main
|
skip to sidebar
Life is short, use Python
Python is beautiful, explicit and simple.
Friday, August 24, 2012
upstart init daemon
Configuration
/etc/init.conf
/etc/init/*.conf
User Job
$HOME/.init/
Upstart commands
UbuntuBootupHowto
upstart cookbook
Wednesday, August 22, 2012
mount windows share from Ubuntu
Install
sudo
apt-get
install
smbfs
Inspect
smbclient //test-https.blah.net/ipc$ -U id -Wdomain
mount
sudo mount -t cifs //remote_windows/share $ $HOME/windows -o user=uid,dom=office
Tuesday, August 21, 2012
connect to MS SQL server and Sybase from linux
sudo apt-get install unixodbc unixodbc-dev freetds-dev sqsh tdsodbc
cat /etc/freetds/freetds.conf
[tds1]
host = 10.21.1.1
port = 1433
tds version = 7.0
sqsh -S tds1 -U id -P password
Friday, August 17, 2012
browser shortcut with nginx and DNS
OS: Ubuntu
DNS
/etc/hosts
127.0.0.1 foo
Nginx
in sites-enabled/default
if ( $host = wiki ) {
rewrite ^ https://wiki.example.com;
}
Enable SQL server 2012 for TCP
Enable SQL server 2012 for TCP port 1433
Thursday, August 16, 2012
nmcli without Network Manager GUI
nmcli
nmcli con down id VPN_CONN_NAME
nmcli con up id VPN_CONN_NAME
nmcli con
automation with nmcli
network-manager restart
sudo service network-manager restart
To automatically connect VPN.
put "nmcli con up id VPN_CONN_NAME" in .profile (upon login)
Friday, August 10, 2012
gevent
installation
sudo apt-get install libevent-dev
pip install gevent
Wednesday, August 8, 2012
erlang for gaming
http://smyck.net/2012/04/22/why-erlang/
concurrency model with Actor
Actor model
everything is a Actor, natively concurrent.
Support in programming language
Erlang: language level. Erlang is the best platform for concurrency and distributed application so far.
Python: library level.
eventlet
why gevent
Gevent: good, bad and ugly
gevent tutorial
Java: library level.
Akka
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Labels
alfresco
(5)
android
(1)
apache2
(3)
archive
(1)
chrome
(1)
cifs
(1)
cpio
(1)
dd
(1)
diskmon
(1)
dns
(2)
dnsmasq
(1)
dtrace
(1)
ec2
(1)
erlang
(2)
eventlet
(1)
ffmpeg
(1)
firewall
(1)
generator
(1)
gevent
(2)
hdiutil
(1)
ICMP
(2)
IP
(1)
iptables
(1)
java
(4)
kerberos
(1)
lamp
(1)
ldap
(2)
libpcap
(1)
lookit
(1)
lsof
(1)
mod_jk
(1)
mongodb
(1)
mssql
(2)
mtr
(1)
mysql
(3)
netcat
(1)
netstat
(1)
network
(2)
nginx
(4)
oracle
(4)
osx
(3)
ping
(1)
plone
(1)
postgres
(1)
programmer
(1)
python
(15)
python wsgi
(1)
python-ldap
(1)
rsync
(2)
ruby
(2)
smb
(1)
smtp
(1)
snmp
(1)
solaris
(1)
sproutcore
(1)
sqsh
(1)
ssl
(1)
sso
(1)
strace
(1)
svn
(1)
sybase
(1)
tomcat
(1)
traceroute
(1)
ubuntu
(10)
ucm
(2)
upstart
(1)
urlrewrite
(1)
vbox
(1)
visualvm
(1)
winpcap
(1)
Blog Archive
►
2013
(3)
►
February
(1)
►
January
(2)
▼
2012
(38)
►
December
(1)
►
November
(2)
►
October
(3)
►
September
(3)
▼
August
(9)
upstart init daemon
mount windows share from Ubuntu
connect to MS SQL server and Sybase from linux
browser shortcut with nginx and DNS
Enable SQL server 2012 for TCP
nmcli without Network Manager GUI
gevent
erlang for gaming
concurrency model with Actor
►
July
(1)
►
June
(2)
►
April
(6)
►
March
(9)
►
February
(1)
►
January
(1)
►
2011
(23)
►
December
(6)
►
November
(3)
►
October
(8)
►
September
(2)
►
August
(1)
►
January
(3)
►
2010
(14)
►
December
(2)
►
November
(2)
►
October
(1)
►
August
(7)
►
March
(1)
►
January
(1)
►
2009
(7)
►
December
(1)
►
April
(1)
►
March
(1)
►
February
(2)
►
January
(2)
About Me
Python Rocks
View my complete profile