Thursday, October 30, 2014

Fortinet linux

http://noc.intermax.nl/downloads/fortinet/

Run the command
chmod +x forticlientsslvpn
Install necessary 32bit libraries (copy and paste commands below).
sudo apt-get install ia32-libs-gtk && sudo apt-get install libgtk2.0-0:i386
Make sure xterm is installed
sudo apt-get install xterm
Run forticlientsslvpn
sudo ./forticlientsslvpn

Monday, October 13, 2014

Save MySQL query results into a CSV file

SELECT order_id,product_name,qty FROM orders
INTO OUTFILE '/tmp/orders.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...