Skip to content

Instantly share code, notes, and snippets.

@crackerbad
crackerbad / install_docker_in_colab.sh
Created May 7, 2024 14:00 — forked from mwufi/install_docker_in_colab.sh
Install Docker in Google Colab!
# First let's update all the packages to the latest ones with the following command
sudo apt update -qq
# Now we want to install some prerequisite packages which will let us use HTTPS over apt
sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq
# After that we will add the GPG key for the official Docker repository to the system
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# We will add the Docker repository to our APT sources
@crackerbad
crackerbad / rclone_copy.py
Created July 18, 2024 03:31 — forked from wholtz/rclone_copy.py
Rclone copy in Jupyter notebook with progress bar widget
from subprocess import Popen, PIPE
from tqdm.notebook import tqdm
RCLONE_PATH = "/usr/local/bin/rclone"
cmd = [RCLONE_PATH, "copy", "source_directory", "my_remote:destination_directory/", "--progress"]
with tqdm(total=100, desc="Percentage of total number of files", unit="%") as pbar:
with Popen(cmd, stdout=PIPE, bufsize=1, universal_newlines=True) as proc:
for line in proc.stdout:
line = line.strip()
@crackerbad
crackerbad / CompleteDiscordQuest.md
Created October 4, 2025 11:59 — forked from aamiaa/CompleteDiscordQuest.md
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter: