Skip to content

Instantly share code, notes, and snippets.

@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 July 21, 2024 01:43
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 July 15, 2024 01:29
Set of optimizations, I use on my Artix Setup
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 July 13, 2024 20: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 July 19, 2024 18:25
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 July 20, 2024 05:29
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;
}
@artizirk
artizirk / gnupg_scdaemon.md
Last active July 12, 2024 20:07
OpenPGP SSH access with Yubikey and GnuPG

NB: This document describles a 'Old-School' way of using Yubikey with SSH

Modern OpenSSH has native support for FIDO Authentication. Its much simpler and should also be more stable with less moving parts. OpenSSH also now has support for signing arbitary files witch can be used as replacement of gnupg. Git also supports signing commits/tags with ssh keys.

Pros of FIDO

  • Simpler stack / less moving parts
  • Works directly with ssh, ssh-add and ssh-keygen on most computers
  • Simpler
  • Private key can never leave the FIDO device

Cons of FIDO

@patrickmslatteryvt
patrickmslatteryvt / gist:d531c5ae4598fd4c9d508833bde6c7c0
Last active July 24, 2023 07:05
Install/update SOPS to latest on Fedora
# Install/update SOPS to latest on Fedora - https://github.com/getsops/sops
# This script requires jq installed to parse the API return from GitHub
echo "[+] Install/upgrade SOPS"
which jq | grep -o jq > /dev/null && : || dnf install -y jq
SOPS_VERSION=$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq .tag_name | tr -d '"')
dnf install -y https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION:1}-1.x86_64.rpm
sops --version
# sops 3.7.3 (latest)