sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/bash | |
# deluge2rtorrent | |
# deluge handles downloading and initial sorting | |
# this script is to move everything to rtorrent | |
# torrents and torrent data only | |
# torrent info will not be preserved (seed time, etc) | |
# -P flag and echo because i dont run this unattended | |
# this is quick and dirty, i have no idea what im doing |
#!/bin/bash | |
# Create postgres directory with pgvolume and pga4volume as child directory. | |
mkdir -p postgres/{pgvolume,pga4volume} | |
# Navigate to postgres directory | |
cd postgres | |
# Create pg.env that holds environment variable for postgres docker container. | |
cat << EOF > pg.env |
#!/usr/bin/env bash | |
# transfuse.sh # | |
## Automates backing up and restoring Plasma user configs # | |
## https://gitlab.com/cscs/transfuse # | |
##### cscs ##### | |
underline=`tput smul` | |
nounderline=`tput rmul` | |
HELP=$(echo " "; | |
echo "#########################################################################"; | |
echo "# #"; |
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I) | |
if(!!window.React || | |
!!document.querySelector('[data-reactroot], [data-reactid]') || | |
Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer'))) | |
) | |
console.log('React.js'); | |
if(!!document.querySelector('script[id=__NEXT_DATA__]')) | |
console.log('Next.js'); |
import logging | |
import os | |
import sys | |
from datetime import datetime | |
from typing import List, Dict, Tuple | |
from urllib.parse import urlencode, urlunparse, urlparse | |
import requests | |
# TODO: This script does not yet delete anything, merely logs and notifies until I'm sure it works properly. |
#! /usr/bin/env python | |
""" Email Me. | |
Usage: | |
emailme <message> | |
emailme [-s] <message> | |
emailme [-s] <subject> <message> | |
emailme <toaddr> <subject> <message> | |
emailme <toaddr> <fromaddr> <subject> <message> | |
emailme -h | --help |
#!/usr/bin/env bash | |
# TODO: Allow specifying the key type and size as optional arguments | |
# TODO: Validate the IP address, port number, and hostname | |
# TODO: Add a check for the existence of the .ssh directory/config file | |
# TODO: Better handling of existing SSH config entries, offer to update/append | |
# TODO: Check that external commands are available before using them | |
# This script generates SSH key file pairs, copies the key file to a remote server, and adds an entry in the local .ssh/config |