Skip to content

Instantly share code, notes, and snippets.

View lmarcondes's full-sized avatar

Lucas Marcondes lmarcondes

  • Sao Paulo
  • 21:14 (UTC -03:00)
View GitHub Profile
@lmarcondes
lmarcondes / archworkstation-lucas.aur.pacmanity
Last active August 7, 2023 13:30
archworkstation-lucas: List of installed packages
ananicy
apple-fonts
blender-benchmark
bluez-utils-compat
bottles
budgie-screenshot-applet
caffeine-ng
camorama
catppuccin-gtk-theme-mocha
catppuccin-mocha-dark-cursors
@lmarcondes
lmarcondes / EndeavourOS.explicit.pacmanity
Last active June 20, 2024 02:49
archtower-lucas: List of installed packages
abseil-cpp
accountsservice
acpi
acpid
adobe-source-han-sans-cn-fonts
adobe-source-han-sans-jp-fonts
adobe-source-han-sans-kr-fonts
adwaita-icon-theme
alsa-firmware
alsa-oss
@lmarcondes
lmarcondes / archworkstation-lucas.explicit.pacmanity
Last active August 5, 2024 12:24
archworkstation-lucas: List of installed packages
accountsservice
acpi
adobe-source-han-sans-cn-fonts
adobe-source-han-sans-jp-fonts
adobe-source-han-sans-kr-fonts
akonadi
akonadi-import-wizard
alsa-firmware
alsa-plugins
alsa-utils
@lmarcondes
lmarcondes / podman-gh-login.sh
Created February 19, 2024 13:50
podman login to github container repo
gh auth token | podman login ghcr.io -u [email protected] --password-stdin
import math
import sys
from typing import Optional
class LaunchConfig:
def __init__(
self,
theta: float,
total_length: float,
import json
from typing import List
def run(args: List[str]):
filename = args[0]
with open(filename, "r") as f:
data = json.loads(f.read())
original_entries = data['items']
#!/bin/env python
from datetime import datetime
from openai import OpenAI
from argparse import ArgumentParser
import json
from pathlib import Path
from base64 import b64decode
from openai.types.image import Image
import requests
magick image.png -alpha off -resize 256x256 \
-define icon:auto-resize="256,128,96,64,48,32,16" \
favicon.ico
export DIR=-dsajn
export DIR2=$(echo $DIR | sed 's/[^a-zA-Z0-9]//g')
mdadm --add /<dev>
mdadm --grow --raid-devices=n <raid-device>
# Growpart will make the partition occuppy all the space
# on the device. This is very fast in XFS or RAID
growpart <partition>
# xfs_growfs will grow the filesystem to the max partition size
xfs_growfs -d <mountpoint>