Terminals and SSH

I’m using a lot of terminals, spawning a new terminal and running ssh, without knowing if i still have a session running.

Lets see:

This was done using something like:

count=$(ps -ef | grep xterm | grep -v grep | wc -l)
timestamp=$(date +%s)
echo "$timestamp,$count" >> /var/local/terminallog 

Later i made a script to push this information in Grafana

Now for the SSH part.
I’m jumping from machine to machine using ssh, sometime i loop back to a server i was already connected to .. this helps me to keep track

in ssh_config add

in sshd_config add

in /etc/profile

restart sshd
when you do this on all your machines you can get a trail of ssh using:

I could change the prompt when a loop is detected
echo $SSHTRAIL | sed -e 's/:/\n/g' | sort | uniq -c | grep -v 1 | ... | echo "WARNING: loop in ssh"

Kanban effectiveness graph generator

While attending a Kanban workshop, i needed to keep myself awake.
I’d hardly slept that night.

So i wrote something useful using PHP JPgraph and Sqlite, while attending the workshop.
It shows the effectiveness of the team using kanban.


include ("insert.php");
include ("getlast.php");
<img src="graph.php"><P>
<form action="" method="POST">
Tickets from board: <input size="4" name="klaar" value="<?PHP print $klaar; ?>"/> <input type="checkbox" name="useklaar" value="useklaar" checked> Use fromboard <P>
            <td>inlane:</td><td><input size="4" name="inlane" value="<?PHP print $inlanelast; ?>"/></td>
            <td>analyse:</td><td><input size="4" name="analyze" value="<?PHP print $analyzelast; ?>" /></td>
            <td>implement:</td><td><input size="4" name="implement" value="<?PHP print $implementlast; ?>" /></td>
            <td>documentation:</td><td><input size="4" name="documentation" value="<?PHP print $documentationlast; ?>"/></td>
            <td>peer:</td><td><input size="4" name="peer" value="<?PHP print $peerlast; ?>"/></td>
            <td>test:</td><td><input size="4" name="test" value="<?PHP print $testlast; ?>"/></td>
            <td>done:</td><td><input size="4"  name="done" value="<?PHP print $donelast; ?>"/></td>
            <input type="submit" value="Submit"/>



include ("jpgraph/jpgraph.php");
include ("jpgraph/jpgraph_line.php");
$db = new SQLite3('mysqlitedb.db');
$results = $db->query('SELECT inlane FROM ENTRIES');
while ($row = $results->fetchArray()) {
$inlane[$index] = $row[0];
$results = $db->query('SELECT analyze FROM ENTRIES');
while ($row = $results->fetchArray()) {
$analyze[$index] = $row[0];
$results = $db->query('SELECT implement FROM ENTRIES');
while ($row = $results->fetchArray()) {
$implement[$index] = $row[0];
$results = $db->query('SELECT documentation FROM ENTRIES');
while ($row = $results->fetchArray()) {
$documentation[$index] = $row[0];
$results = $db->query('SELECT peer FROM ENTRIES');
while ($row = $results->fetchArray()) {
$peer[$index] = $row[0];
$results = $db->query('SELECT test FROM ENTRIES');
while ($row = $results->fetchArray()) {
$test[$index] = $row[0];
$results = $db->query('SELECT done FROM ENTRIES');
while ($row = $results->fetchArray()) {
$done[$index] = $row[0];
//$datay = array(1,2,4);
$datay1 = array(2,4,4,6,7,4);
$datay2 = array(2,3,4);
$graph = new Graph(600,600,"auto");
$graph->title->Set("Kanban grapher - A pruts by FASH");

// Add 10% grace to top and bottom of plot


$p1 = new LinePlot($inlane);

$p2 = new LinePlot($analyze);

$p3 = new LinePlot($implement);

$p4 = new LinePlot($documentation);

$p5 = new LinePlot($peer);

$p6 = new LinePlot($test);

$p7 = new LinePlot($done);


$p1->SetLegend ("inlane"); 
$p2->SetLegend ("analyse"); 
$p3->SetLegend ("implementation"); 
$p4->SetLegend ("documentation"); 
$p5->SetLegend ("peer"); 
$p6->SetLegend ("test"); 
$p7->SetLegend ("done"); 
$graph ->legend->Pos( 0.09,0.09,"left" ,"top");



$db = new SQLite3('mysqlitedb.db');

$db->exec("DELETE FROM BOARD");
$db->exec("INSERT INTO BOARD  VALUES ($klaar,$inlane,$analyze,$implement,$documentation,$peer,$test,$done)");


$db->exec("INSERT INTO ENTRIES  VALUES (NULL,$inlane,$analyze,$implement,$documentation,$peer,$test,$done)");
$db = new SQLite3('mysqlitedb.db');

$results = $db->query('SELECT inlane FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$inlanelast = $row[0];

$results = $db->query('SELECT implement FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$implementlast = $row[0];

$results = $db->query('SELECT documentation FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$documentationlast = $row[0];

$results = $db->query('SELECT peer FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$peerlast = $row[0];

$results = $db->query('SELECT test FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$testlast = $row[0];

$results = $db->query('SELECT done FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$donelast = $row[0];

$results = $db->query('SELECT vanbord FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$klaar = $row[0];

$results = $db->query('SELECT analyze FROM BOARD LIMIT 1;');
$row = $results->fetchArray();
$analyzelast = $row[0];

Cork worldmap lasercut

UPDATE: 202304 street map Hilversum

In the weeks before Arja got her University degree, i’ve been working on a cork worldmap.
She always wanted to have a way to mark the places she has been.

So i started drawing, copy pasting, moving, potracing and editing.
Using Coreldraw and Inkscape i ended up with this:

End result:

So i made one for us too ..

My svg file


Lasercut Xmas Cards

Using a lasercutter i’ve been making some wooden ornaments.

We send these as Xmas cards, so people can hang these in their tree afterwards.

DIY Xmas Cards

We also used these for Advent Calendar decorations.

You can find the lasercut models attached


Brother printer hack’s

Cartridge not recognised?
Just replace chip! With a original one

UPDATE: Maybe there is a counter in there, had a cartridge which wouldn’t work anymore ?!?

Cartridge saying .. i’m empty, but still visible ink?

Just tape up above part!

Note: there are many solutions found on the web, like opening the lid and pressing two buttons to get into a reset menu. Or Cold start your printer without cartrides 5 times to reset stored ink levels.

These are only the things I found

Jumanji Screen

Vincent showed me a very beautiful “pruts” he made.
It was the Boardgame from Jumanji.
He asked someone from work to write software for the center display.

I really liked the idea, so i made my own version.

I’ve cleaned-up the code and my version is here.

The second page should play a mp3 sound sample, but there is a autoplay issue with some browsers. (I have fixed this on other projects, i will fix this later.

Making a lot of graphics for a book.

Protographing a bonsai we made (360 we made )

Coline is publishing a book for her thesis.

So we had to design Covers and graphics for this.

I used Scibus to make a mockup design.
The graphics in the book are made using Inkscape.

The book itself was written using Indesign.

Inkscape is perfect to create vector graphics. These can be resized to any resolution. So always perfect.
In the past i’ve used a program like sodipodi, there is something like it now integrated in Inkscape.
This is a tool to convert bitmap to vector graphics.
(Using a small jpg, i could convert it to vector graphics and print it in a huge size)

Inkscape work

Some designs

Final design

Joe Mooney Summer School

UPDATE: 20230426 – Book with info

While on holiday in Ireland, Coline, Monique and i went to the Joe Mooney Summer School of Traditional Irish Music, Song & Dance.

Every July Drumshanbo plays host to the award winning Joe Mooney Summer School, a week long festival of traditional Irish music, song and dance named after the man who did so much to promote the cause of Leitrim and his beloved town. The committee continue to emulate his high ideals, endeavouring to promote Leitrim’s heritage of traditional music while handing on the best traditions of the past to future generations.

While being in Ireland from 9-27 Juli, we drove around and visited many places.

One week was reserved for attending the Summer School in Drumshanbo, Leitrim.

Coline followed the Flute Course, Monique Bodhran and I Uilleann Pipes.

I was being taught by Brain McNamara.

Internationally respected as a performer and tutor, Brian McNamara hails from a musically rich rural region (County Leitrim) of Ireland which has produced notable musicians past and present and which has been prominently associated with the preservation and performance of Irish Traditional Music.

During daytime there were lessons, and concerts in the evening.
We learned a lot!

Some evening practising by the lake

Tunes i’ve learned from Brian are:

  • Gander at the Pratie Hole
  • Honeymoon
  • Kitty goes a milking
  • O’Sullivans March

Beautiful interpretation of the tune “Battle of Cnoc na ndos”

UPDATE: 20230426 – Book with info

While flipping through some books i own about piping i found this little book: “The Man & his Music” An Anthology of the writings of Breandan Breathnach. ISBN: 09509743

"If something is worth doing, it's worth overdoing."