mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-19 13:50:54 +00:00
SSH signing, wtf config, editorconfig, updates
This commit is contained in:
24
.editorconfig
Normal file
24
.editorconfig
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
# indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
# max_line_length = 160
|
||||||
|
# tab_width = 4
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.sass]
|
||||||
|
# indent_size = 2
|
||||||
|
|
||||||
|
[{*.bash,*.sh,*.zsh}]
|
||||||
|
indent_size = 2
|
||||||
|
tab_width = 2
|
||||||
|
|
||||||
|
[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}]
|
||||||
|
# max_line_length = 110
|
||||||
|
|
||||||
|
[{*.yaml,*.yml}]
|
||||||
|
indent_size = 2
|
||||||
31
Brewfile
31
Brewfile
@@ -1,3 +1,4 @@
|
|||||||
|
tap "1password/tap"
|
||||||
tap "anchore/grype"
|
tap "anchore/grype"
|
||||||
tap "ddosify/tap"
|
tap "ddosify/tap"
|
||||||
tap "dm3ch/tap"
|
tap "dm3ch/tap"
|
||||||
@@ -30,10 +31,22 @@ brew "brew-php-switcher"
|
|||||||
brew "glib"
|
brew "glib"
|
||||||
# Manage compile and link flags for libraries
|
# Manage compile and link flags for libraries
|
||||||
brew "pkg-config"
|
brew "pkg-config"
|
||||||
# GNU File, Shell, and Text utilities
|
|
||||||
brew "coreutils"
|
|
||||||
# Open source suite of directory software
|
# Open source suite of directory software
|
||||||
brew "openldap"
|
brew "openldap"
|
||||||
|
# Libraries to talk to Microsoft SQL Server and Sybase databases
|
||||||
|
brew "freetds"
|
||||||
|
# C/C++ and Java libraries for Unicode and globalization
|
||||||
|
brew "icu4c"
|
||||||
|
# Postgres C API library
|
||||||
|
brew "libpq"
|
||||||
|
# General-purpose scripting language
|
||||||
|
brew "php"
|
||||||
|
# Dependency Manager for PHP
|
||||||
|
brew "composer"
|
||||||
|
# GNU File, Shell, and Text utilities
|
||||||
|
brew "coreutils"
|
||||||
|
# Diff that understands syntax
|
||||||
|
brew "difftastic"
|
||||||
# Tool for exploring each layer in a docker image
|
# Tool for exploring each layer in a docker image
|
||||||
brew "dive"
|
brew "dive"
|
||||||
# Command-line DNS client
|
# Command-line DNS client
|
||||||
@@ -42,8 +55,6 @@ brew "dog"
|
|||||||
brew "eg-examples"
|
brew "eg-examples"
|
||||||
# CLI for templating and/or deploying FaaS functions
|
# CLI for templating and/or deploying FaaS functions
|
||||||
brew "faas-cli"
|
brew "faas-cli"
|
||||||
# Libraries to talk to Microsoft SQL Server and Sybase databases
|
|
||||||
brew "freetds"
|
|
||||||
# Monitor a directory for changes and run a shell command
|
# Monitor a directory for changes and run a shell command
|
||||||
brew "fswatch"
|
brew "fswatch"
|
||||||
# GitHub command-line tool
|
# GitHub command-line tool
|
||||||
@@ -66,8 +77,6 @@ brew "gnutls"
|
|||||||
brew "gnupg"
|
brew "gnupg"
|
||||||
# Image manipulation
|
# Image manipulation
|
||||||
brew "netpbm"
|
brew "netpbm"
|
||||||
# C/C++ and Java libraries for Unicode and globalization
|
|
||||||
brew "icu4c"
|
|
||||||
# OpenType text shaping engine
|
# OpenType text shaping engine
|
||||||
brew "harfbuzz"
|
brew "harfbuzz"
|
||||||
# Library to render SVG files using Cairo
|
# Library to render SVG files using Cairo
|
||||||
@@ -90,8 +99,6 @@ brew "imagemagick"
|
|||||||
brew "jq"
|
brew "jq"
|
||||||
# Lazier way to manage everything docker
|
# Lazier way to manage everything docker
|
||||||
brew "lazydocker"
|
brew "lazydocker"
|
||||||
# Postgres C API library
|
|
||||||
brew "libpq"
|
|
||||||
# Linguistic software and Finnish dictionary
|
# Linguistic software and Finnish dictionary
|
||||||
brew "libvoikko"
|
brew "libvoikko"
|
||||||
# Swiss Army Knife for macOS
|
# Swiss Army Knife for macOS
|
||||||
@@ -121,13 +128,13 @@ brew "shfmt"
|
|||||||
# Send macOS User Notifications from the command-line
|
# Send macOS User Notifications from the command-line
|
||||||
brew "terminal-notifier", link: false
|
brew "terminal-notifier", link: false
|
||||||
# Tool to build, change, and version infrastructure
|
# Tool to build, change, and version infrastructure
|
||||||
brew "terraform"
|
brew "terraform", link: false
|
||||||
# Thin wrapper for Terraform e.g. for locking state
|
# Thin wrapper for Terraform e.g. for locking state
|
||||||
brew "terragrunt"
|
brew "terragrunt"
|
||||||
# Tool which checks for the support of TLS/SSL ciphers and flaws
|
# Tool which checks for the support of TLS/SSL ciphers and flaws
|
||||||
brew "testssl"
|
brew "testssl"
|
||||||
# Terraform version manager inspired by rbenv
|
# Terraform version manager inspired by rbenv
|
||||||
brew "tfenv", link: false
|
brew "tfenv"
|
||||||
# Programmatically correct mistyped console commands
|
# Programmatically correct mistyped console commands
|
||||||
brew "thefuck"
|
brew "thefuck"
|
||||||
# Simplified and community-driven man pages
|
# Simplified and community-driven man pages
|
||||||
@@ -142,6 +149,8 @@ brew "viddy"
|
|||||||
brew "watch"
|
brew "watch"
|
||||||
# Internet file retriever
|
# Internet file retriever
|
||||||
brew "wget"
|
brew "wget"
|
||||||
|
# Personal information dashboard for your terminal
|
||||||
|
brew "wtfutil"
|
||||||
# Tracks most-used directories to make cd smarter
|
# Tracks most-used directories to make cd smarter
|
||||||
brew "z"
|
brew "z"
|
||||||
# A vulnerability scanner for container images and filesystems
|
# A vulnerability scanner for container images and filesystems
|
||||||
@@ -162,6 +171,8 @@ brew "shivammathur/php/php"
|
|||||||
brew "shivammathur/php/php@7.4"
|
brew "shivammathur/php/php@7.4"
|
||||||
# General-purpose scripting language
|
# General-purpose scripting language
|
||||||
brew "shivammathur/php/php@8.0"
|
brew "shivammathur/php/php@8.0"
|
||||||
|
# Command-line helper for the 1Password password manager
|
||||||
|
cask "1password-cli"
|
||||||
# App to build and share containerized applications and microservices
|
# App to build and share containerized applications and microservices
|
||||||
cask "docker"
|
cask "docker"
|
||||||
# Reimagine your terminal
|
# Reimagine your terminal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
Update `Brewfile`
|
Update `Brewfile`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew bundle dump --force --file=~/.dotfiles/Brewfile
|
brew bundle dump --force --file=~/.dotfiles/Brewfile --describe
|
||||||
```
|
```
|
||||||
|
|
||||||
Enable automatic brew updates and upgrades.
|
Enable automatic brew updates and upgrades.
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Ismo Vuorinen
|
name = Ismo Vuorinen
|
||||||
email = ismo.vuorinen@vincit.fi
|
email = ismo.vuorinen@vincit.fi
|
||||||
|
signingkey = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDLyOvkr1nRqMVv3UAizmk6C+q40H4khvw7qIXXXyOyFmzjwYx/Cuxoi4uZVjX+q4qFYJ+c312uu6YXiEtfyoCao3wub8r1cLBQ3eIvuyWp2K8Ixcd9JmFmLmoeiENpJxqyr0WPZLDkrCWUZCsQQh8zzGFnfciUdUdTiZ7s21AEhhmFRSdFlVfQSlGMFxU321psg1YilcP80bDwFd1FsL4TssSkwlbgP/twqnpZ4436TTo7kp0UnH/RZkfRdDWScKHaWgncBG0CZeQxGWnRp8fvZn/7gDnthcZhvnDALVBE7QFuZ90GxqVw3IGpHryV0mFO6EGQ9Ke9YX7pKVZPUXZjeCN4SVKsqFdVJ6AjaSJ9K7nL98rYK7qNzndT3cKqPNgPteyXWRulH68A51ecQqHrjTttZcdN9hKt9uBHpzuXsby2QObT+VB4MNjZapa+YYF/WgwJCml4lzn2xMFg1vYZD78pfoJ9e5f2cL1MMlUSDb0TNxmEXfDQ77H/pRpKDz0=
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.config/git/gitignore
|
excludesfile = ~/.config/git/gitignore
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
reset-origin = !git fetch origin && git reset --hard origin/master && git clean -f -d
|
reset-origin = !git fetch origin && git reset --hard origin/master && git clean -f -d
|
||||||
reset-upstream = !git fetch upstream && git reset --hard upstream/master && git clean -f -d
|
reset-upstream = !git fetch upstream && git reset --hard upstream/master && git clean -f -d
|
||||||
@@ -15,13 +18,24 @@
|
|||||||
branchbydate = for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)'
|
branchbydate = for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)'
|
||||||
branchcolor = "!for ref in $(git for-each-ref --sort=-committerdate --format=\"%(refname)\" refs/heads/ refs/remotes ); do git log -n1 $ref --pretty=format:\"%Cgreen%cr%Creset %C(yellow)%d%Creset %C(bold blue)<%an>%Creset%n\" | cat ; done | awk '! a[$0]++'"
|
branchcolor = "!for ref in $(git for-each-ref --sort=-committerdate --format=\"%(refname)\" refs/heads/ refs/remotes ); do git log -n1 $ref --pretty=format:\"%Cgreen%cr%Creset %C(yellow)%d%Creset %C(bold blue)<%an>%Creset%n\" | cat ; done | awk '! a[$0]++'"
|
||||||
|
|
||||||
|
[diff]
|
||||||
|
tool = difftastic
|
||||||
|
|
||||||
|
[difftool]
|
||||||
|
prompt = false
|
||||||
|
|
||||||
|
[difftool "difftastic"]
|
||||||
|
cmd = difft "$LOCAL" "$REMOTE"
|
||||||
|
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
required = true
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = master
|
||||||
|
|
||||||
[pull]
|
[pull]
|
||||||
rebase = false
|
rebase = false
|
||||||
|
|
||||||
@@ -37,3 +51,9 @@
|
|||||||
deleted = red bold strike
|
deleted = red bold strike
|
||||||
untracked = cyan
|
untracked = cyan
|
||||||
branch = yellow black bold ul
|
branch = yellow black bold ul
|
||||||
|
[gpg]
|
||||||
|
format = ssh
|
||||||
|
[gpg "ssh"]
|
||||||
|
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
|||||||
180
config/wtf/config.yml
Normal file
180
config/wtf/config.yml
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
wtf:
|
||||||
|
colors:
|
||||||
|
background: black
|
||||||
|
border:
|
||||||
|
focusable: darkslateblue
|
||||||
|
focused: orange
|
||||||
|
normal: gray
|
||||||
|
checked: yellow
|
||||||
|
highlight:
|
||||||
|
fore: black
|
||||||
|
back: gray
|
||||||
|
rows:
|
||||||
|
even: yellow
|
||||||
|
odd: white
|
||||||
|
grid:
|
||||||
|
# How _wide_ the columns are, in terminal characters. In this case we have
|
||||||
|
# four columns, each of which are 35 characters wide.
|
||||||
|
columns: [35, 35, 30, 20]
|
||||||
|
# How _high_ the rows are, in terminal lines. In this case we have four rows
|
||||||
|
# that support ten line of text and one of four.
|
||||||
|
rows: [10, 10, 10, 20, 10, 4]
|
||||||
|
refreshInterval: 1
|
||||||
|
openFileUtil: "open"
|
||||||
|
mods:
|
||||||
|
# You can have multiple widgets of the same type.
|
||||||
|
# The "key" is the name of the widget and the type is the actual
|
||||||
|
# widget you want to implement.
|
||||||
|
europe_time:
|
||||||
|
title: "Europe"
|
||||||
|
type: clocks
|
||||||
|
colors:
|
||||||
|
rows:
|
||||||
|
even: "lightblue"
|
||||||
|
odd: "white"
|
||||||
|
enabled: true
|
||||||
|
locations:
|
||||||
|
GMT: "Etc/GMT"
|
||||||
|
Amsterdam: "Europe/Amsterdam"
|
||||||
|
Berlin: "Europe/Berlin"
|
||||||
|
Barcelona: "Europe/Madrid"
|
||||||
|
Copenhagen: "Europe/Copenhagen"
|
||||||
|
London: "Europe/London"
|
||||||
|
Rome: "Europe/Rome"
|
||||||
|
Stockholm: "Europe/Stockholm"
|
||||||
|
position:
|
||||||
|
top: 0
|
||||||
|
left: 0
|
||||||
|
height: 1
|
||||||
|
width: 1
|
||||||
|
refreshInterval: 15
|
||||||
|
sort: "alphabetical"
|
||||||
|
americas_time:
|
||||||
|
title: "Americas"
|
||||||
|
type: clocks
|
||||||
|
colors:
|
||||||
|
rows:
|
||||||
|
even: "lightblue"
|
||||||
|
odd: "white"
|
||||||
|
enabled: true
|
||||||
|
locations:
|
||||||
|
UTC: "Etc/UTC"
|
||||||
|
Vancouver: "America/Vancouver"
|
||||||
|
New_York: "America/New_York"
|
||||||
|
Sao_Paulo: "America/Sao_Paulo"
|
||||||
|
Denver: "America/Denver"
|
||||||
|
Iqaluit: "America/Iqaluit"
|
||||||
|
Bahamas: "America/Nassau"
|
||||||
|
Chicago: "America/Chicago"
|
||||||
|
position:
|
||||||
|
top: 0
|
||||||
|
left: 1
|
||||||
|
height: 1
|
||||||
|
width: 1
|
||||||
|
refreshInterval: 15
|
||||||
|
sort: "alphabetical"
|
||||||
|
battery:
|
||||||
|
type: power
|
||||||
|
title: "⚡️"
|
||||||
|
enabled: true
|
||||||
|
position:
|
||||||
|
top: 1
|
||||||
|
left: 2
|
||||||
|
height: 1
|
||||||
|
width: 2
|
||||||
|
refreshInterval: 15
|
||||||
|
todolist:
|
||||||
|
type: todo
|
||||||
|
checkedIcon: "X"
|
||||||
|
colors:
|
||||||
|
checked: gray
|
||||||
|
highlight:
|
||||||
|
fore: "black"
|
||||||
|
back: "orange"
|
||||||
|
enabled: true
|
||||||
|
filename: "todo.yml"
|
||||||
|
position:
|
||||||
|
top: 1
|
||||||
|
left: 0
|
||||||
|
height: 2
|
||||||
|
width: 1
|
||||||
|
refreshInterval: 3600
|
||||||
|
ip:
|
||||||
|
type: ipinfo
|
||||||
|
title: "My IP"
|
||||||
|
colors:
|
||||||
|
name: "lightblue"
|
||||||
|
value: "white"
|
||||||
|
enabled: true
|
||||||
|
position:
|
||||||
|
top: 0
|
||||||
|
left: 2
|
||||||
|
height: 1
|
||||||
|
width: 2
|
||||||
|
refreshInterval: 150
|
||||||
|
security_info:
|
||||||
|
type: security
|
||||||
|
title: "Staying safe"
|
||||||
|
enabled: true
|
||||||
|
position:
|
||||||
|
top: 1
|
||||||
|
left: 1
|
||||||
|
height: 1
|
||||||
|
width: 1
|
||||||
|
refreshInterval: 3600
|
||||||
|
readme:
|
||||||
|
type: textfile
|
||||||
|
enabled: true
|
||||||
|
filePaths:
|
||||||
|
- "~/.config/wtf/config.yml"
|
||||||
|
format: true
|
||||||
|
formatStyle: "monokai"
|
||||||
|
position:
|
||||||
|
top: 3
|
||||||
|
left: 0
|
||||||
|
height: 1
|
||||||
|
width: 1
|
||||||
|
refreshInterval: 15
|
||||||
|
news:
|
||||||
|
type: hackernews
|
||||||
|
title: "HackerNews"
|
||||||
|
enabled: true
|
||||||
|
numberOfStories: 10
|
||||||
|
position:
|
||||||
|
top: 3
|
||||||
|
left: 1
|
||||||
|
height: 1
|
||||||
|
width: 3
|
||||||
|
storyType: top
|
||||||
|
refreshInterval: 900
|
||||||
|
resources:
|
||||||
|
type: resourceusage
|
||||||
|
enabled: true
|
||||||
|
position:
|
||||||
|
top: 4
|
||||||
|
left: 0
|
||||||
|
height: 2
|
||||||
|
width: 1
|
||||||
|
refreshInterval: 1
|
||||||
|
uptime:
|
||||||
|
type: cmdrunner
|
||||||
|
args: []
|
||||||
|
cmd: "uptime"
|
||||||
|
enabled: true
|
||||||
|
position:
|
||||||
|
top: 5
|
||||||
|
left: 1
|
||||||
|
height: 1
|
||||||
|
width: 3
|
||||||
|
refreshInterval: 30
|
||||||
|
disks:
|
||||||
|
type: cmdrunner
|
||||||
|
cmd: "df"
|
||||||
|
args: ["-h"]
|
||||||
|
enabled: true
|
||||||
|
position:
|
||||||
|
top: 4
|
||||||
|
left: 1
|
||||||
|
height: 1
|
||||||
|
width: 3
|
||||||
|
refreshInterval: 3600
|
||||||
3
zshrc
3
zshrc
@@ -66,6 +66,9 @@ antigen apply
|
|||||||
|
|
||||||
export HIST_STAMPS="yyyy-mm-dd"
|
export HIST_STAMPS="yyyy-mm-dd"
|
||||||
|
|
||||||
|
# Only load 1Password cli completions if op exists
|
||||||
|
hash op 2>/dev/null && eval "$(op completion zsh)"; compdef _op op
|
||||||
|
|
||||||
source "$HOME/.alias"
|
source "$HOME/.alias"
|
||||||
|
|
||||||
GCLOUD_INSTALL_LOCATION=$(gcloud info --format="value(installation.sdk_root)" --quiet)
|
GCLOUD_INSTALL_LOCATION=$(gcloud info --format="value(installation.sdk_root)" --quiet)
|
||||||
|
|||||||
Reference in New Issue
Block a user