Last active
May 2, 2021 10:59
-
-
Save gitspilo/570bcca308f6573bc0aef88850e63fbf to your computer and use it in GitHub Desktop.
Terminal 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
Vim | |
vim ~/.bash_profile (file view, edit, save) | |
cat file path (for file view) | |
pwd (for path print) | |
Git | |
git co (brance name) check out branch | |
git co -b (new brance name) create new branch | |
git status | |
git diff | |
git add | |
git diffc | |
git reset <file path> | |
git commit -m (message) | |
git reset —soft HEAD~ | |
git reset —hard HEAD~ | |
git stash | |
git stash list | |
git stash apply stash@{n} | |
git branch -m <new-name> (rename branch name) | |
git branch -d <branchname> (remove branch) | |
git undo-commit (for undo commit) | |
git pull --rebase | |
git commit --amend -m <update commit string> | |
git cherry-pick <commit number> | |
git submodule update --init --recursive | |
git merge --abort | |
xcrun simctl list devices | |
react-native run-ios --simulator 'iPad 2' | |
Pod | |
pod repo remove master | |
pod setup | |
pod install | |
brew install ruby | |
brew link --overwrite ruby | |
sudo gem update --system | |
sudo gem install cocoapods | |
sudo gem which cocoapods | |
sudo lsof -i :<port number> | |
kill -9 <PID> | |
killAll node | |
Set mode command | |
chmode 555 …path | |
ls -la …path | |
proxy | |
mitmproxy --no-mouse | |
export HTTP_PROXY=http://127.0.0.1:8080 | |
export NODE_TLS_REJECT_UNAUTHORIZED=0 | |
fastlane | |
export PATH="$HOME/.fastlane/bin:$PATH" | |
adb shell setprop debug.firebase.analytics.app com.pgs.emmasdiary | |
psql loyalty_receipts < ~/loyalty_receipts.sql | |
psql loyalty_receipts < ~/Downloads/Receipt\ Data\ 2019-07-16.sql | |
pg_restore --verbose --clean --no-acl --no-owner -h <host> -U <user> -d <database> ~/Downloads/staging-db.dump | |
heroku database transfer | |
1.generate url | |
heroku pg:backups public-url <backup name> --app <app name> | |
ex: heroku pg:backups public-url b002 --app checkbee-backend | |
2. | |
heroku pg:backups restore <‘generate url’> <datebase-name> -a <app-name> | |
ex: heroku pg:backups restore <URL generate from 1> <datebase-name from heroku> -a <app name> | |
ex: heroku pg:backups restore 'https://xfrtu.s3.amazonaws.com/97454aef-77c3-48d7-bad7-f34686e8f830/2020-03-30T12%3A31%3A52Z/f4bfaf2b-c25f-46e5-b240-223e2d05d9ed?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ5HNUZMBKBNNOSYQ%2F20200330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200330T131016Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=8a790a38aba584248a9fead75e81c8cbf9a760d750d68a26eed019550746b405' postgresql-polished-78677 -a checkbee | |
AWS | |
aws dynamodb list-tables | |
yarn | |
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1 (version down command) | |
ngrok | |
./ngrok http 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment