Skip to content

Instantly share code, notes, and snippets.

View grahambrown11's full-sized avatar
⚒️
trying to be productive

Graham Brown grahambrown11

⚒️
trying to be productive
View GitHub Profile
@grahambrown11
grahambrown11 / _ Pritunl to ChromeOS ONC convert.md
Last active March 18, 2020 17:03
Pritunl (OpenVPN) to ChromeOS ONC Converter

Convert Pritunl Profile for ChromeOS

Pritunl is a great alternate to the Commercial OpenVPN Server with a nice web interface for setting up a server and users.

We use Chromebooks and the paid for version of Pritunl has native support for making the onc file but we needed a temporary solution for COVID-19 pandemic so here is a bash script that can convert the tar profile link into an onc file to import into ChromeOS. The Pritunl tar profile link is the ovpn file tarred, so if you have an ovpn profile file it will be easy to modify the script to just use the ovpn file instead of downloading it.

@grahambrown11
grahambrown11 / UPS Monitoring.md
Last active May 30, 2023 22:50
UPS Monitoring with NUT

At work we have a PowerWise+ UPS made localally by EDSUPS, it came with Silon2000 software - which is for Windows. We only have linux servers so I installed NUT and tried to get the correct settings so NUT could send a Slack for the UPS state change

Add a rule so the USB creates a known symlink /etc/udev/rules.d/10-local.rules

ACTION=="add", KERNEL=="ttyUSB[0-9]*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="ttyUSB_UPS"

In /etc/nut/nut.conf make MODE=standalone

@grahambrown11
grahambrown11 / keybase.md
Created March 29, 2018 05:44
Keybase proof

Keybase proof

I hereby claim:

  • I am grahambrown11 on github.
  • I am grahambrown11 (https://keybase.io/grahambrown11) on keybase.
  • I have a public key ASBck_gqpneSou0gBBCNOrM4q576KwgcsGuIE2iKRHkKLQo

To claim this, I am signing this object: