Skip to content

Instantly share code, notes, and snippets.

View karldreher's full-sized avatar

Karl Dreher karldreher

  • Vancouver, WA
  • 13:33 (UTC -07:00)
View GitHub Profile
@karldreher
karldreher / extensions.json
Created April 10, 2024 03:00
awesome-vscode-extensions
{
"recommendations": [
"amazonwebservices.aws-toolkit-vscode",
"zamerick.vscode-caddyfile-syntax",
"ms-azuretools.vscode-docker",
"github.vscode-github-actions",
"golang.go",
"codeandstuff.package-json-upgrade",
"esbenp.prettier-vscode",
"rust-lang.rust-analyzer"
@karldreher
karldreher / readme.md
Last active April 10, 2024 02:58
Just Enough Hugo

Just Enough Hugo

Follow the quickstart. Can't get more straightforward than that.

Do not follow the advice regarding submodules. Submodules are horrible and you should not even think about them. We will discuss that point again later.

Stop before you get there, even if you don't have a working site yet.

Themes

As indicated by quickstart, you need a theme.

@karldreher
karldreher / index.ts
Created February 27, 2024 04:01
Typescript Object members
/**
* Fruit class which details tastiness
* @property name - name of the fruit
* @property tastiness - how tasty the fruit is
* @property isCool - whether the fruit is cool or not
* @constructor - creates a new fruit with the given name, tastiness, and isCool properties
* @example
* ```ts
* new TastyFruit("Banana", 10, true)
* ```

Just Enough Node.js

  1. Create a project folder.

You need Yarn. You need NVM, to get Node, to get NPM, to get Yarn.

  1. Start with having, or setting up NVM. You shouldn’t install Node any other way than this by now.
  2. Once NVM is set up, install a modern-ish version of Node. You might want to catch up on the Node version schedule.
nvm install 18
nvm use 18

Intro to Oh-My-Zsh

Setup

Install: Copy & paste the command from the official page.
(You must be in zsh already for this to work)

https://ohmyz.sh/#install

Configuration

.zshrc is essentially the config file. You are intended to customize this how you like it.
If it changes, you can reload the shell by typing zsh.

@karldreher
karldreher / readme.md
Last active December 28, 2021 03:29
useful-npm-global-packages

Useful NPM Global Packages

This document describes a few npm packages i find useful.

git-ignore

Name description basic usage
npm-check-update Checks for updates in package-lock file ncu
git-ignore Generates gitignore based on language ignore node
ms-azuretools.vscode-docker
ms-vscode.powershell
champgm.cloudformation-yaml-validator
ms-python.vscode-pylance
samuelcolvin.jinjahtml
tht13.html-preview-vscode
redhat.vscode-yaml
@karldreher
karldreher / Newsblur-share (hardway)
Last active August 1, 2017 04:23
Converting Newsblur OPML to human-readable format "the hard way but pretty"
#Converting Newsblur OPML to human-readable "the hard way but pretty"
#Use Notepad++ find+replace. Select Regex option and Replace All.
#First, remove the head
Find: <head>.+<\/head>
Replace with: ""
#Remove newsblur stuff
Find: <opml.+<body>|<\/opml>|<\/body>
Replace with: ""