Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
simonweil committed May 23, 2023
1 parent b81f1ac commit d411ec5
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 25 deletions.
3 changes: 3 additions & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
email = [email protected]
[credential]
helper = osxkeychain

[core]
editor = /usr/local/bin/nvim
excludesfile = ~/.dotfiles/gitignore_global
autocrlf = input
fsmonitor = true

[format]
signoff = true

Expand Down
11 changes: 6 additions & 5 deletions my-config/iterm.settings/com.googlecode.iterm2.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5674,7 +5674,7 @@
<key>ASCII Anti Aliased</key>
<true/>
<key>ASCII Ligatures</key>
<false/>
<true/>
<key>Allow Title Reporting</key>
<true/>
<key>Ambiguous Double Width</key>
Expand Down Expand Up @@ -6226,13 +6226,13 @@
<key>Name</key>
<string>Default</string>
<key>Non Ascii Font</key>
<string>DroidSansMonoNerdFontComplete- 11</string>
<string>DroidSansMonoNerdFontCompleteM-Regular 11</string>
<key>Non-ASCII Anti Aliased</key>
<true/>
<key>Non-ASCII Ligatures</key>
<true/>
<key>Normal Font</key>
<string>FiraCode-Regular 12</string>
<string>DroidSansMonoNerdFontComplete-Regular 12</string>
<key>Option Key Sends</key>
<integer>2</integer>
<key>Prompt Before Closing 2</key>
Expand Down Expand Up @@ -7242,10 +7242,11 @@
<integer>10</integer>
<key>ToolbeltTools</key>
<array>
<string>Jobs</string>
<string>Notes</string>
<string>Paste History</string>
<string>Profiles</string>
<string>Jobs</string>
<string>Snippets</string>
<string>Actions</string>
</array>
<key>TripleClickSelectsFullWrappedLines</key>
<false/>
Expand Down
2 changes: 1 addition & 1 deletion non-packaged-repos/LS_COLORS
Submodule LS_COLORS updated 4 files
+590 −750 LS_COLORS
+1 −1 README.markdown
+1 −1 lscolors.csh
+1 −1 lscolors.sh
2 changes: 1 addition & 1 deletion non-packaged-repos/vim-plug
14 changes: 3 additions & 11 deletions nvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,6 @@ endfun

" = Plugins setup = {{{
" =====================
let g:nvim_tree_show_icons = {
\ 'git': 1,
\ 'folders': 1,
\ 'files': 1,
\ 'folder_arrows': 1,
\ }

lua << EOF
require('nvim-web-devicons').setup()
require('telescope').setup()
Expand Down Expand Up @@ -722,7 +715,8 @@ lua << EOF
vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]]
end

local servers = { 'bashls', 'dockerls', 'jsonls', 'vimls', 'terraformls', 'jedi_language_server' }
local servers = { 'bashls', 'dockerls', 'jsonls', 'vimls', 'jedi_language_server', 'terraformls' }
-- removed 'terraformls', as it makes the editor slow
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
Expand All @@ -733,7 +727,7 @@ autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync()

" Indent Settings
let g:indent_blankline_filetype_exclude = ['help', 'nerdtree', 'git', 'vim-plug', 'man', 'lspinfo', 'packer', 'checkhealth', 'NvimTree']

let g:indent_blankline_use_treesitter_scope = v:true

" Number Toggle
let g:NumberToggleTrigger="<localleader>n"
Expand Down Expand Up @@ -823,8 +817,6 @@ if has('dontdoathis') " TODO: do I need this?
" ----------------------------------------------------------
" setup the projects: https://github.com/amiorin/vim-project
" ----------------------------------------------------------
" Enable Nerd treee
let g:project_use_nerdtree = 1

" Set my starting path
call project#rc("~/work/")
Expand Down
6 changes: 3 additions & 3 deletions setup-scripts/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ $(brew info fzf | grep /install)
#brew install docker-clean
brew install lazygit lazydocker skanehira/docui/docui gitui
#brew install liamg/tfsec/tfsec
#brew install tflint
#brew install pre-commit
brew install tflint
brew install pre-commit
#npm install -g markdown-link-check
#kube-aws gimme-aws-creds awsume
brew install tfenv
brew install iam-policy-json-to-terraform
brew install minamijoyo/tfupdate/tfupdate # a tool to update TF version constraints
brew install hashicorp/tap/terraform-ls
brew install thecasualcoder/stable/tf-summarize

# TF tools to test:
#https://github.com/flosell/iam-policy-json-to-terraform
#https://github.com/minamijoyo/tfschema
#https://github.com/minamijoyo/tfupdate
#https://github.com/hieven/terraform-visual

# Security Tools
Expand Down
4 changes: 2 additions & 2 deletions setup-scripts/Nativefierfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create OSX icons: https://iconverticons.com/online/
MY_APPS_DIR="$HOME/myapps"
#mkdir $MY_APPS_DIR
nativefier --name Gmail --show-menu-bar --user-agent firefox --internal-urls ".*?\.google\.*?" https://www.gmail.com "$MY_APPS_DIR"
mkdir $MY_APPS_DIR
nativefier --name Gmail --show-menu-bar --internal-urls ".*?\.google\.*?" "https://mail.google.com/" "$MY_APPS_DIR"
#nativefier --name TweetDeck https://tweetdeck.twitter.com "$MY_APPS_DIR"
nativefier --name "Google Calendar" --user-agent firefox --internal-urls ".*\.(okta|google)\..*" --show-menu-bar http://calendar.google.com/ "$MY_APPS_DIR"
nativefier --name "Google Keep" --internal-urls ".*\.(okta|google)\..*" --show-menu-bar http://keep.google.com/ "$MY_APPS_DIR"
Expand Down
3 changes: 2 additions & 1 deletion setup-scripts/Pipfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export PATH="/opt/homebrew/opt/[email protected]/libexec/bin:$PATH"
export PATH="/usr/local/opt/python/libexec/bin/python:$PATH"
#export PATH="/opt/homebrew/opt/[email protected]/libexec/bin:$PATH"
# development
pip install virtualenv
pip install virtualenvwrapper
Expand Down
3 changes: 3 additions & 0 deletions sshconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ Host *
UseKeychain yes
Host github.com
IdentityFile ~/.ssh/id_ed25519

host i-* mi-*
ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
1 change: 1 addition & 0 deletions terraformrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"
17 changes: 16 additions & 1 deletion zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ gc() {

alias gc-='git checkout -'
alias gcd='git checkout develop'
alias gcs='git checkout staging'
alias gcm='git checkout master'
alias gcp='git cherry-pick --signoff -x'
alias git_commit_files="git diff-tree --no-commit-id --name-status -r"
Expand Down Expand Up @@ -357,7 +358,11 @@ ql () { qlmanage -p "$*" >& /dev/null & }
# Terraform #
#############
alias tf-reset="find ~ -type d -name ".terraform" -exec rm -rf {} +"
alias tfp="terraform plan -out plan.out && terraform show plan.out | less -R"
tfp() {
terraform plan -parallelism=20 -out plan.out $* && terraform show plan.out | less -R
}
alias tfsummarize="terraform show -json plan.out | tf-summarize -tree"
alias tfshow="terraform show plan.out | less -R"
alias tfv="terraform validate"
alias tfi="terraform init"
alias tfc="terraform console"
Expand Down Expand Up @@ -466,6 +471,16 @@ aws-login() {
aws-whoami
}

aws-change-account() {
if [[ "$1" != "" ]]; then
profile="$1"
else
profile="$(aws configure list-profiles | grep --color=none superadmi | fzf)"
fi

export AWS_PROFILE="$profile"
}

aws-logout() {
aws sso logout
unset AWS_PROFILE
Expand Down

0 comments on commit d411ec5

Please sign in to comment.