Deploying Hugo site from Github

Just some quick notes on this - as everytime I setup a new server I forget some steps! Stick the Hugo executable somewhere on the server. Use the following PHP deploy script from here, published below in case it ever goes offline. /** * Automated deploy from GitHub * * https://developer.github.com/webhooks/ * Template from ServerPilot (https://serverpilot.io/community/articles/how-to-automatically-deploy-a-git-repo-from-bitbucket.html) * Hash validation from Craig Blanchette (http://isometriks.com/verify-github-webhooks-with-php) */ // Variables $secret = getenv('GH_DEPLOY_SECRET'); # Paul note: Best to set environment variable - avoid setting here....

Saturday, 14 January 2023 · 3 min · Paul Smith

Mastodon behind an Apache reverse proxy

I’ve noticed a lot of new Mastodon server admins struggling to get Mastodon, either inside or outside of Docker, to properly work behind an Apache reverse proxy. A lot of them seem to be running into “ERR_TOO_MANY_REDIRECTS” or “403 Forbidden”. As the recommended configuation is behind Nginx there isn’t much documentation for getting this working with Apache. Although I run my main private instance through Nginx, I do run an a very small public instance behind Apache....

Sunday, 20 November 2022 · 1 min · Paul Smith

Tesco scrap free electric vehicle charging

Tesco have introduced fees to use their electric vehicle chargers! I can finally get to the chargers on my Saturday morning grocery shop! I’ve had an electric vehicle for a couple of years now, back in the good old days there was myself and one other guy using the chargers every Saturday morning, we’d get maybe 4 or 5 kWh of electric for free while we were there doing the shop - enough for around 20 miles of range, not a big deal but nice to have every week....

Saturday, 12 November 2022 · 2 min · Paul Smith

Mastodon username without a subdomain

This week I’ve been experimenting with getting a Mastodon instance up and running and the best way of doing this. One of the things I’ve wanted to do which very few instances seem to implement, is running the Mastodon instance on subdomain.domain.tld yet using name @ domain.tld for the usernames, that’s got to be possible right? Yes it is! If you edit the Mastodon env.production file and use the following:...

Saturday, 12 November 2022 · 2 min · Paul Smith

Paying for blue checkmark on Twitter

There’s been a fair amount of criticism directed at Elon Musk over potentially charging users for account verification on Twitter after he acquired it a few days ago. The current proposal going around is that users will pay $8 a month for their blue checkmark. At the moment it is free. However the problem with it today is that Twitter essentially decide who is worthy or not of having a blue checkmark....

Wednesday, 2 November 2022 · 2 min · Paul Smith

Lithuanian blockade of Kaliningrad

I had the misfortune of stumbling upon a BBC news piece regarding Lithuanian’s illegal blockade of Kaliningrad. It went on for about five minutes, had plenty of footage of right-wing Lithuanian Prime Minister Ingrida Simonyte blabbering on about how they’re just implementing EU sanctions, repeatedly, without the point being challenged. It also briefly mentioned how “Russia annexed Kaliningrad during World War 2”, I’ll ignore such a laughable simplification of history. Simonyte was quoted saying:...

Monday, 27 June 2022 · 3 min · Paul Smith

Website removed from Bing search results?

I was doing a bit of work today on a couple of websites, including this one and noticed a drop in traffic from Bing. Initially I thought this might be related to the website re-design which was rolled out February 6th. However it looks like the problem goes back to November, when traffic suddenly dropped off. De-indexing looks like it started January 16th and was complete 4th of February with now no pages from dasmirnov....

Monday, 14 March 2022 · 3 min · Paul Smith

Is PhenoFX a scam crypto website? Yes, don't get scammed

Someone I know recently got scammed by an alleged crypto trading platform, after seeing a fake advert/article claiming Elon Musk had invested $12 million into this new trading platform. They knew I was into crypto, so probably thought they’d be willing to yolo £50 into Bitcoin and see what happens, of course the sensible thing would have been to talk to me about it and use my referral links for actual crypto exchanges....

Monday, 14 March 2022 · 3 min · Paul Smith

Experts warned us against NATO expansion

As the Western media goes into full war propaganda mode, any notion that we had any hand in the Russo-Ukraine conflict must be dismissed out of hand. However various foreign policy experts and strategic experts warned for years that NATO enlargement would result in war. Many have also warned specifically about our policy towards Ukraine since 2013 and how it will lead to conflict, below are some examples. Henry Kissinger US Secretary of State....

Sunday, 6 March 2022 · 7 min · Paul Smith

What's Putin after in this war?

A lot of the mainstream media caught up in some sort of wave of Russophobia are claiming that Russia is out to either destroy Ukraine or at least occupy it indefinitely. That’s frankly absurd. Prior to the war starting, it was estimated that Russia had amassed approx. 120,000 troops near Ukraine’s borders. That might sound a lot to the general public, but Ukraine’s forces are, according to Wikipedia, made up of 245,000 active personal and a further 220,000 reservists....

Wednesday, 2 March 2022 · 7 min · Paul Smith