These scripts allow you to have a wireguard connection in your initrd. Make sure you have wireguard installed on your system and a busybox which supports ip
, nslookup
. If it does not work, change the copy_exec
line for busybox in the hook and replace it with a better one. It reads /etc/wireguard/initramdisk.conf and expects at least one comment specifying all ip addresses like so: # Address = 1.2.3.4/12
. Tested on Ubuntu 19.10.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global computerIsInUse, resetTime | |
on run | |
set computerIsInUse to true | |
set resetTime to (do shell script "date +%s") as integer | |
end run | |
on idle | |
set idleTime to (do shell script "ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF; exit}'") as integer | |
if idleTime is greater than 7.4E+10 then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
### For details see https://github.com/ansible/ansible/issues/22579 | |
### BEFORE | |
--- | |
- name: Check freezer containers | |
become: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script to be placed in /etc/initramfs-tools/hooks/ipv6 | |
PREREQ="" | |
prereqs() | |
{ | |
echo "$PREREQ" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/[email protected] by gatopeich | |
######### | |
# HowTo # | |
######### | |
# | |
# - Copy this file to /etc/systemd/system/[email protected] | |
# | |
# - adduser --system --shell /bin/bash --home /opt/mcpe --group minecraft | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT table, | |
formatReadableSize(sum(bytes)) as size, | |
min(min_date) as min_date, | |
max(max_date) as max_date | |
FROM system.parts | |
WHERE active | |
GROUP BY table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install notes for ubuntu 14.04 / odroid xu4 | |
sudo apt-get install libgmp3-dev | |
# dont apt-get StrongSwan! (its really old) | |
wget https://download.strongswan.org/strongswan-5.5.1.tar.bz2 | |
tar xvfj strongswan-5.5.1.tar.bz2 | |
cd strongswan-5.5.1 | |
sudo ./configure --prefix=/usr --sysconfdir=/etc --enable-python-eggs --enable-python-eggs-install --enable-vici | |
sudo make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Simple Main Logic Board (MLB) Serial Generator Script by TheRacerMaster | |
# Based off the work of Hanger1, AGuyWhoIsBored & Alien:X | |
# NOTE: This is a simple script that doesn't do any checking of other SMBIOS values. It needs valid SMBIOS data which includes the following: | |
# - Valid SmUUID value in Clover config.plist under SMBIOS (generated using uuidgen) | |
# - ROM value set to UseMacAddr0 in Clover config.plist (uses MAC address of your first NIC as ROM value) | |
# - Properly formatted serial number (doesn't have to be a real one, just formatted properly) in Clover config.plist under SMBIOS | |
# - Don't use a generic serial number (such as Clover's default)! It needs to be at least semi-unique. | |
# - Try using a generated serial number that isn't real (but formatted correctly) from Clover Configurator, Chameleon Wizard, etc. |
Map a virtual serial port on the guest(ttyS0) to a pseudo terminal(pty) on the host This has to be added to /etc/pve/qemu-server/VMID.conf:
args: -device isa-serial,chardev=myChardevice,id=s -chardev pty,id=myChardevice
After starting the VM check you will see a message:
char device redirected to /dev/pts/7 (label myChardevice)
Inside the guest, you should see now the serial port:
NewerOlder