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/zsh | |
tmp="$HOME/tmp" | |
mkdir -p $tmp | |
inks="/Applications/Inkscape.app/Contents/Resources/" | |
cd $inks | |
qrpath="share/inkscape/extensions/render_barcode_qrcode.py" | |
python3="bin/python3" |
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
"when you use > or < on a V[isual] selected text, shift 2 spaces | |
set shiftwidth=2 | |
"makes space no tabs | |
set expandtab | |
"put 2 spaces for a tab | |
set tabstop=2 | |
"indicates lines and character location | |
set ruler |
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 | |
PPTX="pptxcompat" | |
PNGP="pngout" | |
# stamps so we dont process unmodified files over and over again | |
VERTRACK="vertrack" | |
mkdir -p $VERTRACK | |
mkdir -p $PPTX |
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
SITEA: [ | |
down | |
VA: box rad 10px "Veeam Agent" "100TB" color White fill 0x00d15f;move 0.1 | |
VM: box rad 10px "VM vSphere" "100TB";move 0.1 | |
ORA: box rad 10px "Oracle RMAN" "Plugin" "100TB" color White fill 0x00d15f; | |
PROXY: box rad 10px "Veeam Proxy" "100TB" at 1 right of VM color White fill 0x00d15f | |
REPO: cylinder rad 10px "Repo A" at 2 right of VA color White fill 0x00d15f | |
arrow from VA.e to REPO.w |
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
# you can use external.myaddr.result.myip | |
data "external" "myaddr" { | |
program = ["bash", "-c", "echo \"{\\\"myip\\\": $(dig -4 TXT o-o.myaddr.l.google.com @ns1.google.com +short) }\""] | |
} | |
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
echo $(date -r $(($(date +%s)+(3600*24*7))) '+%Y-%m-%d') |
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 | |
curl -s -o sec.json 'https://www.veeam.com/services/kb-articles?product=&version=&type=security&fromModificationDate=&toModificationDate=&search=&offset=0&limit=10000' | |
jq '[.articles[] | {id:.id,title:.title,date:.date}] | sort_by(.date) | reverse' sec.json |
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
# MIT LICENSE | |
# EXPERIMENTAL RUN STEP BY STEP AND MAKE SURE YOU UNDERSTAND WHAT YOU ARE DOING | |
# EXPERIMENTAL RUN STEP BY STEP AND MAKE SURE YOU UNDERSTAND WHAT YOU ARE DOING | |
# EXPERIMENTAL RUN STEP BY STEP AND MAKE SURE YOU UNDERSTAND WHAT YOU ARE DOING | |
# EXPERIMENTAL RUN STEP BY STEP AND MAKE SURE YOU UNDERSTAND WHAT YOU ARE DOING | |
# EXPERIMENTAL RUN STEP BY STEP AND MAKE SURE YOU UNDERSTAND WHAT YOU ARE DOING | |
# By default vPowerNFS does not allow mounting by any host. You need to disable the vPowerNFS IP filter to do so | |
# https://www.veeam.com/kb1055 -> point 7 | |
# Key Location: HKLM\SOFTWARE\WOW6432Node\Veeam\Veeam NFS\ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<unattendedInstallationConfiguration bundle="Em" mode="install" version="1.0"> | |
<properties> | |
<property name="ACCEPT_EULA" value="1" /> | |
<property name="ACCEPT_LICENSING_POLICY" value="1" /> | |
<property name="ACCEPT_THIRDPARTY_LICENSES" value="1" /> | |
<property name="ACCEPT_REQUIRED_SOFTWARE" value="1" /> | |
<property name="VBREM_LICENSE_AUTOUPDATE" value="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
function p { | |
PNG=$(printf "code-%d.png" $(($(date +%s)))); | |
screencapture -R-1600,180,1280,720 $PNG; | |
OUT=$(printf '\n## Screenshot \n\n' $PNG); | |
printf "%s" $OUT | |
printf "%s\n\n" $OUT | pbcopy | |
printf "%s\n\n" $OUT >> screenlog.md | |
} |
NewerOlder