This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "inheritance" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
strum = { version = "0.26.3", features = ["derive"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change these variables as necessary. | |
MAIN_PACKAGE_PATH := ./cmd/example | |
BINARY_NAME := example | |
# ==================================================================================== # | |
# HELPERS | |
# ==================================================================================== # | |
## help: print this help message | |
.PHONY: help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# patched versions for CVE-2023-4863: 22.3.24, 24.8.3, 25.8.1, 26.2.1 | |
mdfind "kind:app" 2>/dev/null | sort -u | while read app; | |
do | |
filename="$app/Contents/Frameworks/Electron Framework.framework/Electron Framework" | |
if [[ -f $filename ]]; then | |
echo "App Name: $(basename ${app})" | |
electronVersion=$(strings "$filename" | grep "Chrome/" | grep -i Electron | grep -v '%s' | sort -u | cut -f 3 -d '/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(() => { | |
const requestURL = "https://zanshin.github.io/save"; | |
const token = "dfgkjlhsdfgkljghklhj"; | |
const pageTitle = document.title; | |
const pageURL = window.location.href; | |
let metaImage = ""; | |
let metaDescription = ""; | |
function getMetaValue(propName) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! /bin/bash | |
set -e | |
set -o pipefail | |
# header-cleanup.sh | |
# | |
# Read files with Jekyll style YAML headers and "clean them" so that Hugo | |
# conversion works. | |
# | |
# Problems: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! | |
# Some colors | |
# Argonaut colors | |
# Black / Bright Black | |
set $color0 #232323 | |
set $color8 #444444 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !exists('g:colors_name') || g:colors_name != 'base16-chalk' | |
colorscheme base16-chalk | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !exists('g:colors_name') || g:colors_name != 'base16-solarized-dark' | |
colorscheme base16-solarized-dark | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set folder=~/.mail | |
mailboxes +”foo” | |
# find sorts things in strange ways. for example: Lists will come after | |
# Lists/Atomic, here the printf prints the name of the folder we need, and the | |
# folder's depth. Numeric sort on the depth first, then the name, then do some | |
# cleanup (escape any spaces in the directory name and then print all the | |
# mailboxes on 1 line) | |
mailboxes `find ~/.mail/foo/ -type d -name cur -printf '%h\t%d\n'| sort -n | tr ' ' '\\ ' | awk -F'\t' '{ ORS=" "}{ print $1 }'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set pgp_decode_command = "gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" | |
set pgp_verify_command = "gpg --no-verbose --batch --output - --verify %s %f" | |
set pgp_decrypt_command = "gpg --passphrase-fd 0 --no-verbose --batch --output - %f" | |
set pgp_sign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" | |
set pgp_clearsign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" | |
set pgp_import_command = "gpg --no-verbose --import -v %f" | |
set pgp_export_command = "gpg --no-verbose --export --armor %r" | |
set pgp_verify_key_command = "gpg --no-verbose --batch --fingerprint --check-sigs %r" | |
set pgp_list_pubring_command = "gpg --no-verbose --batch --with-colons --list-keys %r" | |
set pgp_list_secring_command = "gpg --no-verbose --batch --with-colons --list-secret-keys %r" |
NewerOlder