Skip to content

Instantly share code, notes, and snippets.

⚠️ This guide has moved ⚠️

Updates for both 1.18.2 and newer versions can be found at https://minecraft.wiki/w/Tutorial:Custom_structures

Custom data pack structures in 1.18.2

This guide will showcase how to create a data pack that adds a custom structure to the world. There is also a data pack download of this complete example.

Always leave the world and rejoin to apply the new changes!

Pack.mcmeta

@francisfeng
francisfeng / save-tabs-safari-anybox.applescript
Last active August 13, 2025 00:55
Save all tabs of Safari’s current window to Anybox
tell application "Safari"
repeat with tabItem in tabs of window 1
set link to URL of tabItem
tell application id "cc.anybox.Anybox"
save link
end tell
end repeat
end tell
@Normal-Tangerine8609
Normal-Tangerine8609 / html-gradient.js
Created January 17, 2022 01:38
Scriptable HTML Gradient
/*
* HTMLGradient
*
* HTMLGradient(gradient: string): Promis<gradient>
*
* example
* ------------
* const widget = new ListWidget()
* widget.backgroundGradient = await HTMLGradient("to left, red, green 25%, blue-yellow")
* widget.presentSmall()
@chris1111
chris1111 / Terminal Profiler.scpt
Last active November 16, 2022 09:02
Terminal Profiler Applescript.scpt
# Apple Script by chris1111
# Copyright (c) 2021 chris1111 All rights reserved.
set Term to choose from list {"Pro", "Homebrew", "Basic", "Grass", "Man Page", "Novel", "Ocean", "Red Sands", "Silver Aerogel", "Solid Colors"} with title "Setup Terminal Profiles" with prompt "Which profiles do you want to uses?" default items "Pro" OK button name {"Profiles"} cancel button name {"Cancel"}
tell application "Terminal"
activate
end tell
do shell script "killall -c Terminal"
@logic2design
logic2design / Get RSS Feed and create Markdown List.applescript
Last active March 9, 2025 03:19
Create a markdown or HTML list from a RSS feed.
#############################################
# Title: Get RSS feeds links and convert to Markdown
##############################################
# Iain Dunn
# Logic2Design
# www.logic2design.com
# logic2design@icloud.com
# Last update: 16 January 2022
@gdavis
gdavis / xcode-vim.markdown
Last active September 4, 2026 09:51
Notes for working with Xcode VIM mode

Xcode VIM

Learning VIM in Xcode comes with its own set of challenges and limitations, but there is enough there for you to give your mousing hand a break and master the keyboard.

A limited set of commands are available in Xcode, and this document attempts help ease the learning curve of using VIM in Xcode by providing a handy reference as well as what I find works for me in practice.

NOTE: Commands are case-sensitive. A command of N means pressing shift + n on the keyboard.

This document is a work in progress! Leave a comment if you would like to see a change.

@mrdbourke
mrdbourke / m1-ml-setup.md
Created November 27, 2021 03:11
Setting up a data science and machine learning environment with TensorFlow on M1, M1 Pro, M1 Max.

How to setup a TensorFlow environment on M1, M1 Pro, M1 Max using Miniforge

You: have a new M1, M1 Pro, M1 Max machine and would like to get started doing machine learning and data science on it.

This page: goes through a list of steps to install package managers and common machine learning and data science packages (software) on your machine and make sure they run using sample code.

Steps

  1. Download and install Homebrew from https://brew.sh. Follow the steps it prompts you to go through after installed.
  2. Download Miniforge3 (Conda installer) for macOS arm64 chips (M1, M1 Pro, M1 Max).
@joshdholtz
joshdholtz / .zshrc
Created October 27, 2021 19:16
Josh's M1 Mac Development Environment - homebrew, zsh
# ~/.zshrc
ZSH_DISABLE_COMPFIX=true
export ZSH="/Users/joshholtz/.oh-my-zsh"
# joshdholtz theme shows arch type in the prompt
ZSH_THEME="joshdholtz"
plugins=(git)
source $ZSH/oh-my-zsh.sh
# M1 and Rosetta
@kepano
kepano / obsidian-web-clipper.js
Last active September 21, 2026 12:20
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */