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"
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" |
#!/usr/bin/env zsh | |
# Update Heroku CLI | |
# https://devcenter.heroku.com/articles/heroku-cli | |
echo "Updating heroku..." | |
heroku login | |
heroku update | |
heroku autocomplete --refresh-cache | |
# Update Salesforce CLI |
require "CSV" | |
items = [] | |
# The ips.csv data comes from copying the HTML table of IP ranges | |
# from the Salesforce profile in the UI from the org you want to copy. | |
# Workaround when you don't have metadata api access to the org to copy from. | |
CSV.foreach("ips.csv") do |row| | |
items << <<~XML | |
<loginIpRanges> |