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"
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 | |
# Delete all local branches whose remote branch no longer exists. | |
git branch -v | grep -E "[0-9a-zA-Z]{7} \[gone\]" | awk '{ print $1 }' | xargs git branch -D $1 | |
# The commmand explained: | |
# |
#!/bin/bash | |
set -e | |
THING_GROUP_NAME="changeme" | |
THING_NAMES=( | |
"thing1" | |
"thing2" | |
) |
#!/bin/bash | |
# For when you have a train of pull requests lined up like A -> B -> C -> D | |
# and you make a change to base D that you now want backmerged to C then B then A. | |
set -e | |
# ---------------------------------------------------------------------------- | |
# List the pull request number (e.g. 42) in order that the backmerges |
/** | |
* https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_interface_QuickAction_QuickActionDefaultsHandler.htm | |
*/ | |
public class EmailQuickActionDefaultsHandler implements QuickAction.QuickActionDefaultsHandler { | |
public void onInitDefaults( QuickAction.QuickActionDefaults[] actionDefaults ) { | |
for ( QuickAction.QuickActionDefaults actionDefault : actionDefaults ) { | |
System.debug( actionDefault ); |
/** | |
* Developed by Doug Ayers (douglascayers.com) | |
* Org62 Case 16584902 | |
* GUS W-006274 | |
* | |
* This test creates a file "new document.txt" with contents "Hello World" | |
* in an external data source, such as Google Drive or SharePoint Online. | |
* | |
* Despite being a unit test it has real side effects in the external system. | |
* |
<!-- | |
Simple proof-of-concept to create a .ics calendar event with visualforce. | |
Inspired by Natalie Regier @gnatrae | |
This example uses url parameters to set the details of event. | |
You could create a custom button that invokes this page, like: | |
https://<your-salesforce-domain>/apex/vCalendarPage?start={!TEXT(Obj.StartDate__c)}&end={!TEXT(Obj.EndDate__c)}&subject=Event from Visualforce&description=This .ics event created with visualforce&location=The Cloud | |
An example with literal values you can copy & paste in your browser: | |
https://<your-salesforce-domain>/apex/vCalendarPage?start=20140524T140000&end=20140524T153000&subject=Event from Visualforce&description=This .ics event created with visualforce&location=The Cloud |
# 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" |