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:

Launch it by typing:

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 you can reattach this session and all your views are restored.

Executing commands tmux specific is usually prefixed with the key combination ctrl+b. See the following list what you can do with tmux.

 

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:

and start it with:

Have fun watching your processes.

show all visible characters like spaces, tabs, line breaks / hide all visible characters

Enable / Disable syntax highlighting

Enabling current row and column highlighting

Enabling relative line numbering (cursor is always at zero)

Indentation in vi

you want to mark something in visual mode, and indent the selected part several times to the left or the right?
First, you add these lines to your .vimrc

Now you can visually select a text passage (press v move the arrow keys), afterward, indent it to the left by pressing < or indent it to the right by pressing >

Shortkeys

Search and replace

Copy and paste and selecting stuff


Sorting the content

Moving the cursor

Deleting

 

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/

 

 

 

 

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:

Find file/s containing a specific string in its name:

Now list all files that contain the word „searchTerm“

List all the occurrence and their respective line-number of „searchTerm“ in files. The parameter -n toggles the line-number, the parameter -H toggles the filename.

A handy tool as well is ack-grep (you have to install it first). Be sure to wrap the search-term in single quotes.

 

crontab is a mighty linux tool intendet for executing tasks schedule by predefined timing rules.

List all schedules of current user

List all schedules of specific user

 

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

Copy local folder to remote folder

Copy remote file to local folder

Copy remote folder to local folder

 

 

Disable Browser cache for firefox:

type in the url-bar:

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!!!

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…

No there wasn’t, cause the result was simply

I missed something like wlan0. Before you know what driver you need to install, you need to figure out which hardware you have. That can be done with the following command:

You receive a large list with lots of information you don’t need. The art is, to find out what is your wifi chip, and there is no general purpose solution, cause different computers might have different hardware. In my case I looked for words like „wifi“, „wireless“, „communication“ and so on. Anyway, the entry I was looking for was this one:

I picked the chipname:

and searched in google, to verify if it was really a wifi chip. H-node is a good source for hardware reseach.

Finally i found here: https://wiki.debian.org/iwlwifi that my chipset was supported.

I extendet /etc/apt/sources.list with the following line:

and performed another two commands:

The following command first removes the iwlwifi module from the limux kernel and then adds it to the kernel.

Now everything should work fine, and you should find in the network-settings your wifi hotspot.

Veröffentlicht unter Debian.

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, update, delete) actions can be performed on the ressource.

I will show some very simple ways how to get startet with REST.

Imagine you would call a REST service with curl from the commandline like this (thats a GET request):

or with a POST request:

The responding server-side could look somewhat like this.
We deal here with pseude-code. Depending on the framework you use, it differs how to access parameters passed alongside the request.

 

Veröffentlicht unter REST.