- Disable Windows Fast-Startup
- Disable Secure Boot
This file contains hidden or 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
-- Accepted answer from here: https://stackoverflow.com/questions/5408156/how-to-drop-a-postgresql-database-if-there-are-active-connections-to-it | |
SELECT pg_terminate_backend(pg_stat_activity.pid) | |
FROM pg_stat_activity | |
WHERE pg_stat_activity.datname = '[your database name goes here]' | |
AND pid <> pg_backend_pid(); |
This file contains hidden or 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
{ | |
"tsserver.npm": "/Users/eddielaw/.nvm/versions/node/v12.9.1/bin/npm ", | |
"coc.preferences.diagnostic.displayByAle": true, | |
"coc.preferences.diagnostic.enable": false, | |
"javascript": { | |
"validate.enable": false, | |
"format": { | |
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true | |
} | |
}, |
This file contains hidden or 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
set ignorecase | |
set smartcase | |
set scrolloff=3 " 3 lines above/below cursor when scrolling | |
set surround | |
set showmatch | |
set relativenumber | |
set nowrap | |
nnoremap + 40<c-w>> | |
nnoremap - 40<c-w>< |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am arcq on github. | |
* I am arcq (https://keybase.io/arcq) on keybase. | |
* I have a public key ASDEM8_koo63IyQxG0z5mCoMOo4F7A9a7XL1EsfGhw_MNAo | |
To claim this, I am signing this object: |
This file contains hidden or 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
set -sg escape-time 0 | |
set-option -g default-terminal "screen-256color" | |
bind h select-pane -L \; display-pane | |
bind j select-pane -D \; display-pane | |
bind k select-pane -U \; display-pane | |
bind l select-pane -R \; display-pane | |
bind-key H resize-pane -L 40 | |
bind-key J resize-pane -D 40 | |
bind-key K resize-pane -U 40 | |
bind-key L resize-pane -R 40 |
This file contains hidden or 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
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
brew install vim | |
brew install tmux | |
git clone https://github.com/tomasr/molokai.git | |
mv molokai/ ~/.vim/colors/ | |
#make sure to :PluginInstall for vundle | |
brew install cmake | |
cd ~/.vim/bundle/YouCompleteMe && ./install.py |
This file contains hidden or 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
[filter "media"] | |
clean = git media clean %f | |
smudge = git media smudge %f | |
required = true | |
[user] | |
name = Eddie Law | |
email = eddielaw296@gmail.com | |
[core] | |
editor = /usr/local/Cellar/vim/7.4.2152/bin/vim | |
[alias] |
This file contains hidden or 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
#Usage: python autoVimrc.py (pull || push) | |
import subprocess | |
import sys | |
import os.path | |
import getpass | |
def main(): | |
funcStr = sys.argv[1] | |
globals()[funcStr]() |
This file contains hidden or 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
#terminal color | |
# export CLICOLOR=1 | |
# export LSCOLORS=gxGxBxDxCxgggdxbxgxcxd | |
export TERM="xterm-256color" | |
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\033[33;1m\]\w\[\033[m\]\$ ' | |
# export GREP_OPTIONS-'--color=auto' | |
alias tmux='tmux -2' | |
source ~/.bin/tmuxinator.bash | |
alias ls='ls -a' |
NewerOlder