This post details how to update a domain record entry on Linode based on the public IP of a machine running Linux. We will create a python script and use the Linode API to accomplish this.
Create a personal token in Linode From your Linode console under My Profile > API Tokens you can create a personal access token. The script only requires read/write access to the Domains scope. From here you can also set your desired expiration time.
Read more...
Today I learned
All tags
Recent posts





The contents of this post were originally toots on Mastodon, you can find the original thread there.
@PeskyPotato 25 February 2023 14:13 This is an M2 metro set built by Linke-Hofmann-Busch (LHB). All fairly alike, the M1/M2/M3 sets were used when the Amsterdam metro first opened on 14 October 1977. They were nicknamed "Zilvermeeuw" (translates to Herring Gull) for their shiny stainless steel exterior.
This set was the last to be taken out of service on 19 December 2015 as the newer M5/M6 series from CAF were introduced between 2012 and 2015.
Read more...

The contents of this post were originally toots on Mastodon, you can find the original thread there.
@PeskyPotato 19 February 2023 20:20 This is the diesel-electric NS DE4 (and SBB RAm TEE) developed by SBB and NS for the Trans Europ Express and put in service in 1957. Five of these 4-part trains were built, each consisting of a power car, passenger car, dining car and control car.
#train
Replies: 1 Boosts: 0 Favourites: 1 | Source @PeskyPotato 19 February 2023 20:21 The trainsets were discontinued in 1973 and sold to Ontario Northland Railway in 1977.
Read more...
The contents of this post were originally toots on Mastodon, you can find the original thread there.
@PeskyPotato 17 February 2023 21:55 Last month Strukton showcased their battery powered locomotives at a press event with the State Secretary for Infrastructure and Water Management. This isn't just a battery powered locomotive but can also be charged through overhead lines.
https://struktonrail.com/our-stories/news/2023/01/state-secretary-gives-green-light-for-rail-terminal-lage-weide-and-battery-locomotive/
Replies: 1 Boosts: 0 Favourites: 0 | Source @PeskyPotato 17 February 2023 21:56 Strukton Rail previously purchased one NS Class 1600 locomotive and three NS Class 1700 locomotives, all built by Alstom.
Read more...

The contents of this post were originally toots on Mastodon, you can find the original thread there.
@PeskyPotato 12 February 2023 06:52 It's the weekend and time for #trains!
Here's the MI 2N "Altéo" a dual-voltage EMU from Alstom and Bombardier that serves the busiest rail line, RER A, in France and possibly Europe.
Replies: 1 Boosts: 0 Favourites: 1 | Source @PeskyPotato 12 February 2023 06:53 I'm impressed with the efficiency at which the Paris metro runs.
Read more...

I recently visited Disneyland Paris and I spent more time researching and experiencing the Paris metro system and the RER than looking up and preparing for Disneyland itself. Upon visiting the park in Disneyland Paris I was pleasantly surprised to be greeted by a railway line right by the park entrance. There was no crowd, no line whatsoever, just an elegantly designed station. Going up the stairs I saw the steam locomotive coupled to passenger cars about to depart.
Read more...
Disclaimer: Do not take the information here as a good or best practice. The purpose of this site is to post my learnings in somewhat real time.
Create an OIDC IdP on AWS This needs to be done once for an AWS account, this configures the trust between AWS and GitHub through OIDC.
Create an OpenID Connect identity provider for GitHub on AWS. From the IAM console, choose Identity providers and then Add provider.
Read more...
Install exiftool.
sudo apt install exiftool # sudo apt install libimage-exiftool-perl Remove all tags.
exiftool -all= image.jpg Remove only EXIF tags
exiftool -EXIF= image.jpg
Server and client setup Install Wireguard on both server and client
sudo apt install wireguard Create the public and private key on both server and client. Store the private keys in a sercure place.
wg genkey | tee privatekey | wg pubkey > publickey Server configuration Create and open the file /etc/wireguard/wg0.conf. Insert the following block and view the examples on the table below.
Variable Exmaple <server-ip> 10.0.1.1 <subnet> 24 <interface> eth0 <server-private-key> kj202323j23mwnew0= [Interface] Address = <server-ip>/<subnet> SaveConfig = true PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o <interface> -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o <interface> -j MASQUERADE PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o <interface> -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o <interface> -j MASQUERADE ListenPort = 51820 PrivateKey = <server-private-key> Bring up Wireguard on the client
Read more...
Recursively deleting all objects in a bucket and the bucket itself can be done with the following command.
aws s3 rb s3://<bucket_name> --force If the bucket has versioning enabled any object versions and delete markers will fail to delete. The following message will be returned.
remove_bucket failed: s3://<bucket_name> An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
Read more...