1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-12-01 16:48:57 +00:00

bin: leaner mc, leaner arista functions, fix doas

This commit is contained in:
Phantop 2024-12-11 18:06:56 -05:00
parent d47e417ec0
commit 64803550b3
5 changed files with 13 additions and 11 deletions

View file

@ -1,6 +1,6 @@
# Maintainer: phantop <phantop@tuta.io>
pkgname=dwarfs-universal
pkgver=0.10.1
pkgver=0.10.2
pkgrel=1
pkgdesc='A fast high compression read-only file system (pre-compiled binaries)'
url='https://github.com/mhx/dwarfs'

View file

@ -139,12 +139,12 @@ a lint 'a git lint'
a lunch 'gb launch --schedule build --testing full'
a pb 'curl -F c=@- pb/'
a pydt 'dt pyshell'
a reagent 'echo "edut.restartAgent(\'$argv\')" | pydt'
a revfiles 'curl -L reviewboard/r/$argv/diff | grep dest_ | sed -e "s/ /{/" -e "s/,$/}/" | jq -r .files[].dest_filename;:'
a reagent 'echo "edut.restartAgent(\'$argv\')" | pydt;:'
a revfiles 'curl -L reviewboard/r/$argv/diff/raw | cut -f1 | sed -n "s|+++ |/|p";:'
a san 'dt sa -p eos-trunk'
a rebase 'gb update --sync --rebase'
a san 'dt sa -p eos-trunk'
a tcam 'echo "edut.setTcamProfile(\'$argv\')" | pydt'
a tcam 'echo "edut.setTcamProfile(\'$argv\')" | pydt;:'
for i in (cut -d ' ' -f1 < ~/.config/qutebrowser/quickmarks)
a $i "qutebrowser / \":open $i\""
@ -156,3 +156,4 @@ for i in bandcamp-downloader deemix encodec eventeditor git-sim lightnovel-crawl
end
a in2csv 'pipx run --spec csvkit in2csv'
a mathics 'pipx run --spec mathics-django mathicsserver'
a jitios 'sudo pipx run SideJITServer'

View file

@ -1,13 +1,12 @@
#!/bin/sh
if mkdir indexes; then
if mkdir objects indexes; then
d=$(curl https://piston-meta.mojang.com/mc/game/version_manifest.json | jq -r .versions[0].url)
curl --output-dir indexes -O "$(curl "$d" | jq -r .assetIndex.url)"
cat indexes/*.json | jq -r '.objects[].hash|"https://resources.download.minecraft.net/\(.[:2])/\(.)"' | xargs aria2c -d objects -Z
curl "$(curl "$d" | jq -r .assetIndex.url)" > indexes/index.json
jq -r '.objects[].hash|"https://resources.download.minecraft.net/\(.[:2])/\(.)"' indexes/index.json | xargs aria2c -d objects -Z
( echo "cd objects"; printf "mkdir %02x; mv %02x* %02x\n" $(seq 0 255 | sed 'p;p') ) | sh
curl "$d" | jq .libraries[].downloads.artifact.url | grep -vE 'windows|macos' | xargs aria2c -d objects -Z
curl "$d" | jq .downloads.client.url | xargs aria2c -d objects -Z
curl "$d" | jq .libraries[].downloads.artifact.url,.downloads.client.url | xargs aria2c -d objects -Z
d=$(curl "https://meta.fabricmc.net/v2/versions/loader/$(curl "$d" | jq -r .id)" | jq -r '.[0]|.launcherMeta.libraries.common[].name,(.loader,.intermediary).maven')
echo "$d" | sed -E ':b;s|\.(.*:)|/\1|;tb; s|(.*):(.*):(.*)|https://maven.fabricmc.net/\1/\2/\3/\2-\3.jar|' | xargs aria2c -d objects -Z
fi
java -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Xms1G -Xmx8G\
-cp 'objects/*' net.fabricmc.loader.impl.launch.knot.KnotClient --version . --assetsDir . --assetIndex "$(basename indexes/*.json .json)" --accessToken 0 "$@"
-cp 'objects/*' net.fabricmc.loader.impl.launch.knot.KnotClient --assetsDir . --assetIndex index --accessToken 0 "$@"

View file

@ -5,6 +5,7 @@ if command -v doas; then
alias s='doas'
fi
echo permit nopass :wheel | s tee /etc/doas.conf
s pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
s pacman-key --lsign-key 3056513887B78AEB
p -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
@ -13,7 +14,6 @@ s pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0
p -U 'https://pkg.devkitpro.org/devkitpro-keyring.pkg.tar.xz'
t /etc/pacman.conf < ~/.dotfiles/arch/pacman.conf
echo permit nopass :wheel | t /etc/doas.conf
p -Syu
#shellcheck disable=SC2046
p -S --needed $(grep -v devkit ~/.dotfiles/arch/packages)
@ -34,6 +34,7 @@ stow --no-folding -d ~/.dotfiles -t ~/.config .
~/.dotfiles/bin/config.fish
s chsh -s "$(grep -m1 bin/fish /etc/shells)" "$USER"
s usermod -aG input "$USER"
echo permit :wheel | s tee /etc/doas.conf
w https://github.com/dracula/kitty/raw/master/dracula.conf -P ~/.config/kitty
w https://github.com/dracula/musikcube/raw/main/dracula.json -P ~/.config/musikcube/themes

View file

@ -9,6 +9,7 @@ c.url.searchengines['g'] = 'github.com/search?q={}'
c.url.searchengines['l'] = 'farside.link/librey/search.php?q={}'
c.url.searchengines['l'] = 'librey.fly.dev/search.php?q={}'
c.url.searchengines['m'] = 'search.marginalia.nu/search?query={}'
c.url.searchengines['mf'] = 'minifocs.fly.dev/search?q={}'
c.url.searchengines['mw'] = 'mwmbl.org/?q={}'
c.url.searchengines['s'] = 'farside.link/searxng/search?q={}'
c.url.searchengines['stract'] = 'stract.com/search?q={}'