Skip to content

Instantly share code, notes, and snippets.

View jcanfield's full-sized avatar
💭
If I do not respond quickly, try me on Twitter at @creativeboulder.

Joshua Canfield jcanfield

💭
If I do not respond quickly, try me on Twitter at @creativeboulder.
View GitHub Profile
@jcanfield
jcanfield / aria2c_webUI.md
Created January 31, 2022 10:38 — forked from GAS85/aria2c_webUI.md
Aria2 + Ubuntu 18.04 + Apache2 + Web UI
OS: Ubuntu 18.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 192.168.0.111
Your local IP network is 192.168.0.0/24

Aria 2

1. Installation

Install aria2 package:

@bmatthewshea
bmatthewshea / system_update.sh
Last active January 15, 2025 13:48
Ubuntu-Debian APT upgrade script
#!/bin/bash
# "system_update"
# Brady Shea
# Creation: 18SEP2020 - conversion of system_update alias to bash script
# Last update: 13DEC2024 - fixed distro string for debian, added uptime to info presented
# Original location: https://gist.github.com/bmatthewshea/6ef60db227d52f39200029312dd5446a
# Author Website: https://www.holylinux.net/
#
# Place this script in "/usr/local/sbin/system_update", or similar location under your $PATH
# It needs root permissions (SUDO) to execute.
@pixelchrome
pixelchrome / fail2ban.md
Last active July 28, 2025 18:49
fail2ban - cheatsheet

fail2ban

Installation - Ubuntu / Debian

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fail2ban
@shivasiddharth
shivasiddharth / videoupscaler.py
Last active May 28, 2025 17:21
Script to upscale videos using OpenCV and ffmpeg
#!/usr/bin/env python
# Written by Shivasiddharth a.k.a Sid
# Youtube channel https://www.youtube.com/c/SidsEClassroom
# Share this script without removing the author's name
# This piece of script Upscales or Downscales videos using Opencv
# If the original video has an audio stream,
# it will merge the audio from the source file with the scaled video
@w33ble
w33ble / docker-compose.advanced.yml
Last active May 28, 2024 23:13
Using jwilder/nginx-proxy with multiple compose files
version: '3'
services:
nginx-proxy:
image: nginx:alpine
container_name: proxy-nginx
environment:
- DEFAULT_HOST=hello.local
ports:
- 80:80
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active August 11, 2025 04:53
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@jcanfield
jcanfield / tmux-cheatsheet.markdown
Last active July 27, 2018 10:32 — forked from MohamedAlaa/tmux-cheatsheet.markdown
Cheatsheet for `tmux`

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jcanfield
jcanfield / .bash_aliases
Created July 10, 2018 19:56 — forked from insane-dev/.bash_aliases
Commonly used bash aliases
#!/bin/bash
# Colors
RED='\033[0;31m'
BLACK='\033[0;30m'
DARK_GRAY='\033[1;30m'
LIGHT_RED='\033[1;31m'
GREEN='\033[0;32m'
LIGHT_GREEN='\033[1;32m'
BROWN_ORANGE='\033[0;33m'
@jcanfield
jcanfield / ask.sh
Created July 9, 2018 21:05
Bash General-Purpose Yes/No Prompt Function ("ask")
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
# https://djm.me/ask
local prompt default reply
while true; do
# http://EditorConfig.org
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true