Skip to content

Instantly share code, notes, and snippets.

mkdir DisabledMods\.
move ace_advanced_ballistics.pbo DisabledMods\.
move ace_advanced_ballistics.pbo.ace_*.bisign DisabledMods\.
move ace_advanced_fatigue.pbo DisabledMods\.
move ace_advanced_fatigue.pbo.ace_*.bisign DisabledMods\.
move ace_ai.pbo DisabledMods\.
move ace_ai.pbo.ace_*.bisign DisabledMods\.
move ace_aircraft.pbo DisabledMods\.
move ace_aircraft.pbo.ace_*.bisign DisabledMods\.
move ace_apl.pbo DisabledMods\.
@jamestutton
jamestutton / Led_Matrix.yaml
Created November 23, 2021 10:43
Esphome LED Matrix for 3x2 Grid of 8x8 Addressable Leds
substitutions:
devicename: xmas-matrix
friendly_name: "xmas-matrix_"
id_prefix: "xmas-matrix_"
ip_address: "192.168.23.65"
use_ip_address: "192.168.23.65"
xscrollpadding: "4" # in pix
esphome:
name: ${devicename}
platform: ESP8266
#!/bin/bash
#Proxmox 6.2 over Ubuntu Focal Fossa patch for IOMMU.
#this can be done with Proxmox vanilla, just run the script!
#based heavily on
#https://forum.proxmox.com/threads/help-with-pci-passthrough.23980/
#move to working dir
cd "${0%/*}"
@jamestutton
jamestutton / NOTES.md
Last active December 9, 2020 17:23
DL380G6 RMRR Kernel Patch

Edit to kernel.spec

 Patch1000: debrand-single-cpu.patch
 Patch1001: debrand-rh_taint.patch
 Patch1002: debrand-rh-i686-cpu.patch
 +  Patch1003: intel-iommu.patch

END OF PATCH DEFINITIONS

#!/bin/bash
for drive in $(sg_scan -i | grep "SanDisk DO" -B 1 | awk '{print $1}' | grep /)
do
smartctl -a ${drive::-1} > /tmp/smart.info
echo "Info for ${drive::-1}"
grep "Product:" /tmp/smart.info
grep "SMART Health Status:" /tmp/smart.info
grep "Serial number:" /tmp/smart.info
grep "Percentage used endurance indicator:" /tmp/smart.info
grep "Logical block size:" /tmp/smart.info
@jamestutton
jamestutton / README.md
Last active May 21, 2021 14:48
HP Proliant yum packages

Centos 8

sudo yum install hp-health ssacli

sudo systemctl enable --now hp-health

ssacli ctrl all show

ssacli controller slot=0 modify raidmode=off

@jamestutton
jamestutton / Dog Boot Dryer ESPHome
Created July 8, 2020 09:20 — forked from jptrsn/Dog Boot Dryer ESPHome
ESP Home firmware code to power a 3D printed, Home Assistant-connected dog and/or glove dryer.
esphome:
name: boot_dryer
platform: ESP8266
board: d1_mini
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret ssid
password: !secret wifi_password
@jamestutton
jamestutton / ActiveTriggerByHost.pl
Created November 13, 2018 11:20
Zabbix Script Snippets
#!/usr/bin/perl
#simple program to set correct hostname
##written by Tames Tutton
##:USAGE:: ./ActiveTriggerByHost.pl
##------------------
BEGIN {
unshift(@INC,'/home/drvtiny/Apps/Perl5/libs');
}
use Monitoring::Zabipi qw(zbx);
@jamestutton
jamestutton / centos_bstick.sh
Created July 6, 2018 08:53 — forked from vkanevska/centos_bstick.sh
Custom CentOS 7 bootable ISO / Support UEFI & Secure boot
#!/bin/bash
# create custom bootable iso for CentOS 7 with kickstart
if [ $# -lt 2 ]
then
echo "Usage1: $0 path2iso path2kickstart"
exit 1
else
if [ ! -f $1 ]
then