Skip to content

Instantly share code, notes, and snippets.

sudocarlos /
Last active February 12, 2024 06:46
Download, configure and run Cloudflare tunnels for Start9 services
#!/usr/bin/env bash
# Variables
BOLD=$(tput bold) # Start bold text
NORMAL=$(tput sgr0) # Stop bold text; turn off all attributes
# Place each domain.name_cert.pem in $HOME, example:
View Ark_Diagram_1.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View remove_twitter_interests.js
// //
// Lots of discussion and improvement of the original script in the comments
// Here's the best version that works well
// Because Twitter stops the script working after unchecking 50 interests, so you will almost certainly have to run the script multiple times
function sleep(milliseconds) {
return new Promise(function (resolve) {
return setTimeout(resolve, milliseconds);
shmup /
Last active February 27, 2024 04:51
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

joseluisq /
Last active December 15, 2023 01:51
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)


Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
tobek / get-image-urls.js
Last active February 12, 2024 02:36
Save images from chrome inspector/dev tools network tab
View get-image-urls.js
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
simonista / .vimrc
Last active February 11, 2024 03:57
A basic .vimrc file that will serve as a good template on which to build.
View .vimrc
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
gerad / gist:3881072
Created October 12, 2012 19:38
get 50 random words from the dictionary (on mac os x)
View gist:3881072
awk 'BEGIN {srand()} {print rand() " " $0}' /usr/share/dict/words | sort | head -50