1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

Compare commits

...

2 commits

Author SHA1 Message Date
Hyacinthe Cartiaux
83a07d7cd2 [bash] bash_aliases - archlinux utilities 2024-10-18 01:36:20 +02:00
Hyacinthe Cartiaux
eaddde259d [ssh] Custom configuration for my lab 2024-10-18 01:26:46 +02:00
2 changed files with 36 additions and 5 deletions

View file

@ -121,6 +121,24 @@ g5kpass() {
# Archlinux utils
# ----------------------------------------------------------------------
sysupd() {
reflector --ipv6 -c de,fr,nl,lu -p https -n 30 -l 30 | sudo tee /etc/pacman.d/mirrorlist
yay -Syu $*
}
sysclean() {
pacman -Qtdq | xargs -I {} sudo pacman -Rns {}
yes | sudo pacman -Scc
}
pkgbuild_up() {
[[ ! -f PKGBUILD ]] && exit 1
version=$1
sed -i "s/^pkgver=.*$/pkgver=$VERSION/" PKGBUILD
updpkgsums
makepkg --printsrcinfo >! .SRCINFO
}
pkgbuild_chroot() {
[[ ! -f PKGBUILD ]] && exit 1
CHROOT=~/chroot
@ -128,3 +146,9 @@ pkgbuild_chroot() {
mkarchroot "$CHROOT/root" base-devel
makechrootpkg -c -r "$CHROOT"
}
pkgbuild_commit() {
[[ ! -f PKGBUILD ]] && exit 1
version=$1
git commit -m "Update to $VERSION"
}

View file

@ -1,9 +1,16 @@
########
## Nas
########
Host disco
User admin
Port 143
Hostname 192.168.1.40
Port 143
Host srv.nbsdn ns1.nbsdn
Hostname ns1.nbsdn.fr.eu.org
ProxyCommand none
Host boxybsd1.nbsdn ns2.nbsdn
Hostname ns2.nbsdn.fr.eu.org
ProxyCommand none
Host *.nbsdn
User hcartiaux
Port 222
ProxyCommand ssh srv.nbsdn -W `basename %h .nbsdn`.nbsdn.fr.eu.org:%p