Skip to content

Instantly share code, notes, and snippets.

View yyolk's full-sized avatar
๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ

Joseph Chiocchi yyolk

๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ
View GitHub Profile
@yyolk
yyolk / custom.toml
Last active January 4, 2025 07:37 — forked from lpenz/custom.toml
custom.toml example for Raspberry Pi OS
# Raspberry PI OS config - custom.toml
# This file is used for the initial setup of the system on the first boot, if
# it's s present in the boot partition of the installation.
#
# This file is loaded by firstboot, parsed by init_config and ends up
# as several calls to imager_custom.
# The example below has all current fields.
#
# References:
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "semver",
# ]
# ///
"""Converts poetry's caret requirements to vanila pip compatible qualifier.
Poetry's caret qualifier is unique to poetry:
https://python-poetry.org/docs/dependency-specification/#caret-requirements
"""PDM Lock merge strategy driver.
To automatically relock after merging like ``git -X theirs ...``.
Used with an entry in ``pyproject.toml``::
[tool.pdm.scripts]
merge_lockfile = "tasks/merge_lockfile.py"
lockall = "pdm lock -G:all"
@yyolk
yyolk / Resize Asana Comments (Big Asana Comment Box).md
Last active May 7, 2024 16:46
Resize Asana comment box to be the focus of writing when in a fullscreen task.

Asana BIG comment box

Make the comment box the focused writing area in a fullscreen asana ticket. (Asana URLs ending in /f work best, but can also work when there's any task opened on screen.)

Turns this layout: Screenshot 2024-05-02 at 4 15 01โ€ฏPM

..into this: Screenshot 2024-05-02 at 4 15 47โ€ฏPM

@yyolk
yyolk / urlsafari.scpt
Last active March 8, 2024 22:12 — forked from kshiteesh/urlsafari
This AppleScript saves all the tabs open in all Safari windows to a Markdown file.
(*
Export All Safari Tabs in All Open Windows to a Markdown File
March 8th, 2024
// SCRIPT PAGE
https://gist.github.com/yyolk/5ee36b12271d89371fe859630aee80a4
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT WAS ORIGINALLY BUILT
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file
@yyolk
yyolk / ansi.py
Created January 31, 2024 00:29
basic python ansi colors to vendor into your project without needing to pip install
class AnsiColors:
fg_black = "\u001b[30m"
fg_red = "\u001b[31m"
fg_green = "\u001b[32m"
fg_yellow = "\u001b[33m"
fg_blue = "\u001b[34m"
fg_magenta = "\u001b[35m"
fg_cyan = "\u001b[36m"
fg_white = "\u001b[37m"
bg_black = "\u001b[40m"
@yyolk
yyolk / httpie-transfer.sh
Last active January 28, 2024 22:37
upload to transfer.sh with httpie
# curl is usually outdated and missing --upload-file option
# pipx install httpie
# pip install httpie
# apt install httpie
# transfer.sh follows HTTP semantics, where PUT is the appropriate file upload method
http PUT https://transfer.sh/destination.zip @source.zip
# or with redirection
http PUT https://transfer.sh/destination.zip < source.zip
@yyolk
yyolk / README.md
Last active January 28, 2024 22:25
rust armv6 cross tools for ARMv6Z-based BCM2835

Run install_rust_armv6_target.sh

Rust is automatically installed with https://rustup.rs

sh ./install_rust_armv6_target.sh

Compile target from project directory

@yyolk
yyolk / chia-blockchain.patch
Created August 10, 2023 00:27
FreeBSD patches for running Chia-Network/[email protected]
diff --git a/setup.py b/setup.py
index fc27c7d1e..9e86d7469 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ dependencies = [
"boto3==1.26.161", # AWS S3 for DL s3 plugin
"chiavdf==1.0.10", # timelord and vdf verification
"chiabip158==1.2", # bip158-style wallet filters
- "chiapos==2.0.0", # proof of space
+ "chiapos", # proof of space
@yyolk
yyolk / GH-CF-strict-SSL-w-CDN.md
Created August 27, 2021 19:48 — forked from zbeekman/GH-CF-strict-SSL-w-CDN.md
Setting up GH-pages with custom domain, strict (end-to-end) SSL with CloudFlare DNS & CDN

Custom domains, GH-pages, Cloudflare and strict SSL end-to-end encryption

Why I wrote this

Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and