Arbitrary tweets made by TheGingerDog up to 03 April 2022
Continue reading “Automated twitter compilation up to 03 April 2022”
Linux, PHP, geeky stuff … boring man.
Arbitrary tweets made by TheGingerDog up to 03 April 2022
Continue reading “Automated twitter compilation up to 03 April 2022”
Arbitrary tweets made by TheGingerDog up to 27 March 2022
Continue reading “Automated twitter compilation up to 27 March 2022”
Just a random note or two …
At work we moved to use Azure for most of our hosting, for ‘reasons’. We run much of our workload through kubernetes.
The Azure portal has a nice integration to easily deploy a project from a github repo into Kubernetes, and when it does, it puts each project in it’s own namespace.
In order to deploy some new functionality, I finally bit the bullet and tried to get some sort of Ingress router in place. I chose to use Traefik.
Some random notes ….
Example Ingress Route
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
namespace: traefik
name: projectx-ingressroute
annotations:
kubernetes.io/ingress.class: traefik
cert-manager.io/cluster-issuer: my-ssl-cert
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`mydomain.com`) && PathPrefix(`/foo`)
services:
- name: foo-api-service
namespace: foo-namespace
port: 80
tls:
secretName: my-ssl-cert-tls
domains:
- main: mydomain.com
Initially I tried to use traefik’s inbuilt LetsEncrypt provider support; and wanted to have a shared filesystem (azure storage, cifs etc) so multiple Traefik replicas could both share the same certificate store…. unfortunately this just won’t work, as the CIFS share gets mounted with 777 perms, which Traefik refuses to put up with.
I’m obviously not cut out to be a beer critic. But I thought I might as well moan to no one….
Beer52 – https://www.beer52.com/join/KJSLYS
I had a monthly beer52 subscription for about a year. They’ve recently launched ‘wine52’ as well which has been quite good.
beer52’s monthly subscription costs about £27/month for 8 different beers. There’s a range of sizes – 330 ml cans or bottles and larger, a magazine I never really read and a snack. You can choose a ‘mixed’ or ‘light’ theme to influence the selection.
After a month or so Beer52 try and supersize you “for only £2/more a month you can have 10 beers! For only £2/more a month you can have 12 beers! … etc etc”.
The beers are well packaged, and tasted better than most of what my local corner shop sells. There was a good variety of flavours and types.
Brewdog ( “Brewdog and Friends” )
I had as a birthday present from work. It’s about £20/month for 8 x 330ml cans.
The cans have always arrived with dents in them (is that Yodel’s fault or Brewdog’s or having crap packaging?).
There are four different beers, so you get two of each.
Each can is 330ml. There’s a very thin magazine and no snack.
Summary
Choose Beer52. Don’t choose Brewdog.
After having Brewdog for a couple of months, if I wanted a beer subscription I would definitely not be choosing them. While their Birmingham pub was a good experience when I went there last, their beer subscription has been bland, with beers that are all pretty much the same (high alcohol percentage / sweet / pale / lager like etc). There’s no real variety and it’s not worth the small saving by not going with beer52.
While I doubt it effects the taste, the cans being battered gives me a bad impression. The beer hasn’t been anything interesting (I could buy better stuff at my local corner shop) and there’s been a lack of variety.
Arbitrary tweets made by TheGingerDog up to 20 March 2022
Continue reading “Automated twitter compilation up to 20 March 2022”
Just a random post about a WordPress plugin (hotel booking).
For the site in question, I have a script running which alerts me to any long running (>600s) MySQL queries (or causes of deadlock) and attempts to kill them. When it does this it emails me….
So, the site/MySQL was trying to run queries like this :
DELETE FROM wp_mphb_sync_logs WHERE queue_id IN (SELECT queue_id FROM wp_mphb_sync_queue WHERE queue_name < '1639573980');
which I did an explain, it showed there were > 5 million rows to examine (none of which are actually deleted by the query, so I assume the 5 million rows are all for now invalid queue_id entries).
Adding an index on the wp_mphb_sync_logs.queue_id field didn’t really help speed up the delete … and googling around and checking the plugin’s source code, led me to think it was safe (enough) to do a ‘TRUNCATE wp_mphb_sync_logs
‘.
Now that’s done the table has remained empty 12 hours later; so I think everything’s fine.
This post is mostly because the plugin’s forum requires a paid membership to contribute; and I’m not paying $400 just to post “doing this worked for me”.
Arbitrary tweets made by TheGingerDog up to 13 March 2022
Continue reading “Automated twitter compilation up to 13 March 2022”
Arbitrary tweets made by TheGingerDog up to 06 March 2022
Continue reading “Automated twitter compilation up to 06 March 2022”
Arbitrary tweets made by TheGingerDog up to 27 February 2022
Continue reading “Automated twitter compilation up to 27 February 2022”
Arbitrary tweets made by TheGingerDog up to 20 February 2022
Continue reading “Automated twitter compilation up to 20 February 2022”