Skip to content

Instantly share code, notes, and snippets.

View khushalbokadey's full-sized avatar

Khushal bokadey khushalbokadey

  • Bangalore, India
View GitHub Profile
@khushalbokadey
khushalbokadey / postgres.md
Last active May 20, 2021 15:20
Postgres basic user operations

After installation of postgres, login using superuser.

sudo su - postgres

List all the databases" \l

    postgres=# \l
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   

-----------+----------+----------+-------------+-------------+-----------------------

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
@khushalbokadey
khushalbokadey / vscode.conf
Created October 3, 2019 19:03
VS Code Settings
{
"editor.minimap.enabled": false,
"editor.formatOnType": true,
"window.zoomLevel": 0,
"editor.fontSize": 16,
"explorer.openEditors.visible": 0,
"editor.wordWrap": "on",
"workbench.colorTheme": "Plastic",
"search.useIgnoreFiles": false,
"workbench.editor.enablePreview": false,
[user]
name = <Name>
email = <email>
[color]
status = auto
branch = auto
ui = auto
interactive = auto
[alias]
br = branch
@khushalbokadey
khushalbokadey / ubuntu-wifi-issue
Created June 30, 2019 19:24
Ubuntu wifi issue links
https://askubuntu.com/a/1077559
https://coffeencoding.com/nodejs-auto-lint-format-on-git-commit-with-airbnb-styleguide/
@khushalbokadey
khushalbokadey / sails-store.txt
Created January 9, 2019 08:25
Get sails store settings
Run `sails console`.
Run `sails.io.settings.store`
@khushalbokadey
khushalbokadey / clean-meld-settings.sh
Created December 13, 2018 05:59
Clean meld settings for mac
#!/bin/bash
cd ${HOME}
rm -rf ./.local/share/meld
rm -f ./Library/Preferences/org.gnome.meld.plist
rm -rf "./Library/Saved Application State/org.gnome.meld.savedState/"
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@khushalbokadey
khushalbokadey / using-raw-socket-io-in-sails.js
Created August 27, 2018 07:37 — forked from mikermcneil/using-raw-socket-io-in-sails.js
Using raw socket.io functionality in a Sails.js controller
module.exports = {
/**
*
* Using raw socket.io functionality from a Sails.js controller
*
*/
index: function (req,res) {