https://apple.stackexchange.com/questions/388236/unable-to-create-folder-in-root-of-macintosh-hd
This command creates /etc/synthetic.conf file with an intial entry.
ROOT_FOLDER="programs"| #!/bin/bash | |
| # https://gist.github.com/douglascayers/c04a14d79f29a57fc1de48c143374932 | |
| set -e # exit if a command fails | |
| set -o pipefail # exit if a piped command fails | |
| THING_NAME="" | |
| HELP=0 |
| import crypto from 'crypto'; | |
| const createHashFromKeys = (options: { | |
| object: Record<string, any>; | |
| keys: string[]; | |
| algorithm?: string; | |
| }): string => { | |
| const { object, keys, algorithm = 'sha256' } = options; | |
| const content = keys |
| import { Observable, Subject, filter } from 'rxjs'; | |
| import { PubSubMessage, PubSubService, PubSubTopic } from '../pubsub.types'; | |
| export class PubSubServiceMock implements PubSubService { | |
| public readonly subject$ = new Subject<PubSubMessage<PubSubTopic>>(); | |
| public readonly publishSpy = jest.fn(); | |
| public readonly streamSpy = jest.fn(); | |
| public publish<T extends PubSubTopic>(message: PubSubMessage<T>): void { |
| OWNER="some_owner" | |
| REPO="some_repo" | |
| COMMIT="some_sha" | |
| gh api \ | |
| repos/${OWNER}/${REPO}/statuses/${COMMIT} \ | |
| -X POST \ | |
| -F state=success \ | |
| -F description="Completed" \ | |
| -F context=ci/release |
https://apple.stackexchange.com/questions/388236/unable-to-create-folder-in-root-of-macintosh-hd
This command creates /etc/synthetic.conf file with an intial entry.
ROOT_FOLDER="programs"| function benchmarkLoop(iterations: number, operation: () => void): void { | |
| const times: number[] = []; | |
| for (let i = 0; i < iterations; i++) { | |
| const start = performance.now(); | |
| operation(); | |
| const end = performance.now(); | |
| times.push(end - start); |
| #!/bin/bash | |
| set -e | |
| THING_GROUP_NAME="changeme" | |
| THING_NAMES=( | |
| "thing1" | |
| "thing2" | |
| ) |
| #!/bin/bash | |
| set -e | |
| # Name of the branch to merge all the pull requests into. | |
| MERGE_BRANCH="staging" | |
| # Name of the branch to hard reset to before merging others into it. | |
| RESET_BRANCH="master" |
| # https://stackoverflow.com/questions/21184720/how-to-rename-files-and-folder-in-amazon-s3 | |
| BUCKET="your-bucket" | |
| OLD_FOLDER="changeme" | |
| NEW_FOLDER="changeme" | |
| aws s3 --recursive mv s3://${BUCKET}/${OLD_FOLDER} s3://${BUCKET}/${NEW_FOLDER} |
| # Install dependencies | |
| # - pip install sagemaker | |
| # | |
| # https://pypi.org/project/sagemaker/ | |
| # https://docs.aws.amazon.com/sagemaker/latest/dg/experiments-cleanup.html | |
| from sagemaker.experiments.experiment import Experiment | |
| # In SageMaker Studio: | |
| # 1. Click "Experiments" |