Export and Import MySQL DB/Table With Command Line

HOW TO EXPORT AND IMPORT DB / TABLE MySQL? Continue reading “Export and Import MySQL DB/Table With Command Line”

Advertisements

Keyboard Windows Tilling Arch Linux (Openbox)

how to ?

$ vi .config/openbox/lxde-rc.xml

<keyboard>
<keybind key=”W-Left”>
<action name=”UnmaximizeFull”/>
<action name=”MoveResizeTo”>
<x>0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key=”W-Right”>
<action name=”UnmaximizeFull”/>
<action name=”MoveResizeTo”>
<x>1/2</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key=”W-Down”>
<action name=”UnmaximizeFull”/>
<action name=”MoveResizeTo”>
<x>0</x>
<y>1/2</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<keybind key=”W-Up”>
<action name=”Maximize”/>
</keybind>
</keyboard>
 

done bro.

Terminator Keyboard Shortcut

how to install?

# pacman -S terminator

simple shortcut for terminator

CTRL + SHIFT + E = Add New Vertical Windows
CTRL + SHIFT + O = Add New Horizontal Windows
CTRL + SHIFT + P = Back To Previous Windows
CTRL + SHIFT + N = Go To Next Windows
CTRL + SHIFT + W = Close Windows Where Focus On
CTRL + SHIFT + Q = Close All Windows / Terminator
CTRL + SHIFT + LEFT = Resize Windows To Left
CTRL + SHIFT + RIGHT = Resize Windows To Right
CTRL + SHIFT + UP = Resize Windows To Up
CTRL + SHIFT + DOWN = Resize Windows To Down
CTRL + SHIFT + X = Full Windows To Focus Terminal

Goodluck

Show Running Command In Title Bar Terminal

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*|lxterminal*)
PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME}: ${PWD}07"'

# 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
*33]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 -ne "33]0;${USER}@${HOSTNAME}: ${BASH_COMMAND}07"
;;
esac
}
trap show_command_in_title_bar DEBUG
;;
*)
;;
esac

copy above script to your .bashrc file 🙂

Memisahkan Route pada Windows Server Interface 1 ke Leased Line & Interface 2 ke Internet

selamat malam, berikut topologynya

Topology AMA (Kimia Farma Payment)

settingan interface di windows

interface 1

ip: 192.168.77.22
mask: 255.255.255.255 / 30
gw: 192.168.77.21

(set metric 10 di advance properties)

interface 2

ip: 172.31.18.250/29
mask: 255.255.255.248
gw: 172.31.18.249
dns1: ip dns datacenter
dns2: ip dns datacenter

(set metric 5 di advance properties)

selanjutnya tambah route sedikit seperti berikut

> route add -p 202.3.108.81 mask 255.255.255.255 192.168.77.21 if 1 (interface 1)

jika masih gagal

tambahkan ini sebelum route di atas

> route add -p 192.168.77.16 mask 255.255.255.252 192.168.77.21 if 1 (interface 1)
dan vice versa

semoga berhasil 🙂