Skip to content

Instantly share code, notes, and snippets.

@Purpzie
Purpzie / wiki.yml
Created September 4, 2023 17:19
Sync a wiki with a folder in a repository
name: wiki
on:
push:
branches:
- main
paths:
- wiki/**
- .github/workflows/wiki.yml
concurrency:
group: wiki

Generated with the following command:

curl "https://discord.com/api/v10/applications/detectable" | jq --raw-output '"Icon|Name\n---|---", (sort_by(.name) | .[] | "![](https://cdn.discordapp.com/app-icons/" + .id + "/" + .icon + ".webp?size=40&keep_aspect_ratio=false)|" + .name)'
Icon Name
100% Orange Juice
140
@Purpzie
Purpzie / arch-wsl-setup.md
Last active June 19, 2023 19:37
Arch WSL setup guide
  1. Download archlinux-bootstrap-<version>-x86_64.tar.gz from one of the mirrors. You should verify its signature.

  2. While it's possible to import a .tar.gz into WSL, Arch's bootstrap needs to be adjusted first. Open any Linux distro that can transfer files to/from Windows. (WSL counts.)

  3. In Linux:

    # This needs to be done as root to avoid WSL permission issues.
    sudo -i
    
    # Extract it, cd into the folder, and compress it again.
@Purpzie
Purpzie / update-lockfile.yml
Last active May 6, 2023 13:22
Action to update pnpm-lock.yaml when Dependabot opens a PR. Be warned that this may cause lots of merge conflicts.
# https://github.com/dependabot/dependabot-core/issues/1736
name: Dependabot
on: pull_request_target
permissions: read-all
jobs:
update-lockfile:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
pull-requests: write
@Purpzie
Purpzie / mods.md
Last active February 6, 2023 19:03
Minecraft mods I use regularly
@Purpzie
Purpzie / settings.jsonc
Last active May 6, 2021 23:05
VSCode GitHub Dark theme adjustments
"workbench.colorCustomizations": {
"[GitHub Dark]": {
"focusBorder": "#AB77F4",
"tab.activeBorderTop": "#AB77F4",
"panelTitle.activeBorder": "#AB77F4",
"activityBar.activeBorder": "#AB77F4",
"extensionIcon.starForeground": "#AB77F4",
"peekView.border": "#AB77F4",
"editorLightBulb.foreground": "#AB77F4",
"editorLightBulbAutoFix.foreground": "#AB77F4",
@Purpzie
Purpzie / eslint.md
Last active August 27, 2022 20:58
All eslint:recommended rules (generated with https://repl.it/@Purpzie/eslint-recommended-rules)
Rule Description
constructor-super require super() calls in constructors
for-direction enforce "for" loop update clause moving the counter in the right direction.
getter-return enforce return statements in getters
no-async-promise-executor disallow using an async function as a Promise executor
no-case-declarations disallow lexical declarations in case clauses
no-class-assign disallow reassigning class members
no-compare-neg-zero disallow comparing against -0
no-cond-assign disallow assignment operators in conditional expressions