Skip to content

Instantly share code, notes, and snippets.

View krish-penumarty's full-sized avatar

Krish Penumarty krish-penumarty

  • Webflow
View GitHub Profile
@krish-penumarty
krish-penumarty / postgres_commands.sql
Last active March 14, 2020 15:10
Helpful Postgres Commands
-- All active connections on current database
SELECT * FROM pg_stat_activity;
-- Get All roles in the database
SELECT rolname FROM pg_roles;
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
{
"terminal.integrated.shell.osx": "zsh",
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"markdown": "html"
},
"files.associations": {
".vuerc": "json",
".npmrc": "json"
},
[
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "workbench.action.closeAllEditors"
},
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/krishpenumarty/.oh-my-zsh"
export PATH="/usr/local/bin:$PATH"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
@krish-penumarty
krish-penumarty / cloudSettings
Last active September 17, 2019 01:27
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-17T01:27:30.401Z","extensionVersion":"v3.2.4"}