accept source routed packets to us
Turn on process accounting (or NO).
Set this vidcontrol mode for all virtual screens
#!/bin/env/python | |
# -*- encoding: utf8 -*- | |
# usage: script.py --file my_filelist.txt --directory /mnt/storage/ | |
# (c) Pekka Järvinen 2017- | |
import logging | |
import os | |
import sys | |
from argparse import ArgumentParser |
# Install nVidia drivers without extra stuff | |
# | |
# Extract nvidia 385.69-desktop-win10-64bit-international-whql.exe to a directory and run: | |
# ./this-script.ps1 385.69-desktop-win10-64bit-international-whql | |
# | |
# (c) Pekka Järvinen 2017- | |
param ( | |
[Parameter(Mandatory=$true)][string]$unpackDir | |
) |
# Remove unnecessary trash from nvidia GPU driver installer | |
# Modifies the setup.cfg XML file and removes garbage directories as well | |
# First unpack the installer .exe with 7zip and then run: | |
# this_script.ps1 <unpack directory> | |
# (c) Pekka Järvinen 2018- | |
param ( | |
[Parameter(Mandatory=$true)][ValidateScript({Test-Path $_})] [string]$unpackDir | |
) |
import logging | |
import os | |
import sys | |
# 3rd party | |
from bs4 import BeautifulSoup | |
import requests | |
if __name__ == "__main__": |
package main | |
import ( | |
"time" | |
"net/http" | |
"log" | |
"io/ioutil" | |
"encoding/json" | |
router "github.com/go-chi/chi" | |
routermw "github.com/go-chi/chi/middleware" |
# Download latest geforce drivers | |
# TODO: find a way to get series (ex: GeForce 10 Series) id somehow | |
Add-Type -AssemblyName System.Web | |
Import-Module BitsTransfer | |
$systemLocaleCode = Get-UICulture | select -ExpandProperty LCID | |
# Get machine's GPUs | |
$gpus = @{} |
#!/bin/sh | |
VARIABLES=$(sysrc -NA) | |
for item in $VARIABLES | |
do | |
DESCRIPTION=$(sysrc -d $item | perl -pe 's@^([^:]+): (.*)@$2@') | |
DEFAULT=$(sysrc -Dn $item) | |
if [ -z "$DESCRIPTION" ]; then |
# 2> /dev/null skips manual pages which doesn't exist | |
# find /boot/kernel -type f -iname "*acpi*.ko" -exec sh -c 'whatis `basename "{}" ".ko"` 2> /dev/null' \; | |
acpi_toshiba(4) - Toshiba HCI interface | |
acpi_panasonic(4) - ACPI hotkey driver for Panasonic laptops | |
acpi_fujitsu(4) - Fujitsu Laptop Extras | |
acpi_wmi(4) - ACPI to WMI mapping driver | |
acpi_hp(4) - ACPI extras driver for HP laptops | |
acpi_dock(4) - Laptop Docking Station device driver | |
acpi_sony(4) - ACPI notebook controller driver for Sony laptops |
#!/bin/sh | |
# Wait this many days since last scrub | |
DAYS=30 | |
LANG=C | |
NOW=$(date -j +%s) | |
POOLS=$(zpool list -H -o name) |