vim tipps

show all visible characters like spaces, tabs, line breaks / hide all visible characters set list set nolist Enable / Disable syntax highlighting syntax on syntax off Enabling current row and column highlighting set cursorline set cursorcolumn Enabling relative line numbering (cursor is always at zero) set relativenumber 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 vnoremap < <gv…

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

CURL

CURL is a mighty tool for transfering data to URLS. It supports a wide range of protocols. Lets have a closer look on some handy snippets for daily work on the commandline: Fetching content from a URL curl http://www.myurl.com When a page redirects to another location (the respondet http-status is somewhat 3xx) curl can follow the redirection with the -L (- -location) flag. curl -L http://www.myurl.com Want to see what the request and response headers like? It’s as simple as…

0
Read More

ssh / openssh

Introduction – learn some words It’s easy to get lost in the jungle of certificates, certificate signing requests, private-keys, public-keys, pem’s, crt’s and keys. So first we’re going to learn some basics about ssh. This explanations are meant for Linux-Systems. Let’s learn some common files related to ssh issues. Usually, you have a folder ~/.ssh in your home directory (the Tilde „~“ before the .ssh directory is a shell replacement for your home directory). Here you can find files like:…

0
Read More