Docker based remote firefox, with no history left on descruction with this single command. :)
Than vnc with this password 1234 enjoy
docker run -p 5900:5900 -e HOME=/ creack/firefox-vnc x11vnc -forever -usepw -create
mount fuse drive with ssh command
mount fuse drive with ssh command, very useful for s3
sudo sshfs -o allow_other,defer_permissions,IdentityFile=~/.ssh/id_rsa root@xxx.xxx.xxx.xxx:/ /mnt/droplet
Linux speed test and benchmarking
Linux speed test and benchmarking commands are tools I use are these
For cpu:
sysbench --test=cpu --cpu-max-prime=20000 run
For network:
wget -O /dev/null http://speedtest.dal01.softlayer.com/downloads/test100.zip
wget -O /dev/null http://speedtest.sea01.softlayer.com/downloads/test100.zip
wget -O /dev/null http://speedtest.ams01.softlayer.com/downloads/test500.zip
For Disk write speed:
wget http://speedtest.ams01.softlayer.com/downloads/test500.zip
[Read More]
Docker commands for elasticsearch cluster
Docker commands for elasticsearch cluster,are here ------------------------START MAIN-------------------------- ------------------------REFERENCE COMMANDS------------------ docker run -d --name es0 -p 9200:9200 es docker run -d --name es1 --link es0 -e UNICAST_HOSTS=es0 es docker run -d --name es2 --link es0 -e UNICAST_HOSTS=es0 es ------------------------REFERENCE COMMANDS------------------ from:/root/docker/m1/ docker run -d --name es1 -p 9201:9200 -p 9301:9300...
[Read More]
too many files to zip use this command
I had a problem of zipping and transferring so many crawler files to another machine, and I was getting error so found this command and transferred in very less time. too many files to zip use this command
find . -name '*.png' -print | zip a.zip -@