mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Update various things
This commit is contained in:
15
eslintrc.js
15
eslintrc.js
@@ -3,11 +3,10 @@ module.exports = {
|
|||||||
'installedESLint': true,
|
'installedESLint': true,
|
||||||
'plugins': [
|
'plugins': [
|
||||||
'standard'
|
'standard'
|
||||||
]
|
],
|
||||||
// ,
|
'rules': {
|
||||||
// 'rules': {
|
'semi': [2, 'always'],
|
||||||
// 'semi': [2, 'always'],
|
'no-extra-semi': 2,
|
||||||
// 'no-extra-semi': 2,
|
'semi-spacing': [2, { 'before': false, 'after': true }]
|
||||||
// 'semi-spacing': [2, { 'before': false, 'after': true }]
|
}
|
||||||
// }
|
};
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Jim Myhrberg
|
name = Jim Myhrberg
|
||||||
email = contact@jimeh.me
|
email = contact@jimeh.me
|
||||||
signingkey = 6BBB670E
|
signingkey = 887AA501FE5A45FA
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
[color]
|
[color]
|
||||||
|
|||||||
@@ -78,6 +78,10 @@ install_nvm () {
|
|||||||
git_clone 'https://github.com/creationix/nvm.git' "$TARGET/.nvm"
|
git_clone 'https://github.com/creationix/nvm.git' "$TARGET/.nvm"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_gvm () {
|
||||||
|
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||||
|
}
|
||||||
|
|
||||||
install_virtualenv () {
|
install_virtualenv () {
|
||||||
curl -s https://raw.github.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | bash
|
curl -s https://raw.github.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | bash
|
||||||
}
|
}
|
||||||
@@ -140,6 +144,9 @@ case "$1" in
|
|||||||
nvm)
|
nvm)
|
||||||
install_nvm
|
install_nvm
|
||||||
;;
|
;;
|
||||||
|
gvm)
|
||||||
|
install_gvm
|
||||||
|
;;
|
||||||
virtualenv|venv)
|
virtualenv|venv)
|
||||||
install_virtualenv
|
install_virtualenv
|
||||||
;;
|
;;
|
||||||
@@ -163,6 +170,7 @@ case "$1" in
|
|||||||
echo ' homebrew: Install Homebrew (Mac OS X only).'
|
echo ' homebrew: Install Homebrew (Mac OS X only).'
|
||||||
echo ' rbenv: Install rbenv, a Ruby version manager.'
|
echo ' rbenv: Install rbenv, a Ruby version manager.'
|
||||||
echo ' nvm: Install nvm, a Node.js version manager.'
|
echo ' nvm: Install nvm, a Node.js version manager.'
|
||||||
|
echo ' gvm: Install gvm, a Go version manager.'
|
||||||
echo ' virtualenv: Install virtualenv-burrito, a Python version and' \
|
echo ' virtualenv: Install virtualenv-burrito, a Python version and' \
|
||||||
'environment manager.'
|
'environment manager.'
|
||||||
echo ' dokku: Clone dokku to ~/.dokku enabling use of' \
|
echo ' dokku: Clone dokku to ~/.dokku enabling use of' \
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
AllCops:
|
||||||
|
TargetRubyVersion: 2.1
|
||||||
|
|
||||||
Rails:
|
Rails:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -40,8 +40,10 @@ source "$DOTSHELL/python.sh"
|
|||||||
source "$DOTSHELL/ruby.sh"
|
source "$DOTSHELL/ruby.sh"
|
||||||
source "$DOTSHELL/golang.sh"
|
source "$DOTSHELL/golang.sh"
|
||||||
source "$DOTSHELL/docker.sh"
|
source "$DOTSHELL/docker.sh"
|
||||||
|
source "$DOTSHELL/kubernetes.sh"
|
||||||
source "$DOTSHELL/dokku.sh"
|
source "$DOTSHELL/dokku.sh"
|
||||||
source "$DOTSHELL/sbcl.sh"
|
source "$DOTSHELL/sbcl.sh"
|
||||||
|
source "$DOTSHELL/travis-ci.sh"
|
||||||
source "$DOTSHELL/amdsdk.sh"
|
source "$DOTSHELL/amdsdk.sh"
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ alias d="docker"
|
|||||||
alias co="docker-compose"
|
alias co="docker-compose"
|
||||||
alias dc="docker-cloud"
|
alias dc="docker-cloud"
|
||||||
|
|
||||||
alias redis-cli="docker run -it --net=host --rm redis redis-cli"
|
# alias redis-cli="docker run -it --net=host --rm redis redis-cli"
|
||||||
alias mysql="docker run -it --net=host --rm mysql mysql"
|
# alias mysql="docker run -it --net=host --rm mysql mysql"
|
||||||
|
|
||||||
docker_remove_exited () {
|
docker_remove_exited () {
|
||||||
docker rm $(docker ps -f="status=exited" -q)
|
docker rm $(docker ps -f="status=exited" -q)
|
||||||
|
|||||||
@@ -2,8 +2,21 @@
|
|||||||
# Go (golang) environment setup.
|
# Go (golang) environment setup.
|
||||||
#
|
#
|
||||||
|
|
||||||
export GOPATH="$HOME/.go:$HOME/Projects/Go"
|
export MYGOPATH="$HOME/Projects/Go"
|
||||||
path_prepend "$HOME/Projects/Go/bin:$HOME/.go/bin"
|
|
||||||
|
# load gvm
|
||||||
|
[[ -s "/Users/jimeh/.gvm/scripts/gvm" ]] && source "/Users/jimeh/.gvm/scripts/gvm"
|
||||||
|
|
||||||
|
# setup GOPATH after loading gvm
|
||||||
|
export GOPATH="$GOPATH:$MYGOPATH"
|
||||||
|
path_prepend "$MYGOPATH/bin"
|
||||||
|
|
||||||
|
# aliases
|
||||||
|
alias gv="govendor"
|
||||||
|
gvm-use() {
|
||||||
|
gvm use $@
|
||||||
|
export GOPATH="$GOPATH:$MYGOPATH"
|
||||||
|
}
|
||||||
|
|
||||||
install_go_global_packages () {
|
install_go_global_packages () {
|
||||||
local packages=( \
|
local packages=( \
|
||||||
@@ -13,9 +26,12 @@ install_go_global_packages () {
|
|||||||
github.com/golang/lint/golint \
|
github.com/golang/lint/golint \
|
||||||
github.com/kardianos/govendor \
|
github.com/kardianos/govendor \
|
||||||
github.com/kisielk/errcheck \
|
github.com/kisielk/errcheck \
|
||||||
|
github.com/kovetskiy/manul \
|
||||||
github.com/kr/pretty \
|
github.com/kr/pretty \
|
||||||
github.com/laher/goxc \
|
github.com/laher/goxc \
|
||||||
|
github.com/mailgun/godebug \
|
||||||
github.com/mdempsky/unconvert \
|
github.com/mdempsky/unconvert \
|
||||||
|
github.com/mitchellh/gox \
|
||||||
github.com/motemen/gore \
|
github.com/motemen/gore \
|
||||||
github.com/nsf/gocode \
|
github.com/nsf/gocode \
|
||||||
github.com/pmezard/go-difflib/difflib \
|
github.com/pmezard/go-difflib/difflib \
|
||||||
@@ -24,6 +40,8 @@ install_go_global_packages () {
|
|||||||
github.com/tools/godep \
|
github.com/tools/godep \
|
||||||
github.com/vektra/mockery/.../ \
|
github.com/vektra/mockery/.../ \
|
||||||
golang.org/x/tools/cmd/goimports \
|
golang.org/x/tools/cmd/goimports \
|
||||||
|
golang.org/x/tools/cmd/gorename \
|
||||||
|
golang.org/x/tools/cmd/guru \
|
||||||
launchpad.net/gorun \
|
launchpad.net/gorun \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
10
shell/kubernetes.sh
Normal file
10
shell/kubernetes.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#
|
||||||
|
# Kubernetes Related
|
||||||
|
#
|
||||||
|
|
||||||
|
alias kc="kubectl"
|
||||||
|
alias hl="helm"
|
||||||
|
|
||||||
|
if command -v kubectl > /dev/null; then
|
||||||
|
eval "$(kubectl completion zsh)"
|
||||||
|
fi
|
||||||
3
shell/nodejs.sh
Normal file → Executable file
3
shell/nodejs.sh
Normal file → Executable file
@@ -20,13 +20,16 @@ install_node_global_packages () {
|
|||||||
eslint-plugin-react \
|
eslint-plugin-react \
|
||||||
eslint-plugin-standard \
|
eslint-plugin-standard \
|
||||||
eslint-plugin-standard \
|
eslint-plugin-standard \
|
||||||
|
htmllint-cli \
|
||||||
jsfmt \
|
jsfmt \
|
||||||
jslinter \
|
jslinter \
|
||||||
jsonlint \
|
jsonlint \
|
||||||
|
localtunnel \
|
||||||
semistandard \
|
semistandard \
|
||||||
semistandard-format \
|
semistandard-format \
|
||||||
standard \
|
standard \
|
||||||
standard-format \
|
standard-format \
|
||||||
|
stylefmt \
|
||||||
tslint \
|
tslint \
|
||||||
typescript \
|
typescript \
|
||||||
typescript-formatter
|
typescript-formatter
|
||||||
|
|||||||
@@ -2,6 +2,16 @@
|
|||||||
# Ruby environment setup.
|
# Ruby environment setup.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
install_ruby_global_packages () {
|
||||||
|
gem install --no-rdoc --no-ri \
|
||||||
|
bundler \
|
||||||
|
foreman \
|
||||||
|
rubocop \
|
||||||
|
lunchy \
|
||||||
|
rbenv-rehash \
|
||||||
|
travis
|
||||||
|
}
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
alias po="powify"
|
alias po="powify"
|
||||||
alias lu="lunchy"
|
alias lu="lunchy"
|
||||||
|
|||||||
5
shell/travis-ci.sh
Normal file
5
shell/travis-ci.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#
|
||||||
|
# Travis-CI
|
||||||
|
#
|
||||||
|
|
||||||
|
[ -f /Users/jimeh/.travis/travis.sh ] && source /Users/jimeh/.travis/travis.sh
|
||||||
Reference in New Issue
Block a user