Skip to content

Instantly share code, notes, and snippets.

@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active May 20, 2024 22:21 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows

image

This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.


@mbleigh
mbleigh / README.md
Last active May 20, 2024 22:20
Firebase Hosting Fetch All Files

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 20, 2024 22:17
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@ronknight
ronknight / .env
Last active May 20, 2024 22:17
download unsubcribe.log using ftp
USERNAME: username
PASSWORD: password
SERVER:server_address
REMOTE_FILE: The_path_to_the_remote_file_on_the_FTP_server
LOCAL_PATH: The_local_directory_where_the_downloaded_file_should_be_stored
@ronknight
ronknight / get_wifi_password.py
Created May 20, 2024 21:58
get saved wifi password
import subprocess
import re
def get_wifi_passwords():
try:
# Run the command to get saved WiFi profiles
result = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output=True, text=True, check=True)
# Extract profile names
@ronknight
ronknight / execute-download.py
Created May 20, 2024 22:08
Download bulk images, PDFs, mp3s, etc. from multiple URLs on a txt file, using Python 3
import requests
import urllib
def download_url(file_url):
print("downloading: ",file_url)
# find "/" then assume that all the rest of the charaters after that represents the filename
# if url is www.test.com/abc/xyz/filename.jpg, the file name will be filename.jpg
file_name_start_pos = file_url.rfind("/") + 1
file_name = file_url[file_name_start_pos:]
@w-e-w
w-e-w / sd-webui-txt2img-img2img-api-example.py
Last active May 20, 2024 22:15
Stable Diffusion web UI txt2img img2img api example script
from datetime import datetime
import urllib.request
import base64
import json
import time
import os
webui_server_url = 'http://127.0.0.1:7860'
out_dir = 'api_out'
@hcmiya
hcmiya / 001-proxy.md
Last active May 20, 2024 22:14
Quick example of federating with darknet instances from clearnet

Quick example of federating with Tor instances from clearnet

figure1

Install and configure Tor / Privoxy

# apt install privoxy tor
@acamino
acamino / README.md
Last active May 20, 2024 22:11
Shortcuts to Improve Your Bash & Zsh Productivity

Shortcut — Action

  • CTRL + A — Move to the beginning of the line
  • CTRL + E — Move to the end of the line
  • CTRL + [left arrow] — Move one word backward (on some systems this is ALT + B)
  • CTRL + [right arrow] — Move one word forward (on some systems this is ALT + F)
  • CTRL + U — (bash) Clear the characters on the line before the current cursor position
  • CTRL + U —(zsh) If you're using the zsh, this will clear the entire line
  • CTRL + K — Clear the characters on the line after the current cursor position
  • ESC + [backspace] — Delete the word in front of the cursor