Archive for September, 2024

Delete all your Tweets at once

If you have a big Twitter account and you want to completely delete all your old tweets in one go, here is how to do it:

Tutorial: How to delete all your Tweets for free (code and userscript in comments)
byu/lucahammer inTwitter

  1. Log into your Twitter account.
  2. Export your Twitter data archive.
    How to: https://twitter.com/settings/download_your_data
    (It may take 1-2 days depending on the volume of your data)
  3. Unzip the file after downloading and locate a file called tweet-headers.js.
  4. Copy script from https://gist.github.com/lucahammer/a4d1e957ec9e061e3cccafcbed599e16#file-tweetxer-js
  5. Back on your Twitter profile page, hit F12, then select the Console tab.
  6. Type “allow pasting” and hit enter.
  7. Then paste the script from Step 4 and hit enter.
  8. Select tweet-headers.js from Step 3.
  9. Watch all your tweets being deleted one by one.

/boot partition is full

On some of our servers, the /boot partition get’s 100% full and then things like yum updates stop working.

Instead of attempting a dangerous and complicated manoeuvre to resize the (boot!) partition we can just take the following steps to stop the /boot partition from filling up in the first place:

Delete all old kernel versions

# dnf remove --oldinstallonly

Then edit the yum conf:

# vi /etc/yum.conf

Update the install limit to 2:

[main]
gpgcheck=1
installonly_limit=2
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False

Locked out of Webmin after IP address changed

Sometimes your provider changes your IP address and if you have IP Access Control turned on, you will not be able to access Webmin anymore. And of course you won’t be able to update your IP address in Webmin if you can’t access it anymore.

So in that case you need to use SSH and edit this config file:

# vi /etc/webmin/miniserv.conf

Look for the line “allow” and edit the IP address(es) as needed:

error_handler_404=404.cgi
error_handler_403=403.cgi
error_handler_401=401.cgi
allow=151.248.55.185 77.109.118.242 80.211.197.221
alwaysresolve=0
libwrap=
trust_real_ip=0