I’ve had success using Homebrew in a multi-user environment the following way:
Create a new (non-GUI) user, group and home directory:
sudo /usr/sbin/sysadminctl -addUser brew \
-fullName 'Homebrew' -admin -home /var/brew \
-password - -UID 430 \
NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
cat test.json | jq -c '.[]' > testNDJSON.json
| (& docker images --all --quiet --filter 'dangling=true') | Foreach-Object { | |
| & docker rmi $_ | out-null | |
| } | |
| (& docker ps --quiet --filter 'status=exited' ) | Foreach-Object { | |
| & docker rm $_ | out-null | |
| } |
| 'use strict'; | |
| console.log('// loading function'); | |
| const aws = require('aws-sdk'); | |
| const s3 = new aws.S3({apiVersion: '2006-03-01'}); | |
| const gzip = require('zlib').createGunzip(); | |
| const fs = require('fs'); |
| { | |
| "sort": ["_doc"], | |
| "size": 100, | |
| "query": { | |
| "bool": { | |
| "must": { | |
| "match_all": {} | |
| }, | |
| "filter": { | |
| ... |
| tell application "Microsoft Word" | |
| activate | |
| set currentZoom to percentage of zoom of view of active window | |
| set newZoom to (round (currentZoom + 50) / 50) * 50 | |
| log newZoom | |
| if newZoom <= 500 then | |
| set percentage of zoom of view of active window to newZoom | |
| end if | |
| end tell |
| DECLARE @MaxResultCount int = 500; | |
| SELECT AvgCPU, AvgDuration, AvgReads, AvgCPUPerMinute, | |
| TotalCPU, TotalDuration, TotalReads, | |
| PercentCPU, PercentDuration, PercentReads, PercentExecutions, | |
| ExecutionCount, | |
| ExecutionsPerMinute, | |
| PlanCreationTime, LastExecutionTime, | |
| SUBSTRING(st.text, | |
| (StatementStartOffset / 2) + 1, |
Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh
Easily checkout local copies of pull requests from remotes:
git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it outgit pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out