Skip to content

Instantly share code, notes, and snippets.

View matthewblott's full-sized avatar

Matthew Blott matthewblott

View GitHub Profile
#!/usr/bin/env bash
brew link php@7.4
#!/usr/bin/env bash
# See ...
# https://www.tutorialspoint.com/docker
# https://docs.docker.com/engine/reference/commandline/docker/
# ====
# Hubs
# ====
#!/usr/bin/env bash
# new project
npx react-native init appname
# new project using expo
expo init app-name
#!/usr/bin/env bash
touch file1
p="$(pwd)/file1"
echo $(dirname $p)
#!/usr/bin/env bash
touch file1
p="$(pwd)/file1"
echo $(basename $p)
#!/usr/bin/env bash
dir=$(pwd)
for f in $dir/*; do
echo $f
done
#!/usr/bin/env bash
# May need to run the following script for M1 machines:
# ~/Library/Android/sdk/emulator/darwin-aarch64-replace.sh
# For orientation to work the rotation setting on the device needs to be enabled
# create device
avdmanager create avd \
--name device-name \
#!/usr/bin/env bash
### ======
### Doctor
### ======
# android check
ns doctor android
#!/usr/bin/env bash
PORT=8080
ss -ltnup 'sport = :$PORT'