Skip to content

Instantly share code, notes, and snippets.

View kjkent's full-sized avatar
:shipit:

Kristopher James Kent kjkent

:shipit:
View GitHub Profile
@jacobdalamb
jacobdalamb / Link.astro
Last active August 30, 2024 02:34
astro link component
@zachleat
zachleat / README.md
Last active July 6, 2024 00:09 — forked from pspeter3/.eleventyignore
Eleventy 11ty.js Extensions
@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active April 25, 2025 22:53
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active February 28, 2025 05:35
Set of optimizations, I use on my Artix Setup

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
git rebase --exec 'git commit --amend --no-edit -n -S' -i <previous-commit>
make a branch from your branch with unsigned commits (git checkout -b ...)
use git log --show-signature to see which are not signed
use the commit BEFORE the first one you want to fix in the above command (as <previous-commit>)
accept the generated file (don't change it)
save the file
use git log --show-signature to show the commits are now signed
push up
@kabili207
kabili207 / Rclone systemd service.md
Last active April 26, 2025 17:28
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@gresan-gits
gresan-gits / code.ino
Created February 14, 2020 10:23
ESP32 ADC Arduino
#include "esp_system.h"
#include "esp_adc_cal.h"
#include "driver/adc.h"
#define ADC_BAT_PIN 34
#define NO_OF_SAMPLES 64 //Multisampling
#define REF_VOLTAGE 1100
#define LIN_COEFF_A_SCALE 65536
@fjpalacios
fjpalacios / arch-i3gaps-install.md
Last active April 18, 2025 09:44
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 8, 2025 14:18
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}