How to make an application icon for macOS using
iconset
&iconutil
# ----------------------------------------------------------------------------- | |
# AI-powered Git Commit Function | |
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It: | |
# 1) gets the current staged changed diff | |
# 2) sends them to an LLM to write the git commit message | |
# 3) allows you to easily accept, edit, regenerate, cancel | |
# But - just read and edit the code however you like | |
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/ | |
gcm() { |
when trying to connect to DSM with vscode:
The remote host may not meet VS Code Server's prerequisites for glibc and libstdc++
https://community.synology.com/enu/forum/10/post/153781
In the olden days, HTML was prepared by the server, and JavaScript was little more than a garnish, considered by some to have a soapy taste.
After a fashion, it was decided that sometimes our HTML is best rendered by JavaScript, running in a user's browser. While some would decry this new-found intimacy, the age of interactivity had begun.
But all was not right in the world. Somewhere along the way, we had slipped. Our pages went uncrawled by Bing, time to first meaningful paint grew faster than npm, and it became clear: something must be done.
And so it was decided that the applications first forged for the browser would also run on the server. We would render our HTML using the same logic on the server and the browser, and reap the advantages of both worlds. In a confusing series of events a name for this approach was agreed upon: Server-side rendering. What could go wrong?
In dark rooms, in hushed tones, we speak of colours.
Just a walkthrough of the containerized way to get NAS stats to Datadog.
The tl;dr is the container can monitor the host, processes, grab logs and SNMP. If you're using your NAS as a quick dev box you could also monitor other containers.
With ASDF, you can manage version of Node, Yarn, PNPM, PHP, Python, and more than 400 other tools, languages and binaries.
-
Uninstall
nvm
-
Install
asdf
-
Install
nodejs
plugin forasdf
Add
legacy_version_file = yes
to~/.asdfrc
file -
Install
gnupg
#!/bin/bash | |
tail -n +0 $1 \ | |
| nl -ba \ | |
| fzf --multi \ | |
--ansi \ | |
--no-sort \ | |
--reverse \ | |
--tac \ | |
--preview 'sed -n "$(({n}-4)),$(({n}+6))p" '$1' | nl -v $(({n}-4)) -ba' \ |
Hey Apple users:
If you're now experiencing hangs launching apps on the Mac, I figured out the problem using Little Snitch.
It's trustd connecting to http://ocsp.apple.com >
mappings: | |
- match: "airflow.dag_processing.last_duration.*" | |
help: "Milliseconds taken to load the given DAG file" | |
observer_type: summary | |
name: "airflow_dag_processing_last_duration" | |
labels: | |
dag_file: "$1" | |
- match: "airflow.dagrun.duration.*.*" | |
help: "Milliseconds taken for a DagRun to reach 'type' state" | |
observer_type: summary |
#!/usr/bin/env python | |
''' | |
List all available versions of Kindle for Mac and Kindle for PC. | |
Dependencies: | |
- asyncio==3.4.3 | |
- aiohttp==3.6.3 | |
''' | |
import os | |
import sys |