apache Redirect permanent your web app to https

This is pretty simple to even document, but i need a reference point !


        ServerName example.com
        Redirect permanent / https://example.com


dont forget to create the https virtual host, something like that:


        ServerName example.com

        ServerAdmin admin@example.com

        # Logs
        CustomLog logs/example.com.access.log combined
        ErrorLog  logs/example.com.error.log

        DocumentRoot /www/examplecom
        DirectoryIndex index.html

        <Directory "/www/examplecom">
                Order allow,deny
                Allow from all 

                AllowOverride All 

                AuthType basic
                AuthName "Enter At Your Own Risk"
                AuthUserFile /www/htpasswd_for_examplecom
                Require valid-user


        # HSTS 
        Header always set Strict-Transport-Security "max-age=31536000; "

        # SSL Support
        SSLEngine on

        SSLProtocol all -SSLv2 -SSLv3
        SSLHonorCipherOrder on
        SSLCipherSuite HIGH:!aNULL:!MD5

        SSLCertificateFile      /certs/examplecom.crt
        SSLCertificateKeyFile   /certs/examplecom.key
        SSLCertificateChainFile /certs/class3.crt

Tag(s): apache, ssl, https
book status

Just finished

The Man Who Mistook His Wife for a Hat and Other Clinical Tales by Oliver Sacks

a book about clinical stories on neuropsychology !


next book in list:

Neuromancer by William Gibson


Tag(s): books
Btrfs with Multiple Devices on LUKS

I’ve written down some simple (i hope) instructions on creating an encrypted btrfs raid1 disk !

My notes have the form of a mini howto, you can read all about them here:

Btrfs with Multiple Devices on LUKS

random MAC address

Gnu has a very interesting project for changing your mac address every time you want. I have found it very useful - apparently for security reasons!

The project has the name: macchanger and i will not tell you how to installed it !

I will tell you how i am using it. Become root and type: crontab -e

add the below line

@reboot macchanger -r wlan0 

Now, every time you boot up your machine the mac address on you wireless card will be a random new one !

Happy privacy

Tag(s): privay
broken phone


Friday 13

17.00 Ο πελάτης επικοινωνεί με το helpdesk, διότι μεταβαίνει σε νέα mail πλατφόρμα και χρειάζεται “ΕΠΕΙΓΟΝ” διαθεσιμότητα μηχανικού 19.00 - 20.00

17.30 Το helpdesk επικοινωνεί με τον standby μηχανικό

19.35 Συνδέεται ο standby μηχανικός για να δει το αίτημα του πελάτη - ΔΕΝ υπάρχει κανένα αίτημα.

Sat 14

00.00 Το helpdesk επικοινωνεί με τον standby μηχανικό, ότι ο πελάτης μόλις έστειλε το αίτημα

00.30 Ενημερώνεται ο πελάτης μέσω helpdesk ότι δεν υπάρχει άμεση διαθεσιμότητα μηχανικού – διευκρινίζεται με τον πελάτη κι επικοινωνείτε σε όλους ότι θα γίνει το πρωί.

10.30 Ο πελάτης επικοινωνεί με το helpdesk για να ολοκληρωθεί το αίτημά του για να μεταβεί στην νέα mail υπηρεσία/πλατφόρμα

11.15 Ο μηχανικός ενημερώνει το helpdesk ότι ο πελάτης ΔΕΝ έχει στείλει κανένα αίτημα. Ο πελάτης αναφέρει απλά “την επιβεβαίωση dns εγγραφών”.

Tag(s): work_related
Dockerfile to build a docker archlinux image with ssh

Today’s work : A dockerfile to build an archlinux image with sshd

You can find my notes here: Dockerfile notes

Time at hackerspace

I am a very proud member of Athen’s Hackerspace.

I am enjoying the entire 3+ years time (and money) that i’ve spend at this hackerspace. Love it.

Today was a very productive day.

With a good friend of mine, are working to setup an ansible, docker, btrfs workshop !

We want to contribute back to the community and we thought that this is a great opportunity.
We are not guru or anything like that - no, we just want to share the knowledge we are getting by spending time at hackerspace. Nothing more, nothing less. Just share our feedback to all the people that have helped us till now.

So, we are working together (collaboration) by making small steps towards to build these workshop.
Today’s work: Creating a tiny compressed archlinux docker image.

My instruction set is documented here: archlinux installation for docker.

Hopefully my next blog post will be about a simple ssh docker file.
We are trying to keep simple notes so that many people can read and use them.

Mechanical computers

I am currently pseudoparallel reading (i am currently reading one other book) The Pattern On The Stone By Daniel Hillis and i am really really impressed about the simple explanation on logical gates (boolean algebra).

Hillis is using as an example The Tinkertoy computer - the mechanical computer for playing TicTacToe !
Look at this page to take a quick look: The Tinkertoy computer

BTW The first mechanical computer is the The Antikythera mechanism 100BC to predict astronomical positions and eclipses.

Truly Amazing !

Tag(s): books
apache Deflate

It took me a few minutes to understand why one of my online sign files isnt the correct one.

The actual file:

[~]>  md5sum file.sign

The file on my web server:

$  md5sum file.sign

when download it :

[~]>  md5sum file.sign

Say what ?

Whattttttt !

[~]> file file.sign
file.sign: gzip compressed data, from Unix

so what if i did:

gunzip -d -c file.sign | md5sum 
89dd90709bbc51eb6796280123f46fe6  -

So a light bulb lighted up upon my hackergotchi !! mod_deflate

i need to change my filters

Tag(s): deflate, apache
fluxbox simple tiling function


man 5 fluxbox-keys

i found that there is

ArrangeWindows pattern / ArrangeWindowsVertical pattern / ArrangeWindowsHorizontal pattern

so i edited my


to auto-tile (vertical/horintal) with my super (window) key as shortcut

Mod4 h :arrangewindowshorizontal
Mod4 v :arrangewindowsvertical

Tag(s): fluxbox