Skip to content

Instantly share code, notes, and snippets.

View Changaco's full-sized avatar

Charly C. Changaco

View GitHub Profile
@Changaco
Changaco / en.md
Last active December 2, 2024 11:03 — forked from gmolveau/twitter_reset.md
X/Twitter reset script

Emptying your X/Twitter account

The first script below deletes your tweets, retweets and likes. Be careful! The deleted elements can't be restored!

The second script empties the list of accounts you follow.

Before proceeding, you should request and download your data archive : https://x.com/settings/download_your_data

Once you're ready:

@Changaco
Changaco / btrfs-undelete
Last active December 26, 2024 17:55
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <[email protected]>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
echo
import Data.Time.Clock
import Data.Time.Calendar
currentDate :: IO (Integer, Int, Int)
currentDate = fmap (toGregorian . utctDay) getCurrentTime
daysOfMonth :: Integer -> Int -> [Day]
daysOfMonth year month = map (fromGregorian year month) [1..gregorianMonthLength year month]
main = do