Skip to content

Instantly share code, notes, and snippets.

View dominicusin's full-sized avatar

dominicusin dominicusin

View GitHub Profile
cd /mnt/root/usr;tar -cpf - .|tar -C /mnt/Data/sys/usr -xpvf -
/usr/bin/apt --install-suggests --install-recommends --autoremove --purge -fmy --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages --fix-missing --fix-broken --ignore-hold --show-progress --option DPkg::Options::="--force-all" --option DPkg::Options::="--force-confnew" -t experimental --reinstall --update full-upgrad
@dominicusin
dominicusin / 00-ubuntu.sources apt-fast.sources sublime.sources
Last active February 7, 2024 20:42
/etc/apt/sources.list.d/00-ubuntu.sources apt-fast.sources sublime.sources
Enabled: yes
Types: deb deb-src
URIs: https://mirrors.edge.kernel.org/ubuntu/ mirror://mirrors.ubuntu.com/mirrors.txt
Suites: noble noble-updates noble-security noble-proposed noble-backports devel-backports devel-proposed devel-security devel-updates devel
Components: main multiverse restricted universe
Signed-By: /usr/share/keyrings/ubuntu-master-keyring.gpg /usr/share/keyrings/ubuntu-archive-keyring.gpg
X-Repolib-Name: "Ubuntu Sources"
Architectures: amd64 i386
By-Hash: force
Check-Valid-Until: yes
@dominicusin
dominicusin / Debian.sources
Last active March 4, 2024 03:58
/etc/apt/sources.list.d/Debian.sources
Enabled: yes
Types: deb deb-src
URIs: https://deb.debian.org/debian https://httpredir.debian.org/debian https://cdn-fastly.deb.debian.org/debian
Suites: trixie-backports trixie-proposed-updates trixie-updates trixie experimental proposed-updates rc-buggy testing-backports testing-proposed-updates testing-updates testing
# Suites: experimental proposed-updates rc-buggy sid testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie
# Suites: bookworm-backports-sloppy bookworm-backports bookworm-proposed-updates bookworm-updates bookworm experimental proposed-updates rc-buggy sid stable-backports-sloppy stable-backports stable-updates stable testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie unstable
# Debian10.13 Debian11.7 Debian12.1 bookworm-backports-sloppy bookworm-backports bookworm-proposed-updates bookworm-updates bookworm bullseye-backports-sloppy bul
find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12
lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm'
@dominicusin
dominicusin / devuan
Last active September 4, 2023 22:58
devuan
http://deb.devuan.org/devuan/pool/main/d/devuan-keyring/
apt install ./devuan-keyring
debootstrap --verbose --arch=arm64 --variant=minbase --force-check-gpg --components=main,contrib,non-free,non-free-firmware --extra-suites=6.0,ceres,daedalus,daedalus-backports,daedalus-proposed-updates,daedalus-security,daedalus-updates,excalibur,stable,stable-backports,stable-proposed-updates,stable-security,stable-updates,testing,unstable --include=vim,openssh-server,ntpdate,sudo,ifupdown,net-tools,udev,iputils-ping,wget,dosfstools,unzip,binutils,libatomic,mc,htop,most,mosh,screen,tmux,locales,dialog,aptitude,apt,apt-file,tasksel,debootstrap daedalus /mnt/Data/sys/sublin/devuan http://deb.devuan.org/merged/
mount /dev/sda21 -t btrfs -o subvol=sys/sublin/alpine /mnt/alpine/
/bin/systemctl --no-block --force switch-root /mnt/alpine /sbin/init
Get-WindowsCapability -Online -LimitAccess `
| where { $_.Name -notlike 'Lang*' -and $_.State -eq 'NotPresent' -and $_.Name -notlike 'Windows.Kernel.LA57*' -and $_.Name -notlike 'Accessibility.Braille*' } | Add-WindowsCapability -Online -Source D:\LanguagesAndOptionalFeatures -Verbose
Get-WindowsCapability -Online -LimitAccess `
| where { $_.Name -like '*Font*' -and $_.State -eq 'NotPresent' } |Add-WindowsCapability -Online -Source D:\LanguagesAndOptionalFeatures -Verbose
@dominicusin
dominicusin / Top_Public_Time_Servers.md
Created June 2, 2023 04:23 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@dominicusin
dominicusin / Mac
Last active February 26, 2023 04:04
Mac
pkgin avail|cut -d' ' -f1|sort -u| xargs sudo pkgin -y install
yes | sudo port -b -p -N install \*