Skip to content

Instantly share code, notes, and snippets.

Avatar
🐶
Working from home

Jorge O. Castro castrojo

🐶
Working from home
View GitHub Profile
View gist:88d8fb745b1484a169ada4ee1d106432
7zip-2301-r1
7zip-doc-2301-r1
aactl-0.4.12-r2
abseil-cpp-20230802.1-r0
abseil-cpp-dev-20230802.1-r0
abseillib-20230802.1-r0
acl-2.3.1-r4
acl-dev-2.3.1-r4
acme.sh-3.0.6-r0
actions-runner-controller-0.5.0-r1
View distrobox.ini
orge@exo:~$ cat /etc/distrobox/distrobox.ini
[ubuntu]
image=ghcr.io/ublue-os/ubuntu-toolbox:latest
init=false
nvidia=true
pull=true
root=false
replace=true
[fedora]
View gist:80f74bad8fadba5c04878aecfaef80cb
[mlbox]
image=nvcr.io/nvidia/pytorch:23.07-py3
additional_packages="nano git htop"
init_hooks="pip3 install huggingface_hub tokenizers transformers accelerate datasets wandb peft bitsandbytes fastcore fastprogress watermark torchmetrics deepspeed xformers"
pre-init-hooks="/init_script.sh"
nvidia=true
pull=true
root=false
replace=true
View gist:8235d3cf076e1d9143668353cd416b71
++ echo 'distrobox: Installing basic packages...'
++ cut -d: -f2-
+ current_line=' Installing basic packages...'
+ grep -q ' Installing basic packages...' /var/home/jorge/.cache/.omg.status
+ printf '\033[32m [ OK ]\n\033[0m%-40s\t' ' Installing basic packages...'
[ OK ]
Installing basic packages... + printf '%s\n' ' Installing basic packages...'
+ IFS=
+ read -r line
+ case "${line}" in
View flathub.py
#!/usr/bin/env python3
import argparse
import requests
ignore_list = {
'flathubbot'
}
def main():
View gist:7064652fc180c01d16d5797a1684ede7
❯ FLEEK_DEBUG=1 fleek apply -a
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/midcobra/debug.go:49: Debug mode enabled.
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/root.go:30: initializing fleek controller
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/fleek.go:89: config found
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/fleek.go:94: config status: Exists
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/fleek.go:96: config isn't none
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/fleek.go:99: validating config
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/fleek.go:125: flake location: /var/home/jorge/.config/home-manager
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/fleek.go:133: flake struct created
[DEBUG] 2023/04/03 15:15:03 /home/runner/work/fleek/fleek/internal/fleekcli/fleek.go:
View gist:619a25c83f3a2fb1300f279e0e1e7c51
+ '[' '!' -f /run/.containerenv ']'
+ grep -q rootless=0 /run/.containerenv
++ id -u
+ '[' 1000 -eq 0 ']'
+ '[' -z libreoffice ']'
+ '[' -n libreoffice ']'
+ '[' -n '' ']'
+ '[' -n libreoffice ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
View gist:6c83c076c06606d84fc47b3d7c75be39
[Unit]
Description=Update the dconf database onboot
Documentation=https://github.com/coreos/rpm-ostree/issues/1944
[Service]
Type=oneshot
ExecStart=/usr/bin/dconf update
[Install]
WantedBy=multi-user.target
View gist:cbc6f1aa12cc02e6fc390f4f71efcf1e
❯ rpm-ostree rebase fedora:fedora/36/x86_64/silverblue
⠓ Receiving objects; 99% (19881/19992) 10.6 MB/s 777.3 MB
Receiving objects; 99% (19881/19992) 10.6 MB/s 777.3 MB... done
Checking out tree 8e68c41... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora tailscale-stable updates-archive
Updating metadata for 'fedora-cisco-openh264'... done
Updating metadata for 'updates'... done
Updating metadata for 'fedora'... done
Updating metadata for 'tailscale-stable'... done
Updating metadata for 'updates-archive'... done
View gist:161b316df7095c0d3a0f1de963fc3117
mkdir -p docs/source/aws/resources
c7n-sphinxext --provider aws --output-dir docs/source/aws/resources --group-by=resource_type.service
Traceback (most recent call last):
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_sphinxext/docgen.py", line 252, in main
_main(provider, output_dir, group_by)
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_sphinxext/docgen.py", line 295, in _main
env = init(provider)
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_sphinxext/docgen.py", line 222, in init
load_resources()
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n/resources/__init__.py", line 20, in load_resources