Example repo for 11ty/eleventy#2248.
This gist was created by @pspeter3!
--- | |
import type { HTMLAttributes } from "astro/types"; | |
type Props = HTMLAttributes<"a"> & { | |
href: string | { pathname: string; query?: Record<string, string> }; | |
}; | |
const { href: rawHref, style, ...attrs } = Astro.props as Props; | |
const href = (() => { |
Example repo for 11ty/eleventy#2248.
This gist was created by @pspeter3!
// ==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 |
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.
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 |
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
#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 |