Skip to content

Instantly share code, notes, and snippets.

View bmurty's full-sized avatar

bmurty

View GitHub Profile
@damonkohler
damonkohler / Code.gs
Last active December 21, 2025 07:25
Import all Google Tasks into Sheets using Todoist's CSV format. Downloaded CSVs can be dragged and dropped into Todoist.
function createMenu() {
var menu = SpreadsheetApp.getUi().createMenu("Tasks");
menu.addItem("Import", "importTasksToSheet");
menu.addToUi();
}
function importTasksToSheet() {
// Get the spreadsheet
const ss = SpreadsheetApp.getActiveSpreadsheet();
@nunosans
nunosans / robots.txt
Last active February 12, 2025 16:36
Robots TXT file to disallow AI crawlers
# Disallow the Amazon AI bot.
User-agent: Amazonbot
Disallow: /
# Disallow the Anthropic AI bot.
User-agent: anthropic-ai
Disallow: /
# Disallow the Apple Intelligence bot.
User-Agent: Applebot
#!/usr/bin/env bash
# Abort sign off on any error
set -e
# Start the benchmark timer
SECONDS=0
# Repository introspection
OWNER=$(gh repo view --json owner --jq .owner.login)
@dhh
dhh / linux-setup.sh
Last active February 18, 2026 22:50
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@vgmoose
vgmoose / a_readme.md
Last active February 26, 2026 01:17
Yet another How to Create a Windows 11 Install USB from Ubuntu Linux or Mac

Creating a Windows 11 Install USB in 2022

I have been installing Windows for a long time. Does it get easier? I want to say it gets easier, but it seems like there's always some new wrinkle! These instructions are as much a note to my future self as they may be useful to anyone else.

For me, I was not able to get any exfat-based installs, or even any of the GUI helpers to make this process any more straightforward. Maybe on your target Windows / host OS those helpers will work, but the below process (as of current year) is consistent, and not overly complicated.

Overview:

  1. Downloading an official ISO image from MS:
  2. Formatting the drive (at least 8GB) as GPT, and one FAT-format partition (aka MS-DOS)
@nothingislost
nothingislost / docked-obsidian-settings.css
Last active March 5, 2023 21:22
Docked Obsidian Settings
body {
display: flex;
}
.modal-container {
position: relative;
visibility: hidden;
justify-content: flex-end;
width: auto;
}
@doi-t
doi-t / manage_milestones_with_gh.md
Last active March 2, 2026 23:05
Manage milestones with gh

Use gh v0.11.0 or later for the "shell" aliases.

Run the following gh alias set commands for each operation. You can confirm the created aliases with gh alias list.

gh listMilestones

gh alias set listMilestones "api graphql -F owner=':owner' -F name=':repo' -f query='
    query ListMilestones(\$name: String\!, \$owner: String\!) {
        repository(owner: \$owner, name: \$name) {
            milestones(first: 100) {
@smola
smola / README.md
Last active February 10, 2026 21:14
Quick notes on installing Ubuntu with LUKS+LVM2

Quick notes on installing Ubuntu with LUKS+LVM2

These are just some quick notes about installing Ubuntu to an encrypted partition (LUKS) with LVM2 on top of it. The installer GUI has an advanced option to do this, but it is only available if you select the Erase disk and install Ubuntu option. I wanted to use this setup while preserving dual boot with Windows.

You should probably follow the following guide, instead of my instructions: https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019

TODO

  • Encrypt /boot partition (see the linked guide above).
  • Fix Windows boot loader, removed from GRUB after last update-grub.
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@tomhicks
tomhicks / plink-plonk.js
Last active December 26, 2025 08:35
Listen to your web pages