Skip to content

Instantly share code, notes, and snippets.

View pszponder's full-sized avatar

Piotr Szponder pszponder

View GitHub Profile
@pszponder
pszponder / Rust
Created July 16, 2024 22:53
Rust VSCode Profile
{"name":"Rust","extensions":"[{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc\",\"uuid\":\"69264e4d-cd3b-468a-8f2b-e69673c7d864\"},\"displayName\":\"Catppuccin for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-icons\",\"uuid\":\"625b9abd-dfac-405b-bf34-e65f46e2f22f\"},\"displayName\":\"Catppuccin Icons for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-pack\",\"uuid\":\"27c20910-92b3-4f79-936a-d2e8470376d8\"},\"displayName\":\"Catppuccin Pack\"},{\"identifier\":{\"id\":\"codeium.codeium\",\"uuid\":\"acab4f40-b6db-42ec-bcd1-01802cbdd988\"},\"displayName\":\"Codeium: AI Coding Autocomplete and Chat for Python, Javascript, Typescript, Java, Go, and more\"},{\"identifier\":{\"id\":\"coenraads.disableligatures\",\"uuid\":\"52558343-5a42-4090-b5a2-fa7a47b5ce39\"},\"displayName\":\"Disable Ligatures\"},{\"identifier\":{\"id\":\"gruntfuggly.todo-tree\",\"uuid\":\"261cac81-cd7b-4555-bb41-0c2d2bcd3e70\"},\"displayName\":\"Todo Tree\"},{\"identifier\":{\"id\":\"mhutchie.git-graph\",\"u
@pszponder
pszponder / Python
Last active July 16, 2024 22:54
Python VSCode Profile
{"name":"Python","extensions":"[{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc\",\"uuid\":\"69264e4d-cd3b-468a-8f2b-e69673c7d864\"},\"displayName\":\"Catppuccin for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-icons\",\"uuid\":\"625b9abd-dfac-405b-bf34-e65f46e2f22f\"},\"displayName\":\"Catppuccin Icons for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-pack\",\"uuid\":\"27c20910-92b3-4f79-936a-d2e8470376d8\"},\"displayName\":\"Catppuccin Pack\"},{\"identifier\":{\"id\":\"charliermarsh.ruff\",\"uuid\":\"c2ca9b43-fa38-44fc-928e-5125970b9c00\"},\"displayName\":\"Ruff\"},{\"identifier\":{\"id\":\"codeium.codeium\",\"uuid\":\"acab4f40-b6db-42ec-bcd1-01802cbdd988\"},\"displayName\":\"Codeium: AI Coding Autocomplete and Chat for Python, Javascript, Typescript, Java, Go, and more\"},{\"identifier\":{\"id\":\"coenraads.disableligatures\",\"uuid\":\"52558343-5a42-4090-b5a2-fa7a47b5ce39\"},\"displayName\":\"Disable Ligatures\"},{\"identifier\":{\"id\":\"gruntfuggly.todo-tree\",\"uuid
@pszponder
pszponder / JS
Last active July 16, 2024 22:54
JavaScript VSCode Profile
{"name":"JS","extensions":"[{\"identifier\":{\"id\":\"biomejs.biome\",\"uuid\":\"2c992d35-3965-4369-856e-fdfbb0af2ce2\"},\"displayName\":\"Biome\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc\",\"uuid\":\"69264e4d-cd3b-468a-8f2b-e69673c7d864\"},\"displayName\":\"Catppuccin for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-icons\",\"uuid\":\"625b9abd-dfac-405b-bf34-e65f46e2f22f\"},\"displayName\":\"Catppuccin Icons for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-pack\",\"uuid\":\"27c20910-92b3-4f79-936a-d2e8470376d8\"},\"displayName\":\"Catppuccin Pack\"},{\"identifier\":{\"id\":\"codeium.codeium\",\"uuid\":\"acab4f40-b6db-42ec-bcd1-01802cbdd988\"},\"displayName\":\"Codeium: AI Coding Autocomplete and Chat for Python, Javascript, Typescript, Java, Go, and more\"},{\"identifier\":{\"id\":\"coenraads.disableligatures\",\"uuid\":\"52558343-5a42-4090-b5a2-fa7a47b5ce39\"},\"displayName\":\"Disable Ligatures\"},{\"identifier\":{\"id\":\"gruntfuggly.todo-tree\",\"uuid\":\"261
@pszponder
pszponder / GO
Last active July 16, 2024 22:55
Golang VSCode Profile
{"name":"GO","extensions":"[{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc\",\"uuid\":\"69264e4d-cd3b-468a-8f2b-e69673c7d864\"},\"displayName\":\"Catppuccin for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-icons\",\"uuid\":\"625b9abd-dfac-405b-bf34-e65f46e2f22f\"},\"displayName\":\"Catppuccin Icons for VSCode\"},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-pack\",\"uuid\":\"27c20910-92b3-4f79-936a-d2e8470376d8\"},\"displayName\":\"Catppuccin Pack\"},{\"identifier\":{\"id\":\"codeium.codeium\",\"uuid\":\"acab4f40-b6db-42ec-bcd1-01802cbdd988\"},\"displayName\":\"Codeium: AI Coding Autocomplete and Chat for Python, Javascript, Typescript, Java, Go, and more\"},{\"identifier\":{\"id\":\"coenraads.disableligatures\",\"uuid\":\"52558343-5a42-4090-b5a2-fa7a47b5ce39\"},\"displayName\":\"Disable Ligatures\"},{\"identifier\":{\"id\":\"golang.go\",\"uuid\":\"d6f6cfea-4b6f-41f4-b571-6ad2ab7918da\"},\"displayName\":\"Go\"},{\"identifier\":{\"id\":\"gruntfuggly.todo-tree\",\"uuid\":\"261cac81-c
@pszponder
pszponder / Default
Last active July 16, 2024 22:52
Default VSCode Profile
{"name":"Default","settings":"{\"settings\":\"{\\n // =============================================\\n // ================ GENERAL ====================\\n // =============================================\\n \\\"breadcrumbs.enabled\\\": true,\\n \\\"zenMode.hideLineNumbers\\\": false,\\n \\\"files.trimTrailingWhitespace\\\": true,\\n \\\"security.workspace.trust.untrustedFiles\\\": \\\"open\\\",\\n \\\"workbench.sideBar.location\\\": \\\"right\\\",\\n\\n // =============================================\\n // ================ EDITOR =====================\\n // =============================================\\n \\\"editor.fontSize\\\": 16,\\n \\\"editor.fontFamily\\\": \\\"'Cascadia Code NF', 'Liga ComicCode Nerd Font', SymbolsNerdFont\\\",\\n \\\"editor.fontLigatures\\\": \\\"'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08', 'calt', 'dlig', 'liga'\\\",\\n \\\"editor.lineNumbers\\\": \\\"relative\\\",\\n \\\"editor.renderWhitespace\\\": \\\"boundary\\\",\\n \\\"editor.wordWrap\\\": \
@pszponder
pszponder / Makefile
Last active July 16, 2024 03:27
Python Makefile using pip
.ONESHELL:
# Define variables
VENV := .venv
BIN := $(VENV)/bin
PIP := $(BIN)/pip
PYTHON := $(BIN)/python
ACTIVATE := . ./$(BIN)/activate
APP := src/main.py
DOCKER_TAG := project_name # Change to your project name
@pszponder
pszponder / Makefile
Created July 13, 2024 20:09
Python Makefile using uv
.ONESHELL:
# Define variables
VENV := .venv
BIN := $(VENV)/bin
PIP := $(BIN)/pip
PYTHON := $(BIN)/python
ACTIVATE := . ./$(BIN)/activate
APP := src/main.py
DOCKER_TAG := project_name # Change to your project name
@pszponder
pszponder / Dockerfile
Created January 25, 2024 05:50 — forked from usr-ein/Dockerfile
Optimal multistaged Dockerfile for poetry
# syntax=docker/dockerfile:1
# Keep this syntax directive! It's used to enable Docker BuildKit
# Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865
# but I try to keep it updated (see history)
################################
# PYTHON-BASE
# Sets up all our shared environment variables
################################
@pszponder
pszponder / init.sh
Created December 18, 2023 04:00
Shell script to initialize a go project. To run, type chmod + x init.sh && ./init.sh
#!/usr/bin/env bash
# This script will create a new Golang project with a Makefile and some basic directories and files.
# It will also initialize a Git repository and make an initial commit.
# Use this script by running the following command: chmod +x init.sh && ./init.sh
# Get user input for the module path
read -p "Enter the module path (e.g., github.com/<username>/<project-name>): " module_path
# Create project directories
@pszponder
pszponder / Makefile
Last active December 18, 2023 03:50
Makefile for Go Project
# Makefile
# https://www.alexedwards.net/blog/a-time-saving-makefile-for-your-go-projects
# https://earthly.dev/blog/golang-makefile/
# target: dependencies
# action
# Variables
BINARY_DIR = ./bin
CMD_DIR = ./cmd