Skip to content

Instantly share code, notes, and snippets.

@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}"

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 / 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}')
@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 / 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,