This small script lets you start iLO Java-based console from shell.
- iLO 2/3 doesn't have HTML5 console
- Mounting local (from the client computer) ISOs is PAINFULLY slow via HTML5 client
If you just start it, it will ask you for everything:
You're running a KVM-based virtualization. You want to do PCI/PCIe passthrough of some device. You don't want it to attach to the host OS at all.
Your device looks like that:
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller [8086:1c02] (rev 05)
Subsystem: Hewlett-Packard Company 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller [103c:330d]
Kernel driver in use: ahci
Kernel modules: ahci
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/wait.h> | |
int main(int argc, char* argv[]) { | |
char *args[]={argv[0], "UDP4-LISTEN:123,fork", "UDP:example.com:123", NULL}; | |
setuid(0); | |
pid_t pid; |
#!/bin/bash | |
#set -e | |
set -o errexit -o pipefail -o noclobber -o nounset | |
if [ "$#" -ne 4 ]; then | |
echo "Usage: ${0} CertTargetDir CertName OutputFormat<pem|p12> AssociatedService" | |
exit 1 | |
fi | |
certTargetDir="${1}" |
#!/bin/bash | |
set -e | |
if [ "$#" -ne 3 ]; then | |
# Example to keep 7 copies: backup-truenas.sh tnsHome /mnt/backup/server 7 | |
echo "Usage: ${0} StableID DestinationDir KeepCopies" | |
exit 1 | |
fi | |
stableId="${1}" |
<?xml version="1.0"?> | |
<ruleset name="Lab Companion" namespace="NoFlash\LabCompanion\CS\Standard"> | |
<config name="installed_paths" value="../../slevomat/coding-standard"/> | |
<ini name="memory_limit" value="512M"/> | |
<arg name="colors"/> | |
<arg name="basepath" value="."/> | |
<arg name="parallel" value="8" /> | |
<autoload>./vendor/autoload.php</autoload> | |
<file>src</file> |
/** | |
* This CloudFlare worker code forwards text messages from Twilio to your Telegram chat. | |
* | |
* You need to define the following variables in CloudFlare: | |
* ACCESS_USER - any user | |
* ACCESS_PASS - any password | |
* TELEGRAM_API_TOKEN - get from @BotFather | |
* TELEGRAM_CHAT_ID - get from https://api.telegram.org/bot<TELEGRAM_API_TOKEN>/getUpdates after messaging the bot | |
* | |
* Then set the following URL in Twilio as a POST WebHook: |
#!/bin/bash | |
set -e -o errexit -o pipefail -o nounset | |
################################### | |
# This script can be used by itself, but it's recommended that you read | |
# a tutorial on Proxmox forum first: https://forum.proxmox.com/threads/hey-proxmox-community-lets-talk-about-resources-isolation.124256/ | |
################################### | |
# Do not modify these variables (set by Proxmox when calling the script) | |
vmId="$1" |
#!/bin/bash | |
# See https://www.qemu.org/docs/master/system/invocation.html?highlight=smbios#hxtool-4 | |
declare -A smb0 | |
declare -A smb1 | |
declare -A smb2 | |
declare -A smb3 | |
declare -A smb4 | |
declare -A smb11 | |
declare -A smb17 |
class DisableEnableHomeKitWebHook implements HttpRequestHandler { | |
readonly devType = 'Camera'; | |
readonly roomName = 'Inside'; | |
// readonly roomName = 'Outside'; | |
readonly sharedSecret = 'kfjshflhwfiwheifhawleichiewchewiucahewihc'; | |
async onRequest(request: HttpRequest, response: HttpResponse) { | |
const query = this.getQueryParams(request); | |
if (!this.verifySecret(query)) { | |
response.send("Invalid secret"); |