Skip to content

Instantly share code, notes, and snippets.

View BrianSidebotham's full-sized avatar

Brian Sidebotham BrianSidebotham

View GitHub Profile
Proxmox Settings for VM
-----------------------
Set CPU=host from the VM's hardware menu
Enable Hyper-V in Host
----------------------
Via the GUI Hyper-V cannot be installed. So instead, from Powershell:

Driver comes from http://foo2hbpl.rkkda.com/ :

wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
tar xf foo2zjs.tar.gz
cd foo2zjs && make
sudo make install

Settings->Printers->(Unlock)->Add

Select the printer (Assuming network connection is OK)

scp ./blah.iso root@proxmox:/var/lib/vz/template/iso/
@BrianSidebotham
BrianSidebotham / update-unifi-controller
Last active February 19, 2020 22:00
How to update a unifi controller to allow it to upgrade properly
Look for any expireed GPG keys:
root@vm100ubuntu:~# apt-key list
/etc/apt/trusted.gpg
--------------------
pub rsa4096 2016-01-11 [SC] [expired: 2020-01-05]
0C49 F373 0359 A145 1858 5931 BC71 1F9B A157 03C6
uid [ expired] MongoDB 3.4 Release Signing Key <packaging@mongodb.com>
Any that are expired need to be replaced:
@BrianSidebotham
BrianSidebotham / fstab_dsm_1513_mount
Created December 5, 2019 21:21
Quick gist to remember the options for mounting a Synology DSM1513+ Share under Linux
//ip.address/Public /mnt/synology cifs username=${USERNAME},password=${PASSWORD},uid=1000,gid=1000,vers=1.0,sec=ntlm,iocharset=utf8
@BrianSidebotham
BrianSidebotham / haproxy.cfg
Created September 4, 2019 20:24
Unifi Controller SSL reverse proxy for port 443
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
stats timeout 30s
user haproxy
group haproxy
daemon
@BrianSidebotham
BrianSidebotham / gist:e51f3f2b355492c6f7c3a5ac08d46778
Last active April 10, 2017 12:17
Allow cross-origin in Python
# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
if __name__ == '__main__':
print "Content-Type: application/json"
print "Access-Control-Allow-Origin: *"
...
U-Boot 2016.03 (Apr 26 2016 - 11:32:30 +0000)
Watchdog enabled
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
@BrianSidebotham
BrianSidebotham / gist:f7b93d86201f25358151c4b4127abe5d
Created April 22, 2016 11:31
U-Boot output for Alpine Linux usin old MLO
U-Boot SPL 2014.04-00008-gf276f99 (Apr 18 2016 - 14:56:56)
CPU MAX frequency detected: 800MHz
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
U-Boot 2015.04 (Oct 30 2015 - 09:21:05)