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.
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; | |
}, |
system type : UBNT_E300 | |
machine : Unknown | |
processor : 0 | |
cpu model : Cavium Octeon III V0.2 FPU V0.0 | |
BogoMIPS : 2000.00 | |
wait instruction : yes | |
microsecond timers : yes | |
tlb_entries : 256 | |
extra interrupt vector : yes | |
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb] |
# add to .bashrc | |
# Set up ssh-agent | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_ssh_agent { | |
echo "Initializing new SSH agent..." | |
touch $SSH_ENV | |
chmod 600 "${SSH_ENV}" | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' >> "${SSH_ENV}" |