Skip to content

Instantly share code, notes, and snippets.

@huynle
huynle / docker-aliases.sh
Created June 29, 2021 15:08 — forked from jgrodziski/docker-aliases.sh
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@huynle
huynle / .tmux.conf
Last active June 26, 2020 07:02
tmux configuration
# Use 'tmux list-keys' to see all the key bindings
#### GOOD STUFF comes from here ####
# https://github.com/gpakosz/.tmux/blob/master/.tmux.conf
# -- general -------------------------------------------------------------------
# Set Terminal colors; enable terminal compability
### This is the article you would want to be reading
# https://github.com/tmux/tmux/issues/696
set -g default-shell $SHELL
# set -g default-terminal "xterm-256color"
@huynle
huynle / vimrc
Created March 24, 2020 17:55
quick vimrc to setup on servers
" General {{{
set mouse=nv " Disable mouse in command-line mode
set modeline " automatically setting options from modelines
set lazyredraw
set report=0 " Don't report on line changes
set errorbells " Trigger bell on error
set visualbell " Use visual bell instead of beeping
set hidden " hide buffers when abandoned instead of unload
set fileformats=unix,dos,mac " Use Unix as the standard file type
set magic " For regular expressions turn magic on
@huynle
huynle / screenrc
Last active January 17, 2020 16:13
screenrc dotfile
# Add this to your bashrc to get reopen the same screen whenever SSH
# # alias dev="screen -DR dev"
# for esc to work with vim
maptimeout 5
# this is needed for term colors to work
term screen-256color
# term screen
@huynle
huynle / keybindings.json
Last active November 18, 2019 23:53
vscode keybinding for vim
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight",
@huynle
huynle / settings.json
Last active November 18, 2019 23:43
vs code settings
{
"window.menuBarVisibility": "default",
"editor.fontSize": 12,
"window.zoomLevel": 0,
"editor.minimap.enabled": false,
"breadcrumbs.enabled": true,
"workbench.activityBar.visible": false,
"workbench.statusBar.visible": true,
"workbench.sideBar.location": "left",
"zenMode.hideStatusBar": false,
$0=10
$1=25
$2=0
$3=3
$4=0
$5=1
$6=0
$10=0
$11=0.010
$12=0.002
@huynle
huynle / pip.conf
Created May 3, 2018 22:25
pip.ini (Windows) or pip.conf (unix) for proxy
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
proxy = http://[domain name]%5C[username]:[password]@[proxy address]:[proxy port]
@huynle
huynle / .gitconfig
Created May 2, 2018 17:41
.gitconfig for windows
[core]
editor = gvim
excludesfile = /home/hle/.gitignore
autocrlf = input
safecrlf = false
[merge]
ff = only
tool = gvimdiff
conflictstyle = diff3
@huynle
huynle / gvim
Created May 2, 2018 17:40
$PATH:gvim for windows
#!/bin/sh
exec "/cygdrive/c/Program Files (x86)/Vim/vim80/gvim.exe" "$@"