Skip to content

Instantly share code, notes, and snippets.

View 3isenHeiM's full-sized avatar
🏠
Working from home

3isenHeiM 3isenHeiM

🏠
Working from home
View GitHub Profile
@3isenHeiM
3isenHeiM / actions_track-wan-ip.conf
Last active February 8, 2024 10:29 — forked from PiDroid-B/actions_blacklist-update.conf
OPNsense track the WAN IP changes via custom cron
[update-ip]
command:/usr/local/custom-scripts/track-public-ip.sh
parameters:
type:script
description:Track WAN IP address and update a file in the root folder
message:WAN IP tracked
@3isenHeiM
3isenHeiM / install.md
Last active November 22, 2022 10:22 — forked from AndersonIncorp/install.md
Install any linux distro on VPS with low RAM, locked ISO boot

Overview

Scenario

  • Your VPS provider doesn't support ISO mount
  • Your VPS has low RAM and cannot load whole ISO image
  • Your current /boot is to small to contain ISO file

Workaround

  • Boot low memory ISO (CorePure64.iso ~ 14MB)
  • Create new partition ~1GB / size of your ISO
  • dd your ISO into that partition
@3isenHeiM
3isenHeiM / go-sharp-loader.go
Created August 5, 2020 21:42 — forked from ropnop/go-sharp-loader.go
Example Go file embedding multiple .NET executables
package main
/*
Example Go program with multiple .NET Binaries embedded
This requires packr (https://github.com/gobuffalo/packr) and the utility. Install with:
$ go get -u github.com/gobuffalo/packr/packr
Place all your EXEs are in a "binaries" folder
@3isenHeiM
3isenHeiM / go-sharp-loader.go
Created August 5, 2020 21:42 — forked from ropnop/go-sharp-loader.go
Example Go file embedding multiple .NET executables
package main
/*
Example Go program with multiple .NET Binaries embedded
This requires packr (https://github.com/gobuffalo/packr) and the utility. Install with:
$ go get -u github.com/gobuffalo/packr/packr
Place all your EXEs are in a "binaries" folder
@3isenHeiM
3isenHeiM / self-signed-certificate-with-custom-ca.md
Last active May 6, 2020 10:54 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. Keep it in a safe place!

openssl genrsa -out CA.key 4096

If you want a password-protected key, just add -des3 (or -aes256) option.

@3isenHeiM
3isenHeiM / intel-opencl-neo-build.md
Last active December 19, 2019 11:29 — forked from Brainiarc7/intel-opencl-neo-build.md
Build Intel's Neo OpenCL platform on Ubuntu 19.10

Intel OpenCL stack enablement on Ubuntu 18.10.

Here's how to build and install Intel's new OpenCL enablement stack, Neo, which replaces the legacy Beignet ICD.

Install the dependencies:

Build dependencies:

sudo apt-get install ccache flex bison clang cmake g++ git patch zlib1g-dev autoconf xutils-dev libtool pkg-config libpciaccess-dev
@3isenHeiM
3isenHeiM / MDNS_jail_FreeNAS
Last active July 27, 2022 21:26
Enable MDNS on a FreeNAS/BSD jail. That will allow a Avahi name resolution of the jail in the local network.
freenas# jls
JID IP Address Hostname Path
...
5 - etherpad /mnt/basin/jails/etherpad
...
freenas# ./mdns.sh 5
Updating FreeBSD repository catalogue...
[etherpad] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
[etherpad] Fetching packagesite.txz: 100% 6 MiB 5.9MB/s 00:01