Skip to content

Instantly share code, notes, and snippets.

@Morgyn
Morgyn / xcp-ng-8.3.ipxe
Last active August 10, 2025 16:47
ipxe file for xcp-ng 8.3
#!ipxe
sanboot --no-describe --drive 0x81 https://mirror.team-cymru.org/xcp-ng/isos/8.3/xcp-ng-8.3.0-20250606-netinstall.iso
@Morgyn
Morgyn / !OVH Probes for Fedora CoreOS.md
Last active September 7, 2024 22:08
Allow OVH probes on Fedora CoreOS fcos

OVH Probes for Fedora CoreOS

The probes for OVH are dynamic, based on the IPs given to you.

You could manually assign but you'd have to do that in all cases.

This can baked into your ignition.

Install

Modify our post docker firewall script to add the rules; On startup create chains for each physical interface.

@Morgyn
Morgyn / updateos.sh
Last active July 7, 2024 10:57
Fedora Update script
#!/bin/bash
# Will update as far as it will go
# echo "@reboot root /root/updateos.sh" >>/etc/crontab
# uname -m for arch
if [ "x${1}" == "xSCRIPT" ]; then
SHELL="/bin/bash"
@Morgyn
Morgyn / testscript.js
Created December 12, 2023 12:24
TestScript.js
alert("this is a test");
on node0:
cd /root/install/OFEDLTS/MLNX_OFED_LINUX-4.9-4.1.7.0-rhel7.9-x86_64
./mlnx_add_kernel_support.sh -m $PWD --kmp -y
Will make a tarball in /tmp
Backup old repo
; https://docs.unity3d.com/ScriptReference/KeyCode.html <- a list of keycodes
; Change false to true to enable this section, if you set this to false the mode will not be accesible
enabled=false
; Enter the advanced building mode with this key when building
enterAdvancedBuildingMode=F1
; Exit the advanced building mode with this key when building
exitAdvancedBuildingMode=F3
{
"default": {
"position": {
"x": "592.7615",
"y": "6.941211",
"z": "-1754.505"
},
"rotationdiff": "4.646481",
"rotationy": "342.4319"
},
@Morgyn
Morgyn / AVCsystemd.md
Last active April 22, 2021 16:11
systemd service file for Auto Voice Channels discord bot.

systemd service file for Auto Voice Channels discord bot.

This example was developed for and tested on Debian 10.4, the below describes how to configure systemd to run a single instance of the bot.

For this example we are using a service called AVCtest, the systemd file will be named AVCtest.service.

It will run under a user avctest and the installation was performed in the home directory of that user. (/home/avctest)

Instructions:

@Morgyn
Morgyn / dyndns.sh
Last active August 29, 2015 14:15
/etc/dhclient/dhclient.d/dyndns.sh
#!/bin/bash
#
# dyndns.sh: dhclient-script plugin for dyndns
# place in /etc/dhcp/dhclient.d and 'chmod +x dyndns.sh' to enable
USERNAME=
PASSWORD=
TUNNEL_ID=
dyndns_config() {