Skip to content

Instantly share code, notes, and snippets.

View LucasPlacentino's full-sized avatar
💡
Learning FPGAs⚡, PCB design 📟 , Rust 🦀 and FP *️⃣

ticccco LucasPlacentino

💡
Learning FPGAs⚡, PCB design 📟 , Rust 🦀 and FP *️⃣
View GitHub Profile
@joeycastillo
joeycastillo / parser.py
Created November 18, 2022 16:47
Twitter Archive Parser, tweaked to generate a page for every tweet
#!/usr/bin/env python3
"""
twitter-archive-parser - Python code to parse a Twitter archive and output in various ways
Copyright (C) 2022 Tim Hutton
Tweaks copyright (C) 2022 Joey Castillo
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@LucasPlacentino
LucasPlacentino / config.toml
Created November 20, 2022 21:32
Around 2x faster Rust build times with sccache compiler caching, setting in ~/.cargo/config.toml
# compiler caching tool for improved Rust build times
# in ~/.cargo/config.toml (or individual project's .cargo/config.toml)
[build]
rustc-wrapper = "sccache"
# around 2x faster Rust build times when used
# see https://twitter.com/0atman/status/1590118756226805762
# https://github.com/mozilla/sccache
@ChampionAsh5357
ChampionAsh5357 / 1192-1193-primer.md
Last active February 20, 2025 04:47
Minecraft 1.19.2 -> 1.19.3 Mod Migration Primer

Minecraft 1.19.2 -> 1.19.3 Mod Migration Primer

This is a high level, non-exhaustive overview on how to migrate your mod from 1.19.2 to 1.19.3 using Forge.

This primer is licensed under the Creative Commons Attribution 4.0 International, so feel free to use it as a reference and leave a link so that other readers can consume the primer.

If there's any incorrect or missing information, please leave a comment below. Thanks!

Feature Flags

@ChampionAsh5357
ChampionAsh5357 / 1193-1194-primer.md
Last active February 20, 2025 04:47
Minecraft 1.19.3 -> 1.19.4 Mod Migration Primer

Minecraft 1.19.3 -> 1.19.4 Mod Migration Primer

This is a high level, non-exhaustive overview on how to migrate your mod from 1.19.3 to 1.19.4 using Forge.

This primer is licensed under the Creative Commons Attribution 4.0 International, so feel free to use it as a reference and leave a link so that other readers can consume the primer.

If there's any incorrect or missing information, please leave a comment below. Thanks!

Pack Changes

@ChampionAsh5357
ChampionAsh5357 / 1194-120-primer.md
Last active June 22, 2025 13:23
Minecraft 1.19.4 -> 1.20 Mod Migration Primer

Minecraft 1.19.4 -> 1.20 Mod Migration Primer

This is a high level, non-exhaustive overview on how to migrate your mod from 1.19.4 to 1.20 using Forge.

This primer is licensed under the Creative Commons Attribution 4.0 International, so feel free to use it as a reference and leave a link so that other readers can consume the primer.

If there's any incorrect or missing information, please leave a comment below. Thanks!

Pack Changes

@luigiMinardi
luigiMinardi / tex-colors.md
Last active September 28, 2026 19:47
Github markdown colors (Using Tex and the github MathJax support)

Small warning for everyone that are thinking if using Tex colors is a good idea or not

  • 2023-05-02 - Since a few days ago \colorbox and \fcolorbox are broken and Github did't talk about if it's a temporary thing or if it will not be added back.
    • 2024-01-04 - Since it has not being added back I deduce that it will never be so I removed all mentions to it on the rest of the gist.
  • 2023-09-29 - Tex seems to not work on h1 to h6 anymore (markdown #'s)
    • 2024-01-04 - Now it works again, I'll keep the message for a while to remember that it may change again in the future

As you can se with the above message(s) Tex may not be very stable and may not be an option to you as of the dates expressed above. You can also check other tex problems here.

Github released Tex support and colors* to the markdown and you din't realized

@AmyJeanes
AmyJeanes / GitHubCopilotCLIAlias.ps1
Last active August 15, 2024 23:41
Alias commands to use GitHub Copilot CLI in PowerShell
# You should insert this script into your PowerShell Profile script so it exists in every session
# Fun fact: This script was mostly generated by ChatGPT by giving it the bash version of the output
# from `github-copilot-cli alias -- "$0"` with a few fixes from me
function Invoke-CopilotWhatTheShell {
$TMPFILE = New-TemporaryFile;
try {
github-copilot-cli what-the-shell $args --shellout $TMPFILE
if ($LASTEXITCODE -eq 0) {
@LucasPlacentino
LucasPlacentino / MotionWarn.ino
Last active December 3, 2024 19:13 — forked from mmarquez76/MotionWarn.ino
Flash WiZ-connected light bulbs when a motion sensor is tripped using Arduino
// for details about wiz local control, see:
// https://aleksandr.rogozin.us/blog/2021/8/13/hacking-philips-wiz-lights-via-command-line
/*
Motion-Sensing Warning Lights
This sketch will wait for a high input on D2 from the PIR motion
sensor, and then flash WiFi-connected lights to alert the room.
Circuit:
@LucasPlacentino
LucasPlacentino / docker-compose.yml
Last active September 12, 2026 15:25
PufferPanel ARM64 docker-compose file
version: '3'
services:
pufferpanel:
image: ghcr.io/oskardotglobal/pufferpanel:arm64
#build: .
container_name: pufferpanel
restart: on-failure
environment:
- 'PUFFER_LOGS=/etc/pufferpanel/logs' # Location of your logs
@LucasPlacentino
LucasPlacentino / main.py
Created July 21, 2023 21:28
Waveshare 2.13inch Touch e-Paper HAT (with or without case) example (from Waveshare)
#!/usr/bin/python
# -*- coding:utf-8 -*-
# GET THE LIB AND PIC FILES FROM WAVESHARE
import sys
import os
picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic')
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib')
if os.path.exists(libdir):