Skip to content

Instantly share code, notes, and snippets.

View jrcharney's full-sized avatar

Jason Charney jrcharney

View GitHub Profile
@jrcharney
jrcharney / vsce_sharp.sh
Created May 26, 2025 06:47
The program Microsoft should have wrote when they created VSCE.
#!/usr/bin/env bash
# File: vsce_sharp.sh
# Info: Enhanced listing of VS Code extensions with metadata from Open VSX
# Created by: Jason Charney (https://github.com/jrcharney)
# Last updated: 25 May 2025
# Version: 0.5.0
# Requires:
# - `curl`, `jq`, and `tput`
# - vsce to be installed via npm (`sudo npm install -g @vscode/vsce`)
@jrcharney
jrcharney / .zshrc
Created May 23, 2025 23:20
Zsh configuration with autocomplete enhancements
# File: ~/.zshrc
# Created by Jason Charney (https://github.com/jrcharney)
# Last updated: 23 May 2025
# Description: Dot-file for Zsh built for auto-completion
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
@jrcharney
jrcharney / .tmux.conf
Created May 23, 2025 23:18
Tmux configuration that is easy to use
# File: ~/.tmux.conf
# Info: Tmux configuration
# Created by: Jason Charney (https://github.com/jrcharney)
# Last Updated: 23 May 2025
# To reload the config file, you can run 'tmux source-file ~/.tmux.conf' or restart tmux
# For a list of tmux command, see https://tmuxcheatsheet.com/
# enable mouse mode (easier for resizing panes)
set -g mouse
@jrcharney
jrcharney / setup-ufw.sh
Last active April 24, 2025 00:30
Interactive UFW setup script
#!/bin/bash
# File: setup-ufw.sh
# Created by: Jason Charney (https://github.com/jrcharney)
# Date: 14 April 2025
# Info: Interactive Uncomplicated Firewall (ufw) setup script
# ufw is not a replacement for iptables, but a front-end. It is certainly more pleasant to use.
# NOTE: You MUST run this script as super user. Every Uncomplicated Firewall (ufw) command outside of this script starts with `sudo`.
# Requirements:
# - Make sure ufw and sshd is installed.
# sudo pacman -S ufw # Or whatever package manager that you use.
@jrcharney
jrcharney / https.md
Last active March 1, 2023 18:59
How to use HTTPS or HTTP/2 in Node.js and why you should use Let's Encrypt.

Using HTTPS or HTTP/2 to create a HTTPS site

HTTP is an unencrypted protocol. It's not secure. A lot of websites offer a way to fix that using Let's Encrypt to set up you HTTPS stuff.

Several webhosting providers have instructions for setting up HTTPS or HTTP/2 on their server.

@jrcharney
jrcharney / RegExp.md
Created February 23, 2023 23:04
A regexp tutorial

Regular Expression

Written by Jason Charney

Regular Expression (a.k.a. RegEx, RegExp, or RE), is a sequence of characters that specify a search pattern in text. Typically, RegExes are used to find and/or replace text that matches patterns.

Summary

In this document, I will describe how to use regular expression, how it works, and a few concepts you probably didn't know were the inspiration for its functional design.

@jrcharney
jrcharney / gist:2b480b2f018dddb571ebdde1179baad8
Created September 1, 2022 15:51
A `sudo journalctl -p 3 -xb` debug report for an comment related to an issue, only in a better place.
Aug 31 16:56:22 lilith systemd-modules-load[346]: Failed to find module 'nvidia-uvm'
Aug 31 16:56:22 lilith kernel: ACPI Error: No handler for Region [ECRM] (00000000b960e8bd) [EmbeddedControl] (20211217/evregion-130)
Aug 31 16:56:22 lilith kernel: ACPI Error: Region EmbeddedControl (ID=3) has no handler (20211217/exfldio-261)
Aug 31 16:56:22 lilith kernel: ACPI Error: Aborting method \_SB.GPIO._EVT due to previous error (AE_NOT_EXIST) (20211217/psparse-529)
Aug 31 16:56:28 lilith p-steamos-priv-write[3195]: decline harder: auto -> /sys/class/drm/card0/device/power_dpm_force_performance_level
Aug 31 16:56:28 lilith p-steamos-priv-write[3204]: decline harder: auto -> /sys/class/drm/card0/device/power_dpm_force_performance_level
Aug 31 16:56:28 lilith p-steamos-priv-write[3219]: decline harder: 15000000 -> /sys/class/hwmon/hwmon2/power1_cap
Aug 31 16:56:28 lilith p-steamos-priv-write[3228]: decline harder: 15000000 -> /sys/class/hwmon/hwmon2/power2_cap
Aug 31 16:56:28 lilith wpa_supplicant[2919]: bgscan simple: