cleanup
This commit is contained in:
parent
5a6ec6f75c
commit
fd6def1ae1
@ -26,7 +26,7 @@ bat() {
|
|||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
TERM='tty' $EDITOR --cmd "set lines=$(grep -c '' "$1")" +redraw +q "$1"
|
TERM='tty' $EDITOR --cmd "set lines=$(wc -l "$1")" +redraw +q "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
bd() {
|
bd() {
|
||||||
@ -96,9 +96,8 @@ alias -- \
|
|||||||
sudo='sudo ' \
|
sudo='sudo ' \
|
||||||
vi='$EDITOR' \
|
vi='$EDITOR' \
|
||||||
watch='watch -c ' \
|
watch='watch -c ' \
|
||||||
waydroid='cage -- waydroid' \
|
|
||||||
xargs='xargs ' \
|
xargs='xargs ' \
|
||||||
xmr='monero-wallet-cli --daemon-address monero.maby.dev:18081 --trusted-daemon --log-file=/tmp/monero-wallet-cli.log --wallet-file $XDG_CONFIG_HOME/monero/ange'
|
xmr='monero-wallet-cli --daemon-address monero.maby.dev:18081 --trusted-daemon --log-file="$XDG_STATE_HOME/monero.log" --wallet-file "$XDG_DATA_HOME/monero/ange"'
|
||||||
|
|
||||||
. /usr/share/git/completion/git-completion.bash
|
. /usr/share/git/completion/git-completion.bash
|
||||||
$(complete -p git) g c
|
$(complete -p git) g c
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
# vim: tabstop=8 nowrap
|
# vim: tabstop=8 nowrap
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
https://www.seek.com.au/devops-jobs/remote?worktype=245%2C244
|
|
||||||
https://www.sncf-connect.com/app/catalogue/description/carte-avantage-jeune
|
|
||||||
https://anubis.techaro.lol/docs/admin/installation
|
https://anubis.techaro.lol/docs/admin/installation
|
||||||
https://wiki.nftables.org/wiki-nftables/index.php/Scripting
|
|
||||||
https://tech.yahoo.com/articles/mozilla-vpns-per-controls-too-182238290.html
|
https://tech.yahoo.com/articles/mozilla-vpns-per-controls-too-182238290.html
|
||||||
https://help.gnome.org/users/zenity/stable/notification.html.en
|
https://help.gnome.org/users/zenity/stable/notification.html.en
|
||||||
https://serverfault.com/questions/1150627/bind9-behind-nginx-reverse-proxy-doh/1168780#1168780
|
|
||||||
https://www.grepular.com/Automatically_Encrypting_all_Incoming_Email
|
https://www.grepular.com/Automatically_Encrypting_all_Incoming_Email
|
||||||
https://www.grepular.com/Protecting_a_Laptop_from_Simple_and_Sophisticated_Attacks
|
https://www.grepular.com/Protecting_a_Laptop_from_Simple_and_Sophisticated_Attacks
|
||||||
https://www.rtcsec.com/article/slack-webrtc-turn-compromise-and-bug-bounty
|
|
||||||
|
|
||||||
|
|
||||||
comm/discord https://discord.com/app
|
comm/discord https://discord.com/app
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -eu
|
||||||
set -e
|
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
for d in */; do
|
for d in */; do
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -e
|
||||||
|
|
||||||
dkr() {
|
dkr() {
|
||||||
local ep="$1"; shift
|
local shell="$1"; shift
|
||||||
|
|
||||||
(set -x
|
(set -x
|
||||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ --entrypoint "$ep" \
|
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ --entrypoint "$shell" \
|
||||||
"$img" "$@"
|
"$img" "$@"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,7 @@ audio=(
|
|||||||
-i default
|
-i default
|
||||||
)
|
)
|
||||||
|
|
||||||
ffmpeg \
|
ffmpeg -framerate 30 \
|
||||||
-framerate 10 \
|
|
||||||
"${video[@]}" \
|
"${video[@]}" \
|
||||||
"${audio[@]}" \
|
"${audio[@]}" \
|
||||||
"$output"
|
"$output"
|
||||||
|
@ -14,7 +14,6 @@ if ! [ -r "$in" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
#ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smallside,setpts=0.5*PTS" "$@" "$out"
|
#ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smallside,setpts=0.5*PTS" "$@" "$out"
|
||||||
ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smallside" "$@" "$out"
|
ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smallside" "$@" "$out"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -eu
|
||||||
|
|
||||||
i3lock -ftni "$XDG_CONFIG_HOME/wallpapers/lock.png"
|
i3lock -ftni "$XDG_CONFIG_HOME/wallpapers/lock.png"
|
||||||
|
@ -1,28 +1,35 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -eu
|
||||||
|
|
||||||
ISO="$1"
|
getmaxram() {
|
||||||
|
local ram; ram="$(free -g | awk '/^Mem:/{print $2 - 2}')"
|
||||||
|
|
||||||
|
if [ "$ram" -le 2 ]; then ram=2
|
||||||
|
elif [ "$ram" -gt 32 ]; then ram=32; fi
|
||||||
|
echo "${ram}G"
|
||||||
|
}
|
||||||
|
|
||||||
|
ISO="$1"; shift
|
||||||
DISK="$HOME/${ISO%.*}.qcow2"
|
DISK="$HOME/${ISO%.*}.qcow2"
|
||||||
MAXMEM="$(free -g | awk '/^Mem:/{print $6 / 2}')G"
|
MAXMEM="$(getmaxram)"
|
||||||
OVMF_CODE=/usr/share/edk2/x64/OVMF_CODE.4m.fd
|
|
||||||
OVMF_VARS=/tmp/OVMF_VARS.4m.fd
|
|
||||||
|
|
||||||
set -x
|
if ! [ -f "$DISK" ]; then (set -x
|
||||||
if [ -f "$OVMF_VARS" ]; then
|
qemu-img create -f qcow2 "$DISK" 64G
|
||||||
cp -f /usr/share/edk2/x64/OVMF_VARS.4m.fd "$OVMF_VARS"
|
) fi
|
||||||
fi
|
(set -x
|
||||||
if ! [ -f "$DISK" ]; then
|
|
||||||
qemu-img create -f qcow2 "$DISK" 20G
|
|
||||||
fi
|
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-accel kvm \
|
-accel kvm \
|
||||||
-M q35 \
|
-M q35 \
|
||||||
|
-bios /usr/share/edk2/x64/OVMF.4m.fd \
|
||||||
-monitor stdio \
|
-monitor stdio \
|
||||||
-cpu host \
|
-cpu host \
|
||||||
-m "2G,maxmem=$MAXMEM" \
|
-m "2G,maxmem=$MAXMEM" \
|
||||||
-vga virtio \
|
-vga virtio \
|
||||||
-audio pipewire,model=hda \
|
-audio pipewire,model=hda \
|
||||||
-nic model=virtio-net-pci,type=user \
|
-nic model=virtio-net-pci,type=user \
|
||||||
-drive "if=pflash,format=raw,file=$OVMF_CODE,readonly=on" \
|
-device qemu-xhci \
|
||||||
-drive "if=pflash,format=raw,file=$OVMF_VARS" \
|
-object "memory-backend-ram,id=mem,size=$ram,share=on" \
|
||||||
|
-numa node,memdev=mem \
|
||||||
-drive "if=virtio,file=$DISK" \
|
-drive "if=virtio,file=$DISK" \
|
||||||
-drive "file=$ISO,media=cdrom,readonly=on"
|
-drive "file=$ISO,media=cdrom,readonly=on" \
|
||||||
|
"$@"
|
||||||
|
)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -eu
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
feh --bg-fill "$(shuf -en1 "$XDG_CONFIG_HOME/wallpapers/"!(lock.png))" --no-fehbg
|
feh --bg-fill "$(shuf -en1 "$XDG_CONFIG_HOME/wallpapers/"!(lock.png))" --no-fehbg
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -eu
|
||||||
|
|
||||||
iwctl=(iwctl station "$(find /sys/class/net/wlan* -printf '%f' -quit)")
|
iwctl=(iwctl station "$(find /sys/class/net/wlan* -printf '%f' -quit)")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user