Skip to content

Instantly share code, notes, and snippets.

View BitWizCoder's full-sized avatar

Muhammad Noman BitWizCoder

View GitHub Profile
@BitWizCoder
BitWizCoder / delete_all_tweets.js
Created December 22, 2024 14:59 — forked from obedparla/delete_all_tweets.js
Delete all your tweets without an API and for free
// Delete ALL your tweets and un-retweet everything
// Just paste this code on the dev tools and leave the tab open. It deletes at [speed]. Make it faster or slower
// I don't know if Twitter has some internal safety to prevent a bunch of deletions from happening to fast, but at 100 it deletes 1000 tweets in under two minutes
// BEWARE you can't undo this action, and it will delete EVERYTHING
const speed = 100;
// do it on repeat. Timeouts are ugly but whatever, it works
setInterval(function (){
@BitWizCoder
BitWizCoder / unfollow.js.md
Created December 22, 2024 11:16 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com

Unfollow everyone on twitter.com

By @foldleft.bsky.social, see also Unfollow everyone on bsky.app.

  1. Go to https://twitter.com/YOUR_USER_NAME/following
  2. Open the Developer Console. (COMMAND+ALT+I on Mac)
  3. Paste this into the Developer Console and run it
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
@BitWizCoder
BitWizCoder / yt-chapter-dl.txt
Last active March 28, 2024 06:27
download youtube videos in separated chapters
yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=480]' -o 'output.%(ext)s' --split-chapters -o 'chapter:%(title)s/%(section_number)s - %(section_title)s.%(ext)s' --merge-output-format mp4 https://youtu.be/jZzyERW7h1A && rm output.mp4
@BitWizCoder
BitWizCoder / .git-plugin-bash.sh
Created January 2, 2024 09:02 — forked from mkczyk/.git-plugin-bash.sh
Git aliases for bash (based on Oh My Zsh Git plugin)
#!/bin/bash
# To ~/.bashrc file add line:
# source ~/.git-plugin-bash.sh
# Based on Oh My Zsh Git plugin (without zsh functions):
# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
#
@BitWizCoder
BitWizCoder / toggle_appfinder.sh
Created August 22, 2023 23:56
Enable the app finder toggling using the super key. Add this to the PATH and assign a super key as a shortcut for this script. Additionally, ensure that the script is executable.
#!/bin/bash
# Get the process ID (PID) of the Application Finder
appfinder_pid=$(pgrep -x "xfce4-appfinder")
# If the Application Finder is running (PID exists), close it
if [[ -n "$appfinder_pid" ]]; then
pkill -f "xfce4-appfinder"
else
# If the Application Finder is not running, start it
@BitWizCoder
BitWizCoder / subl-context-menu-add.bat
Last active August 17, 2023 04:21
Add and delete sublime text to the context menu.
@echo off
SET "st4Path=C:\Program Files\Sublime Text\sublime_text.exe"
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st4Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "\"%st4Path%\" \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@BitWizCoder
BitWizCoder / gitCli.txt
Last active October 2, 2023 13:33
Create and push repo from the command line.
git init
git add .
git commit -m "initial commit"
gh auth login (if not logged in)
gh repo create "$(basename "$PWD")" --public --source=. --remote=upstream --push
@BitWizCoder
BitWizCoder / open-cmder-here.md
Created August 9, 2022 09:39 — forked from hamzahamidi/open-cmder-here.md
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

Edit 04/2021:

As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL per Documentation.

Original Solution

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

@BitWizCoder
BitWizCoder / ContextCmder-Disable.reg
Created November 3, 2021 00:32 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]