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/sh | |
| set -e | |
| chmod +x /usr/bin/apt* | |
| chmod +x /usr/bin/dpkg | |
| apt install lxc | |
| cat >> /etc/lxc/default.conf << EOF |
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/sh | |
| set -e | |
| set -x | |
| # https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_12_.22Bookworm.22 | |
| sudo sed --in-place .bak --expression 's/bookworm main .*$/bookworm main contrib non-free non-free-firmware/' /etc/apt/sources.list | |
| sudo apt update |
How to control fan settings of Supermicro X10 motherboards
References:
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/sh | |
| # FreeBSD DHCP+DHCPv6 configuration | |
| pkg install -y dhcpcd | |
| cat >> /etc/rc.conf << EOF | |
| ipv6_activate_all_interfaces="YES" | |
| ifconfig_epair0b="SYNCDHCP" | |
| EOF |
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
| #!/usr/bin/env python | |
| import io | |
| import pathlib | |
| import subprocess | |
| import urllib.parse | |
| import urllib.request | |
| import zipfile | |
| BASEURL = 'https://github.com/storj/storj/releases/latest/download/' |
- Download and install http://www.networkupstools.org/package/windows/NUT-Installer-2.6.5-6.msi
- Download https://github.com/networkupstools/nut/releases/download/Windows-v2.6.5-8/nut_install-2.6.5-8-gd1b8d14d1.zip
- Extract it and replace the files in NUT installation directory
- Edit configuration files, start the service, check the logs in event viewer
v2.8 builds: https://ci.appveyor.com/project/nut-travis/nut/build/artifacts
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/sh | |
| iso_path="$1" | |
| img_path="$2" | |
| dd if=/dev/zero of="$img_path" bs=1MB count=8000 status=progress | |
| parted --script "$img_path" -- \ | |
| mklabel gpt \ | |
| mkpart P1 fat32 1MB 1000MB \ |
NewerOlder







