Inspired by https://infosec.exchange/@jjtech/112612685494089718
Reboot into Recovery OS + Disable SIP
csrutil disable
Inspired by https://infosec.exchange/@jjtech/112612685494089718
Reboot into Recovery OS + Disable SIP
csrutil disable
Bash script to install the latest released version of the AWS CLI v2 from the distrubuted source.
Using this method to exectue the CLI under a MacBook M1 laptop as a native ARM binary - rather than falling back to Rosetta. Currently the offically packaged macOS .pkg
doesn't support both Intel/M1 architectures.
Script designed to be re-run - will blow away an existing install and re-install the latest available version.
Note
This install script assumes you have installed a suitable version of Python 3 - has been tested against Python 3.10.11
under macOS Sonoma v14.6.1
.
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/raid-config.html | |
nvmes=$(sudo lsblk | awk '/^nvme/ {printf "/dev/%s ", $1}') | |
sudo mdadm --create --verbose /dev/md0 --level=0 --name=my_raid --raid-devices=$(echo $nvmes | wc -w) $nvmes | |
sleep 10# crutch | |
sudo mkfs.ext4 -L my_raid /dev/md0 | |
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm.conf | |
sudo dracut -H -f /boot/initramfs-$(uname -r).img $(uname -r) | |
sudo mkdir /data | |
sudo mount LABEL=my_raid /data | |
sudo chown ec2-user:ec2-user /data/ |
If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.
Don't know how to create your own AWS ECS Cluster? Go here!
Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.
If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide:
Author: Chris Lattner
== How to Implement an AWS Lambda function using Swift 4 | |
1. Use the appropriate docker image to build a Swift 4 executable. | |
docker run -it -v "$(PWD):/app" doctorimpossible/swift4ubuntu bash | |
mkdir demo; cd demo | |
swift package init --type executable | |
:: edit Sources/demo/main.swift |
Sometimes you want to use a gem on Heroku that is in a private repository on GitHub.
Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.
This method does not add your OAuth token to Gemfile.lock
. It uses bundle config to store your credentials, and allows you to configure Heroku to use environment variables when deploying.
/* | |
Go on your labels page (https://github.com/user/repo/labels) | |
Edit the following label array | |
or | |
Use this snippet to export github labels (https://gist.github.com/MoOx/93c2853fee760f42d97f) | |
and replace it | |
Paste this script in your console | |
Press Enter!! |
#SwitchResX Settings for LG 21:9 UltraWide
SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .
##Disabling System Integrity Protection (SIP)
If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:
package main | |
import "os/exec" | |
import "fmt" | |
import "net/http" | |
import "io/ioutil" | |
import "bufio" | |
import "os" | |
import "encoding/json" |