Skip to content

Instantly share code, notes, and snippets.

View sebastianneubert's full-sized avatar

Sebastian Neubert sebastianneubert

View GitHub Profile
@sebastianneubert
sebastianneubert / README.md
Created March 12, 2025 18:45 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@sebastianneubert
sebastianneubert / bootable-win-on-mac.md
Created July 28, 2024 09:21 — forked from acarril/bootable-win-on-mac.md
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

{{- /* trivy fs . --ignore-unfixed --format template -t "@$(realpath ~/trivy-markdown.tpl)" > vuln.md */ -}}
| Library/Package | CVE | Severity | Installed Version | Fixed Version | Title |
|-----------------|-------------------|----------|--------------------|---------------|-------|
{{- range . }}
{{- range .Vulnerabilities }}
| {{ .PkgID }} | {{ .VulnerabilityID }} | {{ .Severity }} | {{ .InstalledVersion }} | {{ .FixedVersion }} | {{ .Title }} |
{{- end }}
{{- end }}
@sebastianneubert
sebastianneubert / README.md
Last active August 23, 2024 13:51
Enable TrueNAS Wake On Lan permanently

Enabling WoL on a TrueNAS System

Source: https://www.truenas.com/community/threads/enable-wol.95856/

As an Admin user you can use the ethtool with sudo rights to check if WoL is available on your system. The usual ethernet NIC name is "enp3s0" so I use everytime this name.

Check if WoL is available

@sebastianneubert
sebastianneubert / ForceEnvironment.php
Created March 31, 2022 06:55
Codeception ForceEnvironment Extension
<?php
namespace Tests\Support\Extension;
use Codeception\Event\SuiteEvent;
use Codeception\Event\TestEvent;
use Codeception\Events;
use Codeception\Exception\ExtensionException;
use Codeception\Extension;
use PHPUnit\Framework\SkippedTestError;
@sebastianneubert
sebastianneubert / README.md
Created February 15, 2022 10:43
Postman prerequest script

Postman prerequest script

used variables

base_url

the url of the API

username & password

@sebastianneubert
sebastianneubert / check.sh
Created August 11, 2020 13:47
check git branches in all sub dirs
#!/bin/bash +e
#0 black COLOR_BLACK 0,0,0
#1 red COLOR_RED 1,0,0
#2 green COLOR_GREEN 0,1,0
#3 yellow COLOR_YELLOW 1,1,0
#4 blue COLOR_BLUE 0,0,1
#5 magenta COLOR_MAGENTA 1,0,1
#6 cyan COLOR_CYAN 0,1,1
#7 white COLOR_WHITE 1,1,1
@sebastianneubert
sebastianneubert / update.sh
Created February 18, 2020 09:01
git update all projects in dir
#!/bin/bash +e
#0 black COLOR_BLACK 0,0,0
#1 red COLOR_RED 1,0,0
#2 green COLOR_GREEN 0,1,0
#3 yellow COLOR_YELLOW 1,1,0
#4 blue COLOR_BLUE 0,0,1
#5 magenta COLOR_MAGENTA 1,0,1
#6 cyan COLOR_CYAN 0,1,1
#7 white COLOR_WHITE 1,1,1
@sebastianneubert
sebastianneubert / foodcourt.md
Last active January 25, 2018 10:15
EuroPassage Foodcourt Test
@sebastianneubert
sebastianneubert / buster-phantom.sh
Created December 4, 2015 14:37 — forked from ruudud/buster-phantom.sh
BusterJS and PhantomJS start/stop script, handy for Jenkins/CI
#!/bin/bash
#
# Depends on buster.js and phantom.js being installed
#
BUSTERPATH_OSX="/usr/local/lib/node_modules/buster"
BUSTERPATH_GNU="/usr/lib/node_modules/buster"
BUSTER_PHANTOMSCRIPT="script/phantom.js"
BUSTER_CMD="buster-server"