Collection of small snippets for potentially useful things in DragonRuby
Intended to be copy/pasted.
| // ==UserScript== | |
| // @name TweetXer | |
| // @namespace https://github.com/lucahammer/tweetXer/ | |
| // @version 0.9.3 | |
| // @description Delete all your Tweets for free. | |
| // @author Luca,dbort,pReya,Micolithe,STrRedWolf | |
| // @license NoHarm-draft | |
| // @match https://x.com/* | |
| // @match https://mobile.x.com/* | |
| // @match https://twitter.com/* |
| /* | |
| This may get your account banned. It runs in your regular browser with your regular login without needing the API. | |
| The script does the same things that you would do yourself: | |
| Click the three dots, select delete Tweet, confirm, scroll to next Tweet, repeat. | |
| ========================== | |
| Usage | |
| 1. Open your Twitter profile in a browser | |
| 2. Open the console in the developer tools (F12) | |
| 3. Paste the script and press enter | |
| 4. ??? |
Sometimes you need to search within backups but don't want to restore the dump to a real database.
Backup files produced by Heroku Postgres are compressed. So they need to be converted to plain text.
input.dumpinput.dump to plain text using pg_restore:
Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.
And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.
If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.
Gollumn requires changes to be commited before the server will pick them up for display.
This is a simple workflow that uses guard livereload to continually amend a sessions commit while you work with local files in your gollum wiki. You can use this with any guard task, really, but I like live reload to refresh my broswer.
For live reload to work, you need the extension installed in your browser
| ######################################### | |
| ## Sonic Pi Drum Machine | |
| ## coded by Darin Wilson | |
| ## | |
| use_bpm 95 | |
| in_thread(name: :drum_machine) do | |
| # choose your kit here (can be :acoustic, :acoustic_soft, :electro, :toy) |
| # Playing ASCII drum tabs with Sonic Pi | |
| # Ruby is an awesome language for String manipulation. | |
| # Lets use that fact to play some drums! | |
| # Tab for the Amen break taken from Wikipedia | |
| # http://en.wikipedia.org/wiki/Amen_break | |
| # Note that %Q{ ... } is just another way | |
| # to define a string in Ruby |