Save password Apps with Gnome-Keyring & Seahorse

install gnome-keyring $ sudo pacman -S gnome-keyring then for manage (GUI) $ sudo pacman -S seahorse then open your fav app then don’t forget check list save in keychain, for example i use mysql-workbench for manipulate database. goodluck. Continue reading Save password Apps with Gnome-Keyring & Seahorse

VPN Check Per Minute With Automatic Route (PPTP CLIENT)

script automatic – ( script check vpn dan tambahkan route static ) disini gua pake centos 6 first create directory running below command. # mkdir -p /var/log/vpn/ then save below script # save this /root/cron/vpn.sh #!/bin/bash PPP_MPPE=`modinfo ppp_mppe &> /dev/null` ISLOADMODULEPPP_MPPE=`echo $?` if [[ $ISLOADMODULEPPP_MPPE == 0 ]] ; then echo “MODULE PPP_MPPE IS LOADED” &> /dev/null else modprobe ppp_mppe &> /dev/null echo “FIRST MODULE … Continue reading VPN Check Per Minute With Automatic Route (PPTP CLIENT)

Terminal Title As Command Do

this is my .bashrc xterm*|rxvt*|lxterminal*) PROMPT_COMMAND=’echo -ne “\033]0;${USER}@${HOSTNAME}: ${PWD}\007″‘ # Show the currently running command in the terminal title: # http://www.davidpashley.com/articles/xterm-titles-with-bash.html show_command_in_title_bar() { case “$BASH_COMMAND” in *\033]0*) # The command is trying to set the title bar as well; # this is most likely the execution of $PROMPT_COMMAND. # In any case nested escapes confuse the terminal, so don’t # output them. ;; *) echo … Continue reading Terminal Title As Command Do

Backup Directory (with Exclude Directory) and Rsync Directory

this is the script i wrote #!/bin/bash # BACKUP my-app PROD AND my-app_2 PROD zip -r /var/www/html/backup/my-app/`date +%Y-%m-%d:%H:%M:%S`.zip /var/www/html/my-app -x *log* &> /dev/null echo “Backup folder my-app …” zip -r /var/www/html/backup/my-app_2/`date +%Y-%m-%d:%H:%M:%S`.zip /var/www/html/my-app_2 -x *log* &> /dev/null echo “Backup folder my-app_2 …” # RSYNC my-app DEVEL TO my-app PROD rsync -Pr /var/www/html/devel/my-app/apppacking/controllers/ /var/www/html/my-app/apppacking/controllers/ &> /dev/null rsync -Pr /var/www/html/devel/my-app/apppacking/views/ /var/www/html/my-app/apppacking/views/ &> /dev/null rsync -Pr /var/www/html/devel/my-app/apppacking/libraries/ /var/www/html/my-app/apppacking/libraries/ … Continue reading Backup Directory (with Exclude Directory) and Rsync Directory