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
--- qemu-dm-wrapper.bak 2014-07-18 16:49:42.000000000 -0400 | |
+++ qemu-dm-wrapper 2014-07-18 20:38:46.000000000 -0400 | |
@@ -97,6 +97,11 @@ | |
write_dm_pid(domid, os.getpid()) | |
os.dup2(1, 2) | |
+ | |
+ for i in range(len(qemu_args)): | |
+ if qemu_args[i].find('macaddr=') > 0: | |
+ qemu_args[i] = qemu_args[i].replace('rtl8139', 'e1000') |
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
HandBrake Nightly 20180507165526-801d3ed (2018050701) - 64bit | |
OS: Microsoft Windows NT 10.0.17666.0 - 64bit | |
CPU: Intel(R) Xeon(R) CPU E3-1245 v6 @ 3.70GHz | |
Ram: 16271 MB, | |
GPU Information: | |
Intel(R) HD Graphics P630 - 23.20.16.4973 | |
Screen: 3840x2160 | |
Temp Dir: C:\Users\Frederick\AppData\Local\Temp\ | |
Install Dir: C:\Program Files\HandBrake Nightly | |
Data Dir: C:\Users\Frederick\AppData\Roaming\HandBrake Team\HandBrake\1.2.0.0 |
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
# 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}" |
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
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] |
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
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; | |
}, |
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 | |
## 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 |
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
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 |
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
#!/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} |
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 | |
find /mnt/isos -type f -not \( -path '#recycle' -o -name '.DS_Store' -o -path '*@eaDir*' \) 2>/dev/null | sort |
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
#!/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') |