Skip to content

Instantly share code, notes, and snippets.

@danielewood
danielewood / oci-all-shapes-all-regions.json
Created November 12, 2022 22:48
List of all shapes and specs in all OCI regions.
This file has been truncated, but you can view the full file.
[
{
"region": "af-johannesburg-1",
"availability_domain": "AF-JOHANNESBURG-1-AD-1",
"shapes": [
{
"baseline_ocpu_utilizations": null,
"billing_type": "PAID",
"gpu_description": null,
"gpus": 0,
@danielewood
danielewood / oci-all-region-free-shapes.json
Created November 12, 2022 22:04
List of all regions, ADs, and free tier shapes
[
{
"region": "af-johannesburg-1",
"availability_domain": "AF-JOHANNESBURG-1-AD-1",
"shapes": [
{
"shape": "VM.Standard.A1.Flex",
"billing_type": "LIMITED_FREE"
}
]
@danielewood
danielewood / Build iOS 15 apps with Catalina.md
Last active October 21, 2021 17:25
Allow Building iOS 15+ compatible IPAs using Xcode 12.4, the last build for Catalina.
  1. Download the latest Xcode IPA.
  2. Unzip the XIP
  3. Rename to Xcode.app to Xcode-beta.app (Genericized, so it works with 13, 13.1, etc)
  4. Move Xcode-beta.app to /Applications
  5. Symlink the Device support from Xcode-beta into your Xcode 12.4 App:
MAX_iPhoneOS=$(ls Xcode_13.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ | awk  'BEGIN{max=0}{if(($1)>max)  max=($1)}END {print max}')
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/${MAX_iPhoneOS}/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

MAX_WatchOS=$(ls Xcode_13.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport/ | awk  'BEGIN{max=0}{if(($1)>max)  max=($1)}END {print max}')

Keybase proof

I hereby claim:

  • I am danielewood on github.
  • I am danielewood (https://keybase.io/danielewood) on keybase.
  • I have a public key ASCXuyW3z9f_ucPMEkjnJCxQea-n_GoajM-AjJvkVNKDKgo

To claim this, I am signing this object:

@danielewood
danielewood / 68-fix-intel-scu.rules
Last active January 3, 2019 23:55 — forked from dghodgson/89-fix-intel-scu.rules
Make address assignment reliable across drive swaps and reboots when paired with HP SAS Expanders
### Reset the device's path variables and symlinks
KERNEL=="sd*", ENV{DEVTYPE}=="disk" SUBSYSTEM=="block", DRIVERS=="isci", PROGRAM="/usr/local/bin/udev-fix-intel-scu.sh $kernel $env{DEVPATH} $env{ID_PATH} $env{ID_WWN} $env{ID_SERIAL}", ENV{ID_PATH_TAG}="%c{1}", ENV{ID_PATH}="%c{4}", SYMLINK="disk/by-id/%c{2} disk/by-id/%c{3} disk/by-path/%c{4}"
KERNEL=="sd*", ENV{DEVTYPE}=="partition" SUBSYSTEM=="block", DRIVERS=="isci", PROGRAM="/usr/local/bin/udev-fix-intel-scu.sh $kernel $env{DEVPATH} $env{ID_PATH} $env{ID_WWN} $env{ID_SERIAL}", ENV{ID_PATH_TAG}="%c{1}", ENV{ID_PATH}="%c{4}", SYMLINK="disk/by-id/%c{2}-part%n disk/by-id/%c{3}-part%n disk/by-path/%c{4}-part%n"
### No modifications to symlinks or properties, used for testing
#KERNEL=="sd*", SUBSYSTEM=="block", DRIVERS=="isci", PROGRAM="/usr/local/bin/udev-fix-intel-scu.sh $kernel $env{DEVPATH} $env{ID_PATH} $env{ID_WWN} $env{ID_SERIAL}"
#!/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?-.*'

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

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
--.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
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