Skip to content

Instantly share code, notes, and snippets.

View JettIsOnTheNet's full-sized avatar
💭
🕶️

Jett Sjöberg JettIsOnTheNet

💭
🕶️
View GitHub Profile
@JettIsOnTheNet
JettIsOnTheNet / sjmcg.py
Last active September 14, 2024 20:38
Software Job Market Comparison Graph
import pandas as pd
import matplotlib.pyplot as plt
# load
# https://fred.stlouisfed.org/series/IHLIDXUSTPHUMARESO
df_hr = pd.read_csv('IHLIDXUSTPHUMARESO.csv', parse_dates=['DATE'])
# https://fred.stlouisfed.org/series/IHLIDXUSTPSOFTDEVE
df_software = pd.read_csv('IHLIDXUSTPSOFTDEVE.csv', parse_dates=['DATE'])
# https://fred.stlouisfed.org/series/IHLIDXUSTPPROJMANA
df_pm = pd.read_csv('IHLIDXUSTPPROJMANA.csv', parse_dates=['DATE'])
@JettIsOnTheNet
JettIsOnTheNet / full_plot.py
Created August 8, 2024 04:21
Python scripts that generate charts for Income vs Housing Cost in the United States via FRED 1984-2022
import pandas as pd
import matplotlib.pyplot as plt
data1 = pd.read_csv('MEHOINUSA646N.csv')
data2 = pd.read_csv('ASPUS.csv')
data1['DATE'] = pd.to_datetime(data1['DATE'])
data2['DATE'] = pd.to_datetime(data2['DATE'])
fig, ax1 = plt.subplots(figsize=(12, 6))
ax1.plot(data1['DATE'], data1['MEHOINUSA646N'], label='Median Household Income', color='blue')
@JettIsOnTheNet
JettIsOnTheNet / sus.js
Last active July 10, 2024 01:47
sksksksks
function yeet(error) {
throw error;
}
const drag = {
log: (...args) => console.log(...args),
error: (...args) => console.error(...args),
warn: (...args) => console.warn(...args),
info: (...args) => console.info(...args)
};
@JettIsOnTheNet
JettIsOnTheNet / up_to_speed.go
Created June 17, 2024 15:18
Syntax example scan sheet for Golang.
// Go scan sheet / Cheat Sheet
// main package
package main
// imports
import (
"fmt"
"io/ioutil"
"os"
# 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,"
-- 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
@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

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 / 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:

@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