git clone git@gist.github.com:35b1c2781cd7a782cc521a75731b4040.git
ln -s $(pwd)/disable_automount.sh ~/.local/bin/no-mount
no-mount <DISK_NAME>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# SOURCES | |
# https://superuser.com/questions/393506/can-i-automatically-login-to-ssh-using-passwords-from-os-x-keychain | |
# show description | |
help() { | |
cat <<- DESCRIPTION >&2 | |
Bespoke askpass script for macOS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/lima-vm/lima/blob/master/examples/docker-rootful.yaml | |
--- | |
images: | |
# Hint: run `limactl prune` to invalidate the "current" cache | |
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/40/Cloud/x86_64/images/Fedora-Cloud-Base-Generic.x86_64-40-1.14.qcow2" | |
arch: "x86_64" | |
digest: "sha256:ac58f3c35b73272d5986fa6d3bc44fd246b45df4c334e99a07b3bbd00684adee" | |
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/40/Cloud/aarch64/images/Fedora-Cloud-Base-Generic.aarch64-40-1.14.qcow2" | |
arch: "aarch64" | |
digest: "sha256:ebdce26d861a9d15072affe1919ed753ec7015bd97b3a7d0d0df6a10834f7459" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/lima-vm/lima/blob/master/examples/docker-rootful.yaml | |
--- | |
images: | |
# Hint: run `limactl prune` to invalidate the "current" cache | |
- location: "https://cloud-images.ubuntu.com/releases/24.04/release-20240423/ubuntu-24.04-server-cloudimg-amd64.img" | |
arch: "x86_64" | |
digest: "sha256:32a9d30d18803da72f5936cf2b7b9efcb4d0bb63c67933f17e3bdfd1751de3f3" | |
- location: "https://cloud-images.ubuntu.com/releases/24.04/release-20240423/ubuntu-24.04-server-cloudimg-arm64.img" | |
arch: "aarch64" | |
digest: "sha256:c841bac00925d3e6892d979798103a867931f255f28fefd9d5e07e3e22d0ef22" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lance@fedora:~$ glmark2 | |
======================================================= | |
glmark2 2023.01 | |
======================================================= | |
OpenGL Information | |
GL_VENDOR: AMD | |
GL_RENDERER: AMD Radeon RX 7600M XT (radeonsi, navi33, LLVM 18.1.1, DRM 3.57, 6.8.7-303.fsync.fc40.x86_64) | |
GL_VERSION: 4.6 (Compatibility Profile) Mesa 24.0.5 | |
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0 | |
Surface Size: 800x600 windowed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lance@fedora:~$ glmark2 | |
======================================================= | |
glmark2 2023.01 | |
======================================================= | |
OpenGL Information | |
GL_VENDOR: AMD | |
GL_RENDERER: AMD Radeon Graphics (radeonsi, gfx1103_r1, LLVM 18.1.1, DRM 3.57, 6.8.7-303.fsync.fc40.x86_64) | |
GL_VERSION: 4.6 (Compatibility Profile) Mesa 24.0.5 | |
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0 | |
Surface Size: 800x600 windowed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# SOURCE: https://www.youtube.com/watch?v=xtFo1IiZqzM | |
import pandas as pd | |
from pathlib import Path | |
from tqdm import tqdm | |
fn = Path("../csv/anime_dataset/users-score-2023.csv") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/wei/pull#readme | |
--- | |
version: "1" | |
rules: | |
- base: main | |
upstream: pythoninthegrass:main | |
mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none. | |
mergeUnstable: false # Optional, merge pull request even when the mergeable_state is not clean. Default: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shellcheck disable=all | |
# aliases | |
alias rsync='rsync -arvW --progress --stats --ignore-existing' # archive, recursive, verbose, whole-file | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias c=clear | |
alias ..='cd ../' | |
alias ...='cd ../../' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""SOURCE: https://github.com/pythoninthegrass/python_template/blob/main/boilerplate/qr_gen.py""" | |
import sys | |
from datetime import datetime | |
from pathlib import Path | |
try: | |
from pyqrcode import QRCode |
NewerOlder