Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotCleanUpNonPresentDevices>false</DoNotCleanUpNonPresentDevices>
<PersistAllDeviceInstalls>false</PersistAllDeviceInstalls>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
@danielewood
danielewood / PowershellAes.ps1
Created April 18, 2017 18:30 — forked from ctigeek/PowershellAes.ps1
Aes Encryption using powershell.
function Create-AesManagedObject($key, $IV) {
$aesManaged = New-Object "System.Security.Cryptography.AesManaged"
$aesManaged.Mode = [System.Security.Cryptography.CipherMode]::CBC
$aesManaged.Padding = [System.Security.Cryptography.PaddingMode]::Zeros
$aesManaged.BlockSize = 128
$aesManaged.KeySize = 256
if ($IV) {
if ($IV.getType().Name -eq "String") {
$aesManaged.IV = [System.Convert]::FromBase64String($IV)
}
@danielewood
danielewood / Movie-AutoCleanup.ps1
Last active April 25, 2017 04:45
Movie-AutoTorrent Scripts
$CompleteDir = "D:\Movies\"
$Files = Get-ChildItem $CompleteDir -Recurse | where {!$_.psiscontainer}
$Files | Where Length -LT 400000000 | Where Extension -ne ".srt" | Remove-Item -Verbose -Force
$CompleteDir = "D:\Movies\!New Releases"
get-childitem $CompleteDir -Recurse | ForEach-Object { Move-Item -LiteralPath $_.FullName $_.FullName.Replace("[",".(") -Force}
get-childitem $CompleteDir -Recurse | ForEach-Object { Move-Item -LiteralPath $_.FullName $_.FullName.Replace("]",").") -Force}
get-childitem $CompleteDir -Recurse | ForEach-Object { Move-Item -LiteralPath $_.FullName $_.FullName.Replace("..",".") -Force}
#!/bin/bash
# Takes Let's Encrypt SSL certificates and generates a script to paste in to your NetApp CLI to automatically install the certificate.
# Paths assume you use acme.sh, adjust variables at top of file as needed.
VSERVER="NTPCLST02"
CERT_CN="ntpclst02.ttl.one"
CERT_CER="/root/.acme.sh/$CERT_CN/$CERT_CN.cer"
CERT_KEY="/root/.acme.sh/$CERT_CN/$CERT_CN.key"
CERT_INTCA="/root/.acme.sh/$CERT_CN/ca.cer"
CERT_ROOTCA=""
CERT_CA_CN=`cat $CERT_CER | openssl x509 -noout -text | grep "Issuer: " | awk -F'CN=' '{print $2}'`
NTPCLST02::> set -privilege advanced
Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel.
Do you want to continue? {y|n}: yes
NTPCLST02::*> security certificate show -vserver NTPCLST02
Vserver Serial Number Common Name Type
---------- --------------- -------------------------------------- ------------
NTPCLST02 FA6CD2ACD7AFF4AEA8F9994E0F22BB1E942A
ntpclst02.ttl.one server
--.DESCRIPTION
-- This Lua script for PowerDNS will provide on-the-fly DNS Translation of IPv4 "A" Records.
-- This is to facilitate DNS resolution across a massive 1:1 NAT for network mergers and IP deconfliction.
-- The example configuration below translates 10.54.64.0/18 and 10.54.128.0/18 to 172.19.64.0/18 and 172.19.128.0/18
-- Use this in conjunction with something like the following iptables setup:
-- https://serverfault.com/questions/109569/iptables-massive-11-nat
--.NOTES
-- License: Unlicense / CCZero / WTFPL / Public Domain
-- Author: Daniel Wood / https://github.com/danielewood
AT
OK
ATE1
OK
ATI
Manufacturer: Sierra Wireless, Incorporated
Model: EM7565
Revision: SWI9X50C_01.07.02.00 6c91bc jenkins 2018/06/13 23:08:16
MEID: 3592xxxxxxxxxx

Petabyte Scale Storage

Scaling to Petabyte levels of storage, and then adding duplication on top presents significant challenges in managing multiple layers of technology. There will be significant risks that can only be evaluated with limited test solutions and datasets to see how behavior is in the real world. A high level concern, because of where in the stack deduplication exists on the Linux side, is that distributed parity is useless in conjunction with a Linux solution. The result is a maximum storage efficiency of approximately 33% with Gluster and Deduplication, resulting in approximately $200/TB. This is not the case with a Microsoft solution where efficiency reaches 66% at seven nodes, for a cost of approximately $100/TB. The Microsoft solution also presents significant limitations in flexibility.

I have not yet extensively researched CephFS and BeeGFS, but I suspect the end result with both of them will be similar to Gluster.

Most of my notes are based on the documentation provided by Red Ha

#!/bin/bash
inputfile="$1"
while read -r line; do
#set migrate to a non-zero/one value
migrate=2
#regex patterns to use later
migpattern='^MIG\s?-.*'
# Match lines beginning with MIG(case sensitive), optional whitespace, then a hyphen, then anything else to the end of the line
notmigpattern='^NOT\s?-.*'