10 February 2017
I am not good at writing. So writing a scientific work is a bit challenging for me. That’s why I pimped up the task by choosing the right tools and made it more exciting for me.
10 February 2017
Spell checking in vim is very easy and just needs the following command:
:set spell spelllang=en_us
This will highlight all misspelled words. To turn off the spell checker just type in command-mode:
:set nospell
For german language we need a few files:
mkdir -p $HOME/.vim/spell
wget -P ~/.vim/spell/ http://ftp.vim.org/vim/runtime/spell/de.utf-8.spl
wget -P ~/.vim/spell/ http://ftp.vim.org/vim/runtime/spell/de.utf-8.sug
Now we can use the following vim-command to enable the german spell checker:
:set spell spelllang=de
1 February 2017
Many years ago, someone mentioned on a congress that apache has an interesting feature: if apache doesn’t know a file-extension, it will just take the next one. If someone saves a file called “shell.php.ab”, apache would not know what to do with the extension “.ab”. So it will just skip this one and uses the next one and the file “evil.php.ab” becomes “evil.php” and gets executed. I wondered how long it will take until a related bug will occur and I was not surprised when I read aboutthis nasty bug.
26 January 2017
Overview
- System affected: VirtualBox
- Software-Version: prior to 5.0.32, prior to 5.1.14
- User-Interaction: Required
- Impact: A Man-In-The-Middle could infiltrate an Extension-Pack-Update to gain a root-shell
13 January 2017
Certificate Transparency is a great idea. All certificate-related activities on a certificate authority will be logged into a public database(it’s a merkle-table), so that anyone can monitor or review the certificates. Commodo published a very handy web-tool to query the logs.
12 January 2017
dr@tardis$ psql -U postgres
psql (9.4.9)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1
template0=# drop database template1;
DROP DATABASE
template0=# create database template1 with template = template0 encoding = 'UTF8';
CREATE DATABASE
template0=# update pg_database set datistemplate = TRUE where datname = 'template1';
UPDATE 1
template0=# \c template1
You are now connected to database "template1".
template1=# update pg_database set datallowconn = FALSE where datname = 'template0';
UPDATE 1
23 December 2016
I wish you all a Very Merry Christmas and a beautiful time
PS: I found this nice html-css-hack at codepen.io
18 December 2016
I experienced an interesting problem: on a Debian Jessie host with squidguard: update-squidguard threw the following error-message:
root@34697f9f06a2:/# update-squidguard
/usr/sbin/update-squidguard: 69: test: dbhome: unexpected operator
Rebuild SquidGuard database - this can take a while.
On Debian Wheezy it returns with the following error: