Skip to content

Instantly share code, notes, and snippets.

View lastbattle's full-sized avatar

LastBattle lastbattle

  • everywhere and nowhere
  • 11:11 (UTC +09:00)
View GitHub Profile
@lastbattle
lastbattle / delete_tweet.md
Last active January 16, 2025 14:13
Delete tweet

Original source: https://gist.github.com/apsun/d5a16275d7078c9c038b877adf292f28 Updated for the mac.

100% free. Runs completely locally on your machine. Bypasses the 3200 tweet limit. May require some eye bleach for the script. Here's how to use it:

Go to settings -> account -> your Twitter data and request a download. This may take a few hours. You'll get an email with a link to download a zip file. Extract the zip file and navigate to the data directory.

Go to Twitter in a web browser and find any Tweet you want to delete. We're going to use it to extract your authentication credentials for the next step. Open developer tools, delete the tweet, and find the request to https://twitter.com/i/api/graphql/.../DeleteTweet. Right click it and copy it as cURL.

Save delet_tweets.sh into your data directory. Open it in a text editor, and paste the command you got from the previous step where it says YOUR_CURL_COMMAND_HERE. Replace the id parameter for --data with $tweet_id (make sure to adjust quoting accordingl

@lastbattle
lastbattle / ChangeFileTierToArchive.ps1
Last active January 9, 2024 20:11
Recursively download youtube videos from multiple channels/playlist, and sync local folder to Azure (Windows Powershell + youtube-dl) --- regain your sovereignty by backing up, dont get deplatformed!
# ##### Changing file tiers on Azure Blob Storage to Archive to reduce cost
# https://github.com/TomJanetscheck/AzurePS/blob/master/BlobLevelTiering/tierBlobsToArchive.ps1
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.1
Import-Module AzureRM.profile
### Import Azure PowerShell module
Import-Module Azure
### Login to your Azure Account
@lastbattle
lastbattle / script.idc
Created August 15, 2016 16:48 — forked from diamondo25/script.idc
MapleStory IDC script
// IDC script for identifying functions and such
#include <idc.idc>
#define RenameFunction(a, b) Message("Found %s at %a\r\n", b, a); MakeName(a, b)
#define START_ADDR 0x00400000
static main() {
auto addr = BADADDR;
auto onMovePacket = FindAoBAndRename("25 0C FE FF FF 05 E8 03", "?OnMovePacket@CMovePath@@QAEXAAVCInPacket@@H@Z");