Skip to content

Instantly share code, notes, and snippets.

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@1player
1player / mullvad.sh
Last active December 8, 2022 21:42
Script to set up Mullvad VPN from Wireguard config files (+ Tailscale VPN support)
#!/bin/bash
#
# Requires: wg-quick from wireguard-tools package.
#
# How to configure: go on your Mullvad account page and download the
# Wireguard configuration for all countries.
# Unpack the archive at $HOME/.config/mullvad/
#
# Then run `mullvad.sh up <2-char country code>`
# and `mullvad.sh down` to tear it down.
@astreknet
astreknet / OpenBSD_on_Apple_M2_QEMU.md
Last active April 11, 2024 08:39
OpenBSD on Apple M2 with QEMU

OpenBSD on Apple M2 with QEMU

Minimalist installation of OpenBSD on the Apple M2 using QEMU

Ingredients

Installation

  1. install QEMU with Homebrew brew install qemu, also possible with MacPorts
  2. Write a script with execute permissions chmod +x qemu_aarch64_install_openbsd.sh for installing the image.
@nerdyslacker
nerdyslacker / void_gnome.md
Last active February 15, 2024 10:46
[Void Linux + GNOME] void linux configuration from scrath with gnome de #linux #void #gnome
@solus-hq
solus-hq / void_gnome.md
Created October 2, 2022 11:09 — forked from nerdyslacker/void_gnome.md
[Void Linux + GNOME] void linux configuration from scrath with gnome de #linux #void #gnome
@ssrihari
ssrihari / clojure-learning-list.md
Last active May 6, 2024 16:25
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language