Skip to content

Instantly share code, notes, and snippets.

View ataraxies's full-sized avatar

ataraxies ataraxies

View GitHub Profile
@aquaresima
aquaresima / zotero_tags_lowercase.py
Created June 19, 2023 11:36
Script to make all zotero tags lowercase
# The script below will update ALL your tags except those in the skip_tags list. Use it with caution.
# It also splits all tags that have more than a word. It saves both the old tag and the new one.
# That is, you have ("my tag word"), and you get ("my","tag", "word", "my tag word").
#The API_KEY and LIBRARY_ID are private. See the documentation.api_key = "xxxxx"
# Documentation: https://pyzotero.readthedocs.io/en/latest/
# Original thread: https://forums.zotero.org/discussion/92493/any-way-to-switch-all-tags-to-all-lower-case-or-ignore-case-in-tags
library_id = 0000000
library_type = "user"
from pyzotero import zotero
@bashtheshell
bashtheshell / rpi-imager-cli_macOS_tutorial.md
Last active March 12, 2025 16:51
Brief tutorial on how to use Raspberry Pi Imager `rpi-imager --cli` command on macOS to be able to automate image re-creation.

How to Use Raspberry Pi's rpi-imager --cli Command on macOS

With the modern rpi-imager tool, we can automate the imaging process for the Raspberry Pi computer board and make the process extremely painless for us each time we need to re-image.

The official Raspberry Pi's rpi-imager's tool (which can be installed from https://www.raspberrypi.com/software/) contains a command-line option that's not widely documented anywhere at the time of this writing (v1.7.5 was the latest release).

The best official documentation I can possibly find on Raspberry Pi Imager did not cover the command-line option.

As a result, I'll only cover the command-line option for macOS here as it's my daily driver.

@charset "UTF-8";
:root > * {
--md-code-link-bg-color: hsla(0, 0%, 96%, 1);
--md-code-link-accent-bg-color: var(--md-code-link-bg-color);
--md-default-bg-color--trans: rgb(100%, 100%, 100%, 0);
--md-code-title-bg-color: var(--md-code-bg-color);
--md-code-inline-bg-color: var(--md-code-bg-color);
--md-code-special-bg-color: #e8e8e8;
--md-code-alternate-bg-color: var(--md-code-bg-color);
--md-code-hl-punctuation-color: var(--md-code-fg-color);
@eoureo
eoureo / Obsidian Templater - Change tags of multiple notes.js
Created April 5, 2023 03:19
Obsidian Templater - Change tags of multiple notes at once. 옵시디언 Templater - 한꺼번에 여러 노트의 태그들을 바꾸기(Feat. Dataview)
<%_*
/*
@2023-04-05 12:00:00
Obsidian Templater - Change tags of multiple notes at once.
1. Make a table with dataviewjs.
```dataviewjs
dv.table(["✓", "File", "mtime", "ctime", "tags", "folder"], dv.pages("#book")
@AnubisNekhet
AnubisNekhet / !Description.md
Last active May 15, 2023 04:19
Capacities-like sidebars

Preview

image

Caveats

Since the snippet utilises callouts, the sidebar disappears after a note is scrolled enough for the callout to be outside rendering range, i.e. it's best used for smaller notes. Smaller sidebar sizes are better in this case because there's more scroll area.

Usage

Use the capacities-sidebars.css as a snippet and paste the markdown into a new note.

@kennedymwavu
kennedymwavu / .Rprofile
Last active June 18, 2023 23:00
Customize R's startup msg on Rstudio
setHook("rstudio.sessionInit", function(newSession) {
cat('\f')
hour <- format(Sys.time(), format = '%H') |> as.numeric() |> as.character()
morning <- 0:11
afternoon <- 12:16
evening <- c(17:23)
day_hrs <- rep(
@mttjohnson
mttjohnson / .env-1password
Last active November 28, 2024 18:07
Load Secret Environment Variables from 1Password
# Load environment secrets with with 1Password CLI Injection
#
# Used with load_secrets.sh
# source load_secrets.sh
# AWS Service Account Credentials
AWS_ACCESS_KEY_ID={{ op://$OP_VAULT/$INF_PROJECT.aws_access_key/username }}
AWS_SECRET_ACCESS_KEY={{ op://$OP_VAULT/$INF_PROJECT.aws_access_key/password }}
# Project Secrets
@sarimarton
sarimarton / fix_github_copilot.sh
Last active November 29, 2024 12:45
Fix Github Copilot in dealing with self-signed certificates
# [2023-05-25] Added Copilot Chat, and VSCode Insiders
# [2023-05-20] Add VSCode Insiders variant
# [2023-02-22] Added Copilot Labs
# Fix Github Co-pilot self-signed cert problem
# See: https://github.com/orgs/community/discussions/8866#discussioncomment-3517831
# Note
#
# To make Github Copilot/Nightly/Labs/Chat work, you might need additional
@anthonyaxenov
anthonyaxenov / s3-backup.sh
Last active February 20, 2025 06:39
[SHELL] Backup your project to another server
# Permanently moved to https://gist.axenov.dev/anthony/s3-backup
@EllyLoel
EllyLoel / reset.css
Last active September 30, 2025 18:40
CSS Reset
/*
Made by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Notes:
- `:where()` is used to lower specificity for easy overriding.
*/