Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View amoljore751986's full-sized avatar

Amol Jore amoljore751986

  • Radixhealth, AltusAI
  • Pune
View GitHub Profile
@amoljore751986
amoljore751986 / psql_useful_stat_queries.sql
Created November 23, 2019 09:09 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
@amoljore751986
amoljore751986 / aliases.sh
Created November 23, 2019 09:09 — forked from anvk/aliases.sh
Alias commands
alias gti='git'
alias ll='ls -la'
alias mymongo='mongod --dbpath /Users/anvk/Documents/mongo.data/db/'
alias mypsql='postgres -D /usr/local/var/postgres'
alias mychange='git add . && git commit -m "change" && git rebase -i HEAD~2 && git push -f --set-upstream origin'
alias mykillemmulator='$ANDROID_HOME/platform-tools/adb -s emulator-5554 emu kill'
alias mypush='git push -f -u origin HEAD'
alias myrebase='git checkout develop && git fetch upstream && git pull upstream develop && git checkout - && git rebase develop'