- Install Astro
pnpm create astro@latest - Install Tailwind
pnpm astro add tailwinddocs - Install a UI Framework (lit, svelte, etc)
pnpm astro add litdocs - Install the Astro MDX Integration
pnpm add @astrojs/mdxandpnpm astro add mdxdocs - Install the Sitemap addon
pnpm astro add sitemapdocs - Push to new github repository
gh repo create --push --public --source=.
| // 1. Navigate to the Members View | |
| // Enter slack in the browser. https://{insert your team name here}.slack.com/messages/ | |
| // Click on the channel you want. | |
| // Click the information icon. | |
| // Expand the members dropdown. | |
| // Click "See All Members" | |
| // 2. Run JS Code To Start | |
| // Copy-paste this whole thing |
I learned how to open a module in a Node REPL thanks to this StackOverflow post
npm install --save-dev "@faker-js/faker- = install Faker to your repository
- (I made an empty project folder because idk how to find -g global ones in node)
node --experimental-repl-await- = open the Node REPL with the experimental await feature
let { faker } = await import('@faker-js/faker')
| javascript:(function(){ | |
| const title = document.querySelectorAll("h1.ytd-watch-metadata")[0].innerText; | |
| const url = window.location.href; | |
| window.prompt("Here's your markdown link!",`[${title}](${url})`); | |
| })(); |
| javascript: (function () { | |
| const tootContents = encodeURIComponent( | |
| document | |
| .getElementsByClassName("detailed-status")[0] | |
| .getElementsByClassName("status__content__text")[0].innerText | |
| ); | |
| const twitterLink = `https://twitter.com/intent/tweet?text=${tootContents}`; | |
| window.location.href = twitterLink; | |
| })(); |
So many messaging apps!! It's hard to keep track of who I talk to where!
I message Brian on Signal, Sean on Discord, and Steve by sms.
I just want to type their name and BAM immediately be in the correct app.
This takes two steps:
- Coming up with the "weird links" to open the right app to the right person (I use a spreadsheet)
- Making those "weird links" easy to open (like with Apple Shortcuts)
| a = `10 | |
| 13 | |
| 10 | |
| 9 | |
| 14 | |
| 10` | |
| b = a.split("\n") | |
| c = b.map(a => Number(a)) | |
| d = c.sort((a, b) => b-a) |
FL Studio support custom layouts for the "typing keyboard to piano keyboard" feature, and I made one to represent the top four rows of an accordion! The left-hand bass side of the accordion (the stradella bass system) is laid out to make playing roots of chords and common chords very easy, and it's laid out using the circle of fifths to make the common chords (V and IV) very accessible. Here is my favorite accordion fingering chart: http://accordionscanada.com/bassrangev3.jpg
Accordion 1:
- The 12345 row is the third of the chord row
- The QWERTY row is the main root chord row - the Y key is C
- The ASDFG row is the major chord row
- The ZXCVB row is the minor chord row
Accordion 2:
Other gists & tricks: http://caseywatts.com/gists-and-tricks
- Save this bookmarklet. Right-click on boomarks toolbar
Add Page...- Name:
Remove Messenger Banner(or whatever you like) - URL: (paste in the bookmarklet.js contents below)
- Name:
- Each time you open
messenger.com, click the bookmarklet and that pesky banner will be gone.
Electron is tricky to get set up on Windows Subsystem for Linux, but it can work!
Four things needed overall:
- you need WSL2, not WSL1
- you need node, of course, and that part isn't so bad
- you need to
apt installseveral dependencies - you need an X Server so it can display the electron GUI over in Windows-land
Setup instructions, in order: