Category Archives: Uncategorized

Stop doing this in posts!

See what I did?

Part x in my .. in don’t like series haha

Post topic: My life changed when changing this one setting.
Answer: Congratulations, you have a boring life.

Post topic: You are using this and that wrong!
Answer: No I don’t

Post topic: Only 1% see this optical illusion/What you see first tells you what kind of person you are./You are a genius when you find the numbers in this illusion.
Answer: No it doesn’t

Post topic: This setting is ruining your experience.
Answer: No I like it in the current setting

Post topic: Creepy HIDDEN map tracks .. blah blah.
Answer: No its not hidden, and it there by default and can be toggled using the settings menu.

Post topic: Do this now! You will be happy you did.
Answer: No I don’t, didn´t and never will

Post topic: Expect has cracked the code for a happy life.
Answer: Suuure..

Post topic: The BEST recipe for …
Answer: Depends what you like, maybe its a GOOD recipe, liked by more people.

Post topic: The top 10/best .. you have to own.
Answer: My top 10 is different, shutup.

Also .. this Popup over popup ….

Quotes and slips of the tongue

Some cheesy stuff I found on my fileserver.
Mine/Friends or heared in the wild.

Hey kaas met ketchup? Of rasp ik nu te ver? (dutch)
(cheese with ketchup? Or am I grating too far?)

Coline in chat: I’m planning to go to sleep, but i was mentally ordering things in my head
My reply: cat /dev/head | sort -n > /dev/null && sleep $((8 * 2600))

Russisch routeren (dutch)
(Russian Routing) (Network joke about misconfiguring a router – like roulette)

Dashboard of my room kamer (windowsill)

Howmuch is that in beers?

me: I’ve seen better code
me also: But not written by me

Due to the recent coffee panic here, i think i need to prepare for the worst.. and go get a UPS for my backup coffee machine. (and bury cans of coffee in the garden)

Have you you seen the papers yet? Or are you waiting for the movie?

There are 1/12 problems according to the program
No problem at leas not 1 out of 0 !

We have no fruit left, only a sick banana

Take it easy, take it easy.
You can break things also slowly

Windows 95 – A world is closing for you.

Kapot gechmod (dutch and it rhymes)
Break something using linux chmod command

I don’t have a smart TV, I need to be smart myself

A beautiful mind is about a misunderstood genius
Happens to me also sometimes

Worldwide standard .. in Enschede

That dude was so drunk, he spoke encrypted

How long a drive was it?
About 1 liter

Will you rewind the CD after using it please?

Better to have 10 beers in you, than 1 on the street

if microsoft is the answer you didn’t understand the question

The release date of windows 2000 will be delayed, the new releasedate will be 14-04-1901

That whisky bottle is square!
Nice, no wet circles on the table

That trashcan bag is too big!
Maybe it is supposed to be on the outside

Sparkling water = water with holes

Many orgasms in the water .. organism

Sollution for everything, apply some glue and some pressure

I have to go, I have to catch the bike in 5 minutes

I heared some fireworks, mid year.
And said “maybe they are marsians”, we have to check if they lighting fireworks over 687 days again.

Android / Oculus Quest screen record

Needed a way to record stuff from phone and VR set, found scrcpy.

A really usefull tool, you can control you phone, and what i was looking for .. screen record.

Used this to show via Jitsi screen share, how to do stuff on your phone.

scrcpy –record file.mkv

https://github.com/Genymobile/scrcpy#copy-paste

Switch fullscreen modeMOD+f
Rotate display leftMOD+ (left)
Rotate display rightMOD+ (right)
Resize window to 1:1 (pixel-perfect)MOD+g
Resize window to remove black bordersMOD+w | Double-left-click¹
Click on HOMEMOD+h | Middle-click
Click on BACKMOD+b | Right-click²
Click on APP_SWITCHMOD+s | 4th-click³
Click on MENU (unlock screen)⁴MOD+m
Click on VOLUME_UPMOD+ (up)
Click on VOLUME_DOWNMOD+ (down)
Click on POWERMOD+p
Power onRight-click²
Turn device screen off (keep mirroring)MOD+o
Turn device screen onMOD+Shift+o
Rotate device screenMOD+r
Expand notification panelMOD+n | 5th-click³
Expand settings panelMOD+n+n | Double-5th-click³
Collapse panelsMOD+Shift+n
Copy to clipboard⁵MOD+c
Cut to clipboard⁵MOD+x
Synchronize clipboards and paste⁵MOD+v
Inject computer clipboard textMOD+Shift+v
Enable/disable FPS counter (on stdout)MOD+i
Pinch-to-zoomCtrl+click-and-move
Drag & drop APK fileInstall APK from computer
Drag & drop non-APK filePush file to device

Extracting/converting old chats from Signal/ICQ/google

ICQ

For ICQ i only could find one that worked for me.
Search for the below file on the internet

IcqHR 1.8f (http://soft.softoogle.com/ap/icqhr-get-4581.shtml)

This will convert XXXXXmsg.dat to a html file.

SIGNAL

I’ve got signal on my linux workstation, so my encryption key lives in
~/.config/Signal/config.json

Install sqlcipher from (https://github.com/sqlcipher/sqlcipher)

And use below script (change paths/keys accordingly)

#!/bin/bash
#set -x
# Get your key from
#cat ~/.config/Signal/config.json
SIGNAL_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

/Projects/sqlcipher/sqlcipher -list -noheader /home/${USER}/.config/Signal/sql/db.sqlite "PRAGMA key = \"x'"${SIGNAL_KEY}"'\";select json from messages;" > /tmp/clear_text_msgs;
cd /tmp 
tail -n +2 clear_text_msgs > without_ok
sed '$!s/$/,/' without_ok > with_commas
sed '1 s/^/[\n/' with_commas > with_leading_bracket
echo "]" >> with_leading_bracket
rm without_ok
rm with_commas
mv with_leading_bracket valid.json
cp valid.json /home/%{USER}/signal.$(date +%Y%m%d)
cd -

Google Chat/Talk/Hangouts

Just search for google takeout!

After that convert Hangouts.json to text using
https://github.com/baldybeardedguy/hangouts-json-parser/blob/master/Hangouts_json.py

Where have we been map

Generated a world map where we’ve been … biggest red part .. seen the least of it 🙂
Vacation or work
A small part of the US, and a small corner from the westcoast of Canada.

Countries/places on our todo list:

  • Mongolia
  • Japan
  • Cuba
  • Greece
  • America : Coline
  • Austria : Coline, Monique
  • Belgium : Monique, Coline
  • Bolivia : Coline, Arja
  • Cambodia : Coline, Monique
  • Canada : Monique, Coline
  • Canary islands : Coline
  • Czechia : Coline, Monique
  • Denmark : Coline
  • Egypt : Monique, Coline
  • England : Monique, Coline
  • France : Monique, Coline
  • Germany : Monique, Coline
  • Hungary : Monique, Coline
  • Iceland : Arja, Coline, Monique
  • Ireland : Coline, Monique
  • Italy : Monique, Coline
  • Laos : Monique, Coline
  • Malta : Coline
  • New Zealand: Coline
  • Peru : Arja, Coline
  • Romenia : Monique, Coline
  • Scotland : Monique, Coline (Many many times)
  • Spain : Coline
  • Sweden : Coline
  • Switzerland : Coline, Monique
  • Vietnam : Coline, Monique

My computer Lab

Our servers came in! (20200612)

Bought some large servers with Vincent.
3 ProLiant ML350 G6 with loads of memory and cores.
My 2 nodes are running Ovirt Virtualisation, connected to a qnap iscsi host using 10gbps SFPs. Vincents server is running Proxmox.

Domoticz age checker

A script to check the age of sensors.
Sometimes you don’t have a good 433Mhz connection.
Or the battery has died of your sensor.

This script will warn you.

sensoragescript.sh (for cron)

#!/bin/bash
#Call as follows
#sensoragescript.sh <ipdomoticz> <idx-of-sensor> <age-to-test-in-seconds>

now=$(date +%s)
lastupdate=$(curl -s -i -H "Accept: application/json" "http://$1:8080/json.htm?type=devices&rid=$2" |  grep LastUpdate | cut -f4 -d\" )
#echo $lastupdate
seen=$(date -d "$lastupdate" +%s)
#echo $seen
#echo "$(( $now - $seen))"
difftime="$(( $now - $seen))"
if [ $difftime -gt $3 ] ; then
  echo "WARN : too old - $difftime seconds"
  exit 1
else
  echo "OK : $difftime seconds"
  exit 0
fi

Outputs:

./new.sh 192.168.1.1 123 60
OK : 22 seconds

./new.sh 192.168.1.1 123 60
WARN : too old - 69 seconds

check_mk / icinga check

#!/bin/bash
IPDOMO=192.168.1.1
IDX=123
agewarn=300
now=$(date +%s)
lastupdate=$(curl -s -i -H "Accept: application/json" "http://$IPDOMO:8080/json.htm?type=devices&rid=$IDX" |  grep LastUpdate | cut -f4 -d\" )
seen=$(date -d "$lastupdate" +%s)
difftime="$(( $now - $seen))"
if [ $difftime -gt $agewarn ] ; then
  echo "1 \"WARN - Age check Fridge\" realage=$difftime|age=$agewarn Age of fridge"
  exit 1
else
  echo "0 \"OK - Age check Fridge\" realage=$difftime|age=$agewarn Age of fridge"
  exit 0
fi