ALTER TABLE logs.trades CHANGE recentprice price int;
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
robbyrussell/oh-my-zsh path:plugins/git | |
robbyrussell/oh-my-zsh path:plugins/command-not-found | |
robbyrussell/oh-my-zsh path:plugins/docker | |
zsh-users/zsh-syntax-highlighting | |
robbyrussell/oh-my-zsh path:lib | |
robbyrussell/oh-my-zsh path:themes/gianu.zsh-theme | |
# win0err/aphrodite-terminal-theme path:aphrodite.zsh-theme |
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
filetype plugin indent on | |
syntax on | |
set number | |
set tabstop=4 | |
set softtabstop=4 | |
set showcmd | |
set cursorline | |
set incsearch | |
set hlsearch |
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
[pull] | |
rebase = true | |
[user] | |
name = Manoj Karthick Selva Kumar | |
email = email@example.com | |
[alias] | |
unstage = reset HEAD -- | |
co = checkout | |
br = branch | |
ci = commit |
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
# Kubectl auto-complete | |
source <(kubectl completion zsh) # setup autocomplete in zsh into the current shell | |
# Kube PS1 | |
source "/usr/local/opt/kube-ps1/share/kube-ps1.sh" | |
function get_cluster_short() { | |
echo "$1" | cut -d / -f2 | |
} | |
export KUBE_PS1_SYMBOL_ENABLE=false | |
export KUBE_PS1_CLUSTER_FUNCTION=get_cluster_short |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ZSH="/Users/m.kumar1/.oh-my-zsh" | |
ZSH_THEME="gianu" | |
DISABLE_AUTO_UPDATE="true" | |
plugins=(git fzf terraform dircycle) |
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
[pull] | |
rebase = true | |
[alias] | |
st = status | |
co = checkout | |
br = branch | |
ci = commit | |
cm = commit -m | |
unstage = reset HEAD -- | |
ui = pull upstream integration |
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
That's awesome. | |
I've set mine up with highlight (instead of source-highlight) like this: | |
### Terminal Syntax Highlighting | |
# Setup: "brew install highlight" | |
# Pipe Highlight to less | |
export LESSOPEN="| $(which highlight) %s --out-format xterm256 --line-numbers --quiet --force --style solarized-light" |
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
!tables - list all tables | |
!describe {table name} - detailed description of the table | |
DROP TABLE IF EXISTS my_table; - drops the table named my_table | |
SELECT * FROM my_table LIMIT 1000; - selects all columns from my_table limiting the result set to 1000 records | |
DELETE FROM my_table WHERE ID= 321; - deletes a record from my_table where the primary Id is equal to 321 | |
CREATE INDEX idx_last_updated_date ON sales.opportunity(last_updated_date DESC) - Creates a secondary index on a table or view. The index is kept in sync with the table as data changes. At query time, the optimizer will use the index if it contains all columns referenced in the query to produce an efficient execution plan. | |
!quit - quites SQLLine client |
I hereby claim:
- I am manojkarthick on github.
- I am manojkarthick (https://keybase.io/manojkarthick) on keybase.
- I have a public key ASA3FWG-jhUvFQbSjKD-ozXDcmm80uZD3XIyOgDVUT1e1go
To claim this, I am signing this object: