- Download a Raspbian image (latest is usually a safe bet)
- Download and install Etcher: https://www.balena.io/etcher/
- Write image to SD Card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List snapshots | |
tmutil listlocalsnapshots / | |
> com.apple.TimeMachine.2021-03-07-222748.local | |
> com.apple.TimeMachine.2022-03-07-222748.local | |
# Delete a snapshot | |
sudo tmutil deletelocalsnapshots 2022-03-07-222748 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Source: https://stackoverflow.com/a/64836177/138392 | |
# Prequisites: MacOS and Android Studio 4+ installed | |
# Usage: bash remove-android-studio.sh | |
# Deletes the Android Studio application | |
# Note that this may be different depending on what you named the application as, or whether you downloaded the preview version | |
rm -Rf /Applications/Android\ Studio.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"mnemonic": "LD A, A", | |
"opCode": "7F", | |
"flags": {}, | |
"bytes": 1, | |
"cycles": "1", | |
"description": "Load the contents of register A into register A." | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const kb = 32 * 1024; | |
const buf = Buffer.alloc(kb); | |
const ws = fs.createWriteStream("out.bin") | |
buf.fill(0xEA) | |
ws.write(buf); | |
ws.end(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Troubleshoot RNW dependencies | |
param( | |
[switch]$Install = $false, | |
[switch]$NoPrompt = $false, | |
[switch]$Clone = $false, | |
[Parameter(ValueFromRemainingArguments)] | |
[ValidateSet('appDev', 'rnwDev', 'buildLab', 'vs2019', 'clone')] | |
[String[]]$Tags = @('appDev') | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 cp s3://bucket-name/optional-path ./local/path --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun simctl list | |
xcrun simctl create <Your sim name> <Device id> <Runtime id> | |
# Eg: xcrun simctl create XS-Max-13-3 com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max com.apple.CoreSimulator.SimRuntime.iOS-13-3 | |
xcrun simctl boot <UUID from create command> | |
open -a Simulator --args -CurrentDeviceUDID <UUID from create command> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 presign s3://bucket-name/folder/file.ext [--profile your-aws-profile] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
collisionCategories: { | |
mario: 1, | |
barrier: 2, | |
platform: 4, | |
ladder: 8, | |
barrel: 16 | |
} | |
} |
NewerOlder