Skip to content

Instantly share code, notes, and snippets.

View JettIsOnTheNet's full-sized avatar
💭
🕶️

Jett Sjöberg JettIsOnTheNet

💭
🕶️
View GitHub Profile
@JettIsOnTheNet
JettIsOnTheNet / setting_up_zfs_on_ubuntu_22.04.md
Last active January 25, 2023 15:48
Quick Start Guide: Setting up ZFS on Ubuntu 18/20/22.04

Quick Start Guide: Setting up ZFS on Ubuntu 18/20/22.04

Setting up ZFS on Ubuntu can be a great way to improve the performance and reliability of your storage setup, and is extremely straight forward. Since ZFS is not enabled in the Ubuntu main archive after version 16.04 but as a separate package in the universe repository, you will need to be sure you have universe respository enabled.

Caution:

  • This HOWTO uses a whole physical disk.
  • Backup your data if you are re-using a drive. Any existing data will be lost.

Before you begin:

  • READ ALL STEPS
@JettIsOnTheNet
JettIsOnTheNet / awesome_swift_style_guides.md
Last active January 10, 2023 23:58
Awesome Swift Style Guides

Swift-Style-Guides

A list of Style Guides for Swift Programming Language.

Swift is a reliable and efficient language that is well-suited for building apps on Apple platforms. Its focus on safety, simplicity, and integration with Apple frameworks make it a top choice for developers of all skill levels.

One major disadvantage of Swift however is that it does not have an in-depth Style Guide. The guide provided by Swift.org leaves a lot open to interpretation. This can lead to inconsistency in the way code is written which can become especially problematic in large projects with multiple contributors. The less time and effort you have to spend ensuring that the codebase is cohesive, the better.

An in-depth Style Guide helps establish a common language and set of best practices that everyone on the team can follow, making it easier to collaborate and maintain the code over time. If you are learning Swift, I suggest to follow a Style Guide while learning. It makes your code 10x better, from day 1 and yo

@JettIsOnTheNet
JettIsOnTheNet / using_julia_lang_inside_jupyter_notebook.md
Created March 13, 2023 17:20
Using Julia Lang inside Jupyter Notebook

Using Julia inside Jupyter Notebook isn't difficult. I will assume you have installed Julia.

To use Julia in Jupyter notebook, first launch Julia's REPL and add the IJulia package.

using Pkg
Pkg.add("IJulia")
@JettIsOnTheNet
JettIsOnTheNet / awesome_typescript_cheatsheet.md
Created July 18, 2023 13:22
Awesome TypeScript Cheat Sheet

TypeScript Cheat Sheet

TypeScript is a statically-typed language developed by Microsoft. It compiles to plain JavaScript and supports all ECMAScript features. To get started with TypeScript, install it via npm:

1. Setting up, compiling, development, ts-node

npm install -g typescript
@JettIsOnTheNet
JettIsOnTheNet / awesome_lua_cheatsheet.md
Last active June 6, 2025 19:50
Awesome Lua Cheat Sheet

Lua Cheat Sheet

Lua is a lightweight, efficient, and versatile scripting language known for its simplicity and extensibility. It was created by Roberto Ierusalimschy, Waldemar Celes, and Luiz Henrique de Figueiredo at the Pontifical Catholic University of Rio de Janeiro in Brazil in 1993. The name "Lua" translates to "moon" in Portuguese, reflecting the language's intention to be a small and beautiful extension to existing systems. Lua is often used as an embedded scripting language in various applications and has gained popularity in the game development industry for its ease of integration and speed. Its clean and intuitive syntax, along with a powerful set of features, makes Lua a preferred choice for developers seeking a fast and efficient language for their projects.

1. Comments

-- This is a single-line comment

--[[
   This is a multi-line comment
@JettIsOnTheNet
JettIsOnTheNet / github_cheatsheet.md
Created July 19, 2023 03:45
Github Cheat Sheet

GitHub Cheat Sheet

Basic Git Commands:

  1. Initialize a repository:

    git init
    
  2. Clone a repository:

Conda Cheat Sheet

About Conda

Conda is an open-source package management and environment management system that helps you install, manage, and organize packages and their dependencies. Conda allows you to create isolated environments for different projects, each with its own set of packages and dependencies, helping to avoid conflicts and ensure reproducibility.

Getting out of the way some quick nomenclature and differences.

  • Conda:
    • Conda is essentially the package manager. Your new best friend. It can be invoked by calling the command conda.
@JettIsOnTheNet
JettIsOnTheNet / How_to_Enable_Hibernation_on_Linux_using_LVM_Disk_Encryption.md
Last active March 6, 2024 04:36
How to Enable Hibernation on Linux with LVM Disk Encryption

How-To

Enabling Hibernation beyond basic soft suspend is not always straight forward on Linux.

  • Note: Please read these instructions start to finish beforehand.

Depending on your configuration this can require:

  • BIOS update / BIOS settings to be changed
  • Being sure your hardware states are reported and supported in kernel
  • Choosing a proper way to mange sleep functions
  • Choosing how to set up your partitioning or swap file
-- call wezterm API
local wezterm = require 'wezterm'
local config = {}
-- newer version of wezterm use the config_builder
if wezterm.config_builder then
config = wezterm.config_builder()
end
# This is a wrapper for the go cmd that will wrap go and add a fuck cmd to go that spits out an insult.
# put the .gofck file in your homedir, then add this line to your .bash_profile or .bashrc
# without the # comment char
#
# [[ -f ~/.gofck ]] && source ~/.gofck
#
# All insult words generated by GPT3. It has a dirty mouth.
declare -a response=(
"No you,"