Hachiari - hachiari.com - hachiari
General Information:
Latest News:
Playing with Apache access_log 22 Feb 2013 | 10:15 pm
last 1000 entries tail -1000 access_log real time tail -f access_log IP address tail -f access_log | awk '{print $1}' User Agent tail -f access_log | awk '{print $12}' tail -f access_log | awk ‘{p...
Auto Mount afp 16 Jul 2012 | 02:19 am
add /- auto_afp to /etc/auto_master add /Volumes/MyShare -fstype=afp afp://computername/sharename to /etc/auto_afp
Adding all deleted file in git 7 Jul 2012 | 08:11 pm
add only all deleted files git ls-files --deleted | xargs git rm add all including deleted files git add -u
SSH login without password 25 May 2012 | 01:12 pm
Remote Server Side 1. Edit /etc/ssh/sshd_config file RSAAuthentication yes PubkeyAuthentication yes 2. restart ssh /etc/init.d/ssh restart 3. make ~/.ssh folder mkdir ~/.ssh chmod 700 ~/.ssh ...
Encrypt and Decrypt tar file using OpenSSL with password 22 May 2012 | 01:52 am
encrypt: tar cfvz directory | openssl des3 -salt > encrypted_directory.tar.gz decrypt: cat encrypted_directory.tar.gz | openssl des3 -d -salt |tar -xv
Export & Import whole collections in database MongoDB (dump and restore) 23 Apr 2012 | 12:20 am
1. mongodump -v -h mongodb_host -d mongo_database_to_export use -c to export collection only 2. you will see “dump” directory ls dump 3. transfer dump directory to other server. scp dump user@se...
install kakasi on CentOS 23 Apr 2012 | 12:10 am
1. wget http://kakasi.namazu.org/stable/kakasi-2.3.4.tar.gz 2. tar xfvz kakasi-2.3.4.tar.gz 3. cd kakasi-2.3.4 4. ./configure 5. make 6. make install
Moving git repository 30 Dec 2011 | 09:45 am
1. clone existing repo (accessible to server/specific user directory eg user@server:path_to/git_repository) git clone –bare path/url/to/old/repository repository.git optional scp -r /path_to/reposi...
Set up git repository on local machine or on own server 30 Dec 2011 | 09:41 am
1. create a directory (accessible to server/specific user directory eg user@server:path_to/git_repository) mkdir repository_name.git cd repository_name.git optional scp -r /path_to/repository_name...
Keyboard Shortcut: Switch Between Windows under same Application using Japanese Keyboard in MacBook Pro 14 May 2011 | 05:31 pm
When I was using MacBook with US keyboard, I like the keyboard shortcut to switch windows under same application ( ⌘ + `). This shortcut didn’t work in my MacBook pro with Japanese Keyboard, until I ...