Skip to content

Instantly share code, notes, and snippets.

@dariocurr
dariocurr / create_labels.py
Created March 12, 2024 11:20
Create a set of labels in every existing repository for a set of users
import requests
# write permissions for issues and pull requests, read for metadata
TOKEN: str = "<your GH token>"
LABELS: set[tuple[str, str, str]] = {
(
"<your new label name>",
"<your new label description>",
@dariocurr
dariocurr / alias
Last active November 7, 2025 15:34
Just some time-saving-time aliases
## linux
alias clr='clear'
alias aptup='sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt clean'
alias brewup='brew update && brew upgrade && brew cleanup'
## docker
alias docker-stop='docker stop $(docker ps -a -q)'
alias docker-remove='docker-stop && docker rm $(docker ps -a -q)'
alias docker-downup='docker compose down && docker compose up'
alias docker-remove-untagged-images='docker rmi $(docker images --filter "dangling=true" -q --no-trunc)'
@dariocurr
dariocurr / .zshrc
Last active March 7, 2025 23:13
zsh
# load color parsing
setopt PROMPT_SUBST
autoload -U colors
# load antigen
source $HOME/.antigen/antigen.zsh
# load the oh-my-zsh's library
antigen use oh-my-zsh