IMAPSYNC for Debian 9 installation

  1. apt-get update
  2. apt-get upgrade
  3. apt-install git libjson-webtoken-perl libauthen-ntlm-perl libcgi-pm-perl libcrypt-openssl-rsa-perl libdata-uniqid-perl libfile-copy-recursive-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libhtml-parser-perl libjson-webtoken-perl libmail-imapclient-perl libparse-recdescent-perl libmodule-scandeps-perl libreadonly-perl libregexp-common-perl libsys-meminfo-perl libterm-readkey-perl libtest-mockobject-perl libtest-pod-perl libunicode-string-perl liburi-perl libwww-perl libtest-nowarnings-perl libtest-deep-perl libtest-warn-perl make cpanminus
  4. cd /home
  5. git clone https://github.com/imapsync/imapsync.git
  6. cd imapsync
  7. chmod +x imapsync
  8. Test it by typing
    ./imapsync
  9. You may need to install some extras by entering
    cpanm File::Tail
  10. cp imapsync /usr/bin/

Done!

Item 10 is to make sure you can use this command anywhere on the server. Have fun!

Simple pizza recipe!

  1. 200 gram of flour
  2. 100 ml of lukewarm water
  3. 2 teaspoons of sugar
  4. bit of salt
  5. half a block of yeast (so 21 gram)
  6. salami
  7. mushrooms
  8. cheese
  9. 1 onion
  10. 2 cloves of garlic
  11. italian herbs
  12. strained tomatoes
  13. wine

Step 1.

Pour yourself a mug of wine. Don’t be silly by taking a fancy glass. Pour it in a mug. Have a sip of wine.

Add the sugar to the lukewarm water and then crumble the fresh yeast into the water as well. Give it a good stir and make sure all the yeast is dissolved. Now let it rest for 5 minutes.

Step 2.

Pour 200 gram of flour in a bowl and add the glass of yeast water. Then, mix it all together and knead it all into a ball. Next sprinkle some flour onto the kitchen counter or table. Knead the ball of dough for another 5 minutes firmly on the table and when it becomes too sticky, add A LITTLE flour.

Ball of dough

Step 3.

Now, let the dough rise for 15 minutes at room temperature. Let it grow! Have a good sip of wine in the meanwhile.

Step 4.

Flatten the dough out a little and then start rolling it into a circle or square. This depends on your tray or dish you will put your pizza on. Make it really thin! Don’t bother about those bready pizzas. Make a proper one or leave.

If you have dough left after making a thin sheet, put it in cellowrap and put it in the fridge for tomorrow.

Make it thin, dammit.

Step 5.

Apply plenty flour to your baking tray or dish. Next, drape the dough over it. Then cut off the excess and add that to the rest you may have already wrapped in the cellowrap.

Thiiiiin!

Step 6.

Have a sip of wine. Add tomato sauce and spread it out with a spoon. Make sure you cover the dough plentifully. Next, add the italian herbs at an amount you feel comfortable with. Add some salt on top of it all.

FOX!

Step 7.

Chop up the onion and garlic to small bits and sprinkle it evenly over the tomato layer.

Size of onion and cloves of garlic
Oh look at that!

Step 8.

Slice the mushrooms in thin-ish slices. If you want thicc slices, go for it, baby. Next spread them evenly over the tomato sauce and don’t show the audience that you have a light form of OCD. OCD OCD OCD OCD.

OCD SHROOMS

Step 9.

Next, add slices of salami to the layer. I have cut it in stripes, because I felt like it.  Also, it creates less of a lava slide later on when you bite into a huge slice.

Slices of salami

Step 10.

ADD CHEESE.

Say cheese!!

Step 11.

Slide the pizza in the oven and set the timer for 20 minutes. When the 20 minutes are over, check on the pizza. It usually can take another 5 minutes.

Meanwhile, drink more wine!

Enjoy!!

Set up Catch-All in Virtualmin

  1. Go to your control panel
  2. Choose your virtual server by selecting the desired domain in the pulldown menu.
  3. Click Edit Mail Aliases
  4. Select All Users
  5. Choose the way you wish to have it delivered

I, for example, want to have it delivered to a gmail box, so i do the following:

  1. Select “Yes, forward to addresses”
  2. Enter off-site email address in the field with the title: “Forward to other address?”

Click Save and you’re set.

How to add a character on each line in Notepad++

Follow these steps:

  1. Press Ctrl+H to bring up the Find/Replace Dialog.
  2. Choose the Regular expression option near the bottom of the dialog.

To add a word, such as test, at the beginning of each line:

  1. Type ^ in the Find what textbox
  2. Type test in the Replace with textbox
  3. Place cursor in the first line of the file to ensure all lines are affected
  4. Click Replace All button

To add a word, such as test, at the end of each line:

  1. Type $ in the Find what textbox
  2. Type test in the Replace with textbox
  3. Place cursor in the first line of the file to ensure all lines are affected
  4. Click Replace All button

Fixing a ferrite antenna control knob (BD563A)

ferrite antenna control knob
Bakelite can be pretty fragile

The control knob of this Philips BD563A broke because the previous owner didn’t notice or care that the knob was turning heavily and so after a while it broke out.

Since it is basically impossible to get the right colour AND type of knob, one has to come up with something. Printing a new button is not an option, since I do not own a printer and part of the knob is in plain view.

So I fabricated a sliding axle and have affixed part one of the control mechanism onto it. No glue, just a precise cut and some thinking it over many times.

How to reset Joomla (admin) passwords in MySQL

Oh joy, you lost the admin password. Now what?

If the admin user is still defined, the simplest option is to change the password in the database to a known value. This requires that you have access to the MySQL database using phpMyAdmin.

“what, no hacking?”, I hear you say. No. Again, you need access to the MySQL database by using phpMyAdmin.

  1. Navigate to phpMyAdmin and select the database for the Joomla site in the left-hand drop-down list box. This will show the database tables on the left side of the screen.
  2. Click on the table “jos_users” in the list of tables.
  3. Click on the “Browse” button in the top toolbar.
  4. Find the user whose password you want to change and press the Edit icon for this row. A form will display that allows you to edit the password field.
  5. Copy the following value into the password field and press the Go button.
    d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199
    
  6. At this point, the password should be changed to “secret”.
  7. Log in with this user and password and change the password of this user to a secure value.