Skip to content

Instantly share code, notes, and snippets.

@stared
stared / My Clippings.txt
Last active May 27, 2025 07:52
Convert Kindle highlights and notes into Markdown - to be used in Obsidian or Static Site Generator
The Design of Everyday Things: Revised and Expanded Edition (Norman, Don)
- Your Highlight on page 101 | location 2210-2212 | Added on Wednesday, 11 May 2016 21:05:40
It is a profoundly erroneous truism, repeated by all copy-books and by eminent people when they are making speeches, that we should cultivate the habit of thinking of what we are doing. The precise opposite is the case. Civilization advances by extending the number of important operations which we can perform without thinking about them. (Alfred North Whitehead, 1911.)
==========
The Design of Everyday Things: Revised and Expanded Edition (Norman, Don)
- Your Highlight on page 111 | location 2395-2396 | Added on Saturday, 18 June 2016 19:33:53
unless it is triggered by some external event or unless we deliberately keep it in mind through constant repetition (which then prevents us from having other conscious thoughts).
==========
@gerrowadat
gerrowadat / static-website-gcloud-migration.md
Last active December 5, 2023 07:57
Moving an existing static website to gcloud

Steps for moving an existing static website to gcloud (GCS bucket with an LB in front of it)

Some of this is covered in the gcloud docs here - I add in the part about safely migrating your SSL cert.

This assumes you have an SSL cert chain and private key, similar to those issued by letsencrypt. In my case I'm moving from a VM running nginx and letsencrypt certs.

First, set up the bucket as described in the above docs, or do the auto update from hugo thing I describe in this gist

Make sure access is open: gcloud storage buckets add-iam-policy-binding gs://my-static-assets --member=allUsers --role=roles/storage.objectViewer

@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active July 20, 2025 03:00
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@scyto
scyto / proxmox-tb-net.md
Last active July 19, 2025 18:59
Thunderbolt Networking Setup

Thunderbolt Networking

this gist is part of this series

you wil need proxmox kernel 6.2.16-14-pve or higher.

Load Kernel Modules

  • add thunderbolt and thunderbolt-net kernel modules (this must be done all nodes - yes i know it can sometimes work withoutm but the thuderbolt-net one has interesting behaviou' so do as i say - add both ;-)
    1. nano /etc/modules add modules at bottom of file, one on each line
  1. save using x then y then enter
@scyto
scyto / proxmox.md
Last active July 19, 2025 13:53
my proxmox cluster

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@simon-frankau
simon-frankau / MAC_DEV.md
Last active May 9, 2023 15:21
How to set up a Mastodon dev instance on an M1 Macbook Air

How to run a Mastodon dev instance on an M1 Macbook Air

I think I now hoave a minimal set of steps required to get Mastodon dev running on an M1 Macbook Air. I may have missed some, because I got there through a bunch of trial and error, which may have installed extra dependencies. If this doesn't work, please let me know.

These instructions are based around https://docs.joinmastodon.org/dev/setup/#vagrant and https://github.com/ppggff/vagrant-qemu .

@NickCraver
NickCraver / Top By Query Hash.sql
Last active October 27, 2015 20:49
SQL Top Queries
DECLARE @MaxResultCount int = 500;
SELECT AvgCPU, AvgDuration, AvgReads, AvgCPUPerMinute,
TotalCPU, TotalDuration, TotalReads,
PercentCPU, PercentDuration, PercentReads, PercentExecutions,
ExecutionCount,
ExecutionsPerMinute,
PlanCreationTime, LastExecutionTime,
SUBSTRING(st.text,
(StatementStartOffset / 2) + 1,
@NickCraver
NickCraver / Windows10-Setup.ps1
Last active February 6, 2025 04:09
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@willurd
willurd / web-servers.md
Last active July 18, 2025 18:46
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000