Skip to content

Instantly share code, notes, and snippets.

View lateshift's full-sized avatar
📡
ヘ( ̄ー ̄ヘ)

Jens Calisti lateshift

📡
ヘ( ̄ー ̄ヘ)
View GitHub Profile
@lateshift
lateshift / py.md
Last active September 10, 2025 08:00
Python Docker Lab

Dockerfile

FROM python:3.13.6-trixie as python3

ENV DEBIAN_FRONTEND=noninteractive

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
@lateshift
lateshift / config
Last active August 20, 2025 09:03
Ghostty
cursor-style = block
cursor-style-blink = false
cursor-color = #ffff00
font-size = 15
font-family = "JetBrainsMono-Regular"
font-thicken = true
window-save-state = never
shell-integration = zsh
shell-integration-features = sudo,no-cursor
cursor-click-to-move = false
@lateshift
lateshift / genstuff.ts
Created July 22, 2025 09:56
Gen Java classes
// mkdir ./out && bun run --watch genstuff.ts
const upperFirst = (str: string) => str.charAt(0).toUpperCase() + str.substring(1);
const lowerFirst = (str: string) => str.charAt(0).toLowerCase() + str.substring(1);
// prettier-ignore
const prefixes = [
"basementCeiling",
"groundSlab",
"internalDoors",
@lateshift
lateshift / blah.tsx
Created January 21, 2025 14:11
Blah
const chartOptions: EChartsOption = {
series: [
{
type: "gauge",
startAngle: 180,
endAngle: 0,
center: ["50%", "65%"],
radius: "90%",
min: 0,
max: 0.35,
@Component
public class SPHorStacked extends SPVisualizer<SPChart2DataSource> {
private DecimalFormat df = new DecimalFormat("#.##");
private boolean escaped;
private boolean useCss;
/**
* Character in the center of the rectangle
@lateshift
lateshift / config
Last active January 5, 2025 16:16
Ghostty Settings
cursor-style = block
cursor-style-blink = false
cursor-color = #ffff00
font-size = 15
font-family = "JetBrainsMono-Regular"
font-thicken = true
window-save-state = never
shell-integration = fish
shell-integration-features = sudo,no-cursor
cursor-click-to-move = false
@lateshift
lateshift / Default (OSX).sublime-keymap
Last active September 12, 2024 09:17
Sublime Text Keyboard Prefs
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
{ "keys": ["shift+alt+down"], "command": "duplicate_line" },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+tab"], "command": "clone_file", "args": {"add_to_selection": true} },
{ "keys": ["super+b"], "command": "toggle_side_bar" }
@lateshift
lateshift / macos-distribution.md
Created July 26, 2024 07:54 — forked from rsms/macos-distribution.md
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@lateshift
lateshift / dbstuff.py
Created February 1, 2024 15:46
Postgres Comments in Django Model help_text (not just the "db_comment"; necessary for django graphene)
from django.core.management.commands import inspectdb
from django.core.management.base import BaseCommand, CommandError
import keyword
import re
from django.core.management.base import BaseCommand, CommandError
from django.db import DEFAULT_DB_ALIAS, connections
from django.db.models.constants import LOOKUP_SEP