This file contains hidden or 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
| #!/bin/bash | |
| # Fix: DKMS fails to compile nvidia-current/550.163.01 module for kernel 6.17.2-1-pve | |
| # Cause: NVIDIA 550 drivers from Debian repos are incompatible with Proxmox kernel > 6.14 | |
| # Solution: Pin kernel to 6.14 and exclude newer kernels from DKMS builds | |
| # Credit: Andrea Cattaneo | |
| # Pin Proxmox kernel to 6.14 | |
| proxmox-boot-tool kernel pin 6.14.11-4-pve |
This file contains hidden or 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
| echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/.*data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script | |
| apt --reinstall install proxmox-widget-toolkit |
This file contains hidden or 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
| git clone https://github.com/timdettmers/bitsandbytes.git | |
| cd bitsandbytes | |
| export LD_LIBRARY_PATH=/opt/cuda/lib/ | |
| CUDA_VERSION=122 make cuda12x CUDA_HOME=/opt/cuda/ | |
| pip install . |
This file contains hidden or 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
| #!/bin/bash | |
| set -xe | |
| # db4 | |
| sudo dnf install -y gcc-c++ autoconf make patch | |
| wget https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/install_db4.sh | |
| sudo mkdir -p /usr/src/db4 | |
| sudo chown $(whoami) /usr/src/db4 | |
| bash install_db4.sh /usr/src/db4 |
This file contains hidden or 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
| ARG VERSION=latest | |
| FROM docker.io/katta/openwrt-rootfs:$VERSION | |
| RUN mkdir -p /var/lock \ | |
| && mkdir -p /var/run \ | |
| && opkg update \ | |
| && opkg install \ | |
| luci \ | |
| luci-ssl \ |
This file contains hidden or 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
| rem run with: DiskPart /s diskpart_create_single.txt | |
| rem == diskpart_create_single.txt == | |
| select disk 1 | |
| clean | |
| rem convert mbr | |
| convert gpt | |
| create partition primary | |
| rem active | |
| format quick fs=ntfs label="W2G" | |
| assign letter="W" |
This file contains hidden or 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
| @echo off | |
| rem maybe this software is needed: https://www.microsoft.com/en-us/download/details.aspx?id=48595 | |
| rem set WindowsISO=%cd%\%1 | |
| set WindowsISO="%cd%\Windows10.iso" | |
| shift | |
| ECHO create partitions | |
| DiskPart /s diskpart_create_single.txt | |
| rem se il file install.wim non è già stato estratto | |
| IF NOT EXIST "%CD%\install.wim" ( |
This file contains hidden or 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
| #The following command will set $Disk to all USB drives with >20 GB of storage | |
| #$Disk = Get-Disk | Where-Object {$_.Path -match "USBSTOR" -and $_.Size -gt 20Gb -and -not $_.IsBoot } | |
| $Disk = Get-Disk | |
| #Clear the disk. This will delete any data on the disk. (and will fail if the disk is not yet initialized. If that happens, simply continue with ‘New-Partition…) Validate that this is the correct disk that you want to completely erase. | |
| # | |
| # To skip the confirmation prompt, append –confirm:$False | |
| Clear-Disk –InputObject $Disk[1] -RemoveData |
This file contains hidden or 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
| [Unit] | |
| Description = Virtualbox VM | |
| After = systemd-user-sessions.service network.target sound.target | |
| ConditionPathExists = /dev/tty0 | |
| [Service] | |
| Type = simple | |
| TTYPath = /dev/tty8 | |
| StandardInput = tty | |
| StandardOutput = tty |
This file contains hidden or 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
| #!/bin/bash | |
| # author: Andrea Cattaneo | |
| # check raspberry pi cpu temperature with perfdata and warn/crit thresholds | |
| # | |
| # check raspberry pi temperature with perfdata and warn/crit thresholds. | |
| # The data is read from sysfs ( file: /sys/class/thermal/thermal_zone0/temp ). | |
| # | |
| # Dependency: awk bc | |
| # licence: GPL | |
| if [ -z "$1" ] ; then |
NewerOlder