handle multiple shell sessions with tmux

What is tmux? A handy tool for dealing with different bash sessions is tmux. It’s comparable with gnu screen but by far more advanced. You can get it with: sudo apt-get install tmux Launch it by typing: tmux Shortcuts an Commands Dealing with sessions brings great power. You can set up your multi-windows panes on a remote machine, in a seperate session. Now you can detach from this session and log out. When you later ssh back into this machine…

0
Read More

Monitoring processes with htop on the shell

Want to have a more advanced and easy (intuitive) tool than top, for monitoring, sorting, filtering, killing processes? than htop is the tool of your choice. Simply install it by using: sudo apt-get install htop and start it with: htop Have fun watching your processes.

0
Read More

VIM – how to use it

Usefull keys and sequences Insert Text a          append right to the cursor A          append right to the line ea append at end of word i          insert left to the cursor I          insert at beginning of line s substitute character S substitute line o insert line below cursor O insert line above cursor Moving the cursor H to beginning of page M to middle of…

0
Read More

Links

Statistics about the world http://data.worldbank.org/ Digital tunes http://musicforprogramming.net Catalog of data visualization http://datavizcatalogue.com/ Fun – must seen everybody wants to kill bruce Translate every website in german dialects http://www.burble.de Online editor and compiler/interpreter for various languages https://wandbox.org/ Statistics about the world https://www.gapminder.org/tools/ Balance sheets of most german companies https://www.bundesanzeiger.de/ The best way to get free https for your webpage – from start to finish in 30 seconds https://certbot.eff.org/ Good resource for physical algorythms http://natureofcode.com/book/        

0
Read More

find files and strings on the shell

Find files and file content on the terminal can be achieved by the use of the find tool. By far one of the best tools is „Silversearcher ag“, install it with sudo apt-get install silversearcher-ag. If you want to search for example recursive all folders, only php files for the search string „my Value“, simply type: ag –php „my Value“ . Find file/s containing a specific string in its name: find . -name „*mySearchString*“ -type f Now list all files that contain the word…

0
Read More

schedule tasks with cron

crontab is a mighty linux tool intendet for executing tasks schedule by predefined timing rules. List all schedules of current user crontab -l List all schedules of specific user crontab -u root -l  

0
Read More

Exchange files and folders between local and remote machine with secure copy scp

You’d like to exchange data – files or folders – from a local machine to a remote one or visa verce? scp (secure copy) is the tool of choice. Copy local file to remote folder scp localfile.txt user@123.123.123.123:/remote-target-folder Copy local folder to remote folder scp -r localfolder user@123.123.123.123:/remote-target-folder Copy remote file to local folder scp user@123.123.123.123:/folder/remotefile.txt /local-target-folder Copy remote folder to local folder scp -r user@123.123.123.123:/remote-folder /local-target/folder    

0
Read More

Disable the browser cache

Disable Browser cache for firefox: type in the url-bar: about:config confirm the warning. and set browser.cache.disk.enable and browser.cache.memory.enable both to false   Disable Browser cache in chrome press F12 (open the developer-toolbar), go to Network and uncheck „Disable cache“. The cache is only disabled while the developer-toolbar is open!!!

0
Read More

Debian – get your wifi working

Unfortunately Debian (Jessie) didn’t recognized my WiFi hardware during os installation. So I had to mess with the installation by myself. Well, what have i done so far? First I figured out with iwconfig if there was a driver installed… iwconfig No there wasn’t, cause the result was simply lo no wireless extensions. eth0 no wireless extensions. I missed something like wlan0. Before you know what driver you need to install, you need to figure out which hardware you have. That…

0
Read More

REST

Representational State Transfer REST is a paradigma for data transfer between client and server. It’s using the verbs GET, POST, PUT, DELETE (and some others) from the HTTP-protokoll, hence there is almost everywhere a solid infrastructure. For Machine-2-Machine communication REST is a smart choice. REST deals with resources uniquely identified by URL’s. For Example: http://test.com/restapi/user/5 could be a user ressource with 5 as an user id. By requesting this resource via different types of HTTP verbs typical CRUD (create, read,…

0
Read More