Using 5567 as an example TCP port
sudo mbuffer -I 5567 -m 8G -P 80 -s 262144 -o /dev/nst0
This also writes out a plaintext file in the local directory (filelist.txt
) logging the files transferred.
#!/usr/bin/env bash | |
DOMAIN=`basename "$RENEWED_LINEAGE"` | |
case $DOMAIN in | |
host.example.com) | |
echo "Host certs renewed" | |
cp $RENEWED_LINEAGE/fullchain.pem /etc/cockpit/ws-certs.d/$DOMAIN.crt | |
cp $RENEWED_LINEAGE/privkey.pem /etc/cockpit/ws-certs.d/$DOMAIN.key | |
chown cockpit-ws:cockpit-ws /etc/cockpit/ws-certs.d/$DOMAIN.crt /etc/cockpit/ws-certs.d/$DOMAIN.key | |
echo "Restarting Cockpit" |
Import-Module Veeam.Backup.PowerShell | |
$outputBuilder = New-Object System.Text.StringBuilder | |
[void]$outputBuilder.AppendLine('ESC "@"') | |
[void]$outputBuilder.AppendLine('ESC "2"') | |
$job = Get-VBRTapeJob -Name ExampleJobName | |
$lastjob = (Get-VBRTapeBackupSession -Job $job | Sort-Object EndTime | Select-Object -Last 1) | |
# get the tape name | |
$tape = (Get-VBRTapeMedium -MediaPool $job.Target | Sort-Object LastWriteTime | Select-Object -Last 1) |
#!/usr/bin/env python3 | |
from escpos import * | |
import argparse | |
import os | |
import sys | |
import datetime | |
cli_parser = argparse.ArgumentParser(description='Print to a network ESCPOS receipt printer.') | |
cli_parser.add_argument('file', help='text file to print') | |
cli_parser.add_argument('--printer', '-p', default="192.168.1.253", help='IP address or hostname of printer') |
#!/bin/sh | |
find /mnt/isos -type f -not \( -path '#recycle' -o -name '.DS_Store' -o -path '*@eaDir*' \) 2>/dev/null | sort |
#!/sbin/openrc-run | |
LOG_FILE=/var/log/traefik.log | |
name="traefik" | |
command="/usr/local/bin/traefik" | |
command_args=" --log" | |
pidfile="/run/${RC_SVCNAME}.pid" | |
output_log=${LOG_FILE} | |
error_log=${LOG_FILE} |
Sourced from https://patents.google.com/patent/US7882036B1 | |
Field # Length Offset Name | |
1 1 0 Indicia Version Number | |
2 4 1 Piece Counter | |
3 1 5 IBI Vendor/Model | |
4 3 6 PSD Serial Number | |
5 3 9 Postage Value (in 1/10s of a cent) | |
6 2 12 Intelligent Mail Service | |
7 6 14 HMAC Message Digest |
#!/bin/bash | |
## Usage: gpg2-vmimage.sh FILENAME | |
## | |
## FILENAME can be: | |
## - a tar archive (in which case this script will apply zstd | |
## compression before encrypting & signing with GnuPG) | |
## - an already-compressed OVA file (in which case this script | |
## will not further compress) | |
## | |
## The output will be a .zstd.gpg or .gpg of the input file and |
Object.defineProperty(window, 'localStorage', { | |
configurable: true, | |
enumerable: true, | |
value: new Proxy(localStorage, { | |
set: function (ls, prop, value) { | |
console.log(`direct assignment: ${prop} = ${value}`); | |
debugger; | |
ls[prop] = value; | |
return true; | |
}, |