Category: Linux
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
VNCViewer Without typing password
first let creating password via vncpasswd like below and type password and verify with password you create. $ vncpasswd ~/.vnc/mypasswd after that we connect using this command $ vncviewer ip_server:port -passwd ~/.vnc/mypasswd done. Continue reading VNCViewer Without typing password
Find duplicate row in MySQL
this is the command i used to SELECT *, daftar_paket.kode_paket FROM daftar_paket INNER JOIN (SELECT kode_paket FROM daftar_paket GROUP BY kode_paket HAVING count(kode_paket) > 1) dupl ON daftar_paket.kode_paket = dupl.kode_paket done. Continue reading Find duplicate row in MySQL
Monitor TCP Traffic from specific port ex: port 118
from server do this command server ip: 1.1.1.1 local ip: 8.8.8.8 # tcpdump port 8118 and ‘(tcp-syn|tcp-ack) !=0’ from local test this command $ telnet 1.1.1.1 8118 fucking done. source: http://superuser.com/questions/604998/monitor-tcp-traffic-on-specific-port Continue reading Monitor TCP Traffic from specific port ex: port 118
make history showing timestamp in ZSH SHELL
just doing this shit $ echo ‘alias history=”\history -E”‘ >> ~/.zshrc $ source ~/.zshrc then testing your showing history like below $ history fucking thank you. Continue reading make history showing timestamp in ZSH SHELL
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
Fucking Conflict Mariadb with MySQL
oke. today. at this fucking time. i had some fucking problem. when i had installing mariadb then the mysqli modules not work fucking perfectly. then i want revert to mysql. conflict conflic and conflict when the errors output: mysql blablabla conflict with mariadb blablab # yum remove mysql-server mysql-libs mysql-devel mysql* # yum install mysql etc … Continue reading Fucking Conflict Mariadb with MySQL