Compare commits

...

4 Commits

Author SHA1 Message Date
Ismo Vuorinen
5af773f931 SSH signing, wtf config, editorconfig, updates 2022-12-05 10:15:37 +02:00
Ismo Vuorinen
976c0580f0 Removed keybase 2022-12-05 08:29:47 +02:00
Ismo Vuorinen
0fd327ab9e Update install.sh 2022-12-04 20:15:24 +02:00
Ismo Vuorinen
221777dde0 Brewfile update, add .gitignore
`brew bundle dump -f ~/.dotfiles/Brewfile --describe`
2022-12-04 20:12:48 +02:00
8 changed files with 367 additions and 38 deletions

24
.editorconfig Normal file
View 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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
Brewfile.lock.json

171
Brewfile
View File

@@ -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"
@@ -10,103 +11,205 @@ tap "homebrew/core"
tap "homebrew/services" tap "homebrew/services"
tap "shivammathur/extensions" tap "shivammathur/extensions"
tap "shivammathur/php" tap "shivammathur/php"
brew "act" # Interpreted, interactive, object-oriented programming language
brew "python@3.10" brew "python@3.10"
# Automate deployment, configuration, and upgrading
brew "ansible" brew "ansible"
# Zstandard is a real-time compression algorithm
brew "zstd" brew "zstd"
# Spell checker with better logic than ispell
brew "aspell" brew "aspell"
# Automatic configure script builder
brew "autoconf" brew "autoconf"
# Official Amazon AWS command-line interface
brew "awscli" brew "awscli"
# Terminal bandwidth utilization tool
brew "bandwhich" brew "bandwhich"
# Switch Apache / Valet / CLI configs between PHP versions
brew "brew-php-switcher" brew "brew-php-switcher"
# Core application library for C
brew "glib" brew "glib"
# Manage compile and link flags for libraries
brew "pkg-config" brew "pkg-config"
brew "coreutils" # Open source suite of directory software
brew "openldap" brew "openldap"
brew "dive" # Libraries to talk to Microsoft SQL Server and Sybase databases
brew "dog"
brew "eg-examples"
brew "faas-cli"
brew "freetds" brew "freetds"
brew "fswatch" # C/C++ and Java libraries for Unicode and globalization
brew "gh"
brew "git"
brew "git-extras"
brew "git-flow-avh"
brew "git-recent"
brew "gnu-sed"
brew "unbound"
brew "gnutls"
brew "gnupg"
brew "goaccess"
brew "netpbm"
brew "icu4c" brew "icu4c"
brew "harfbuzz" # Postgres C API library
brew "librsvg"
brew "graphviz"
brew "grep"
brew "gzip"
brew "hadolint"
brew "htop"
brew "httrack"
brew "imagemagick"
brew "jq"
brew "lastpass-cli"
brew "lazydocker"
brew "libpq" 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
brew "dive"
# Command-line DNS client
brew "dog"
# Useful examples at the command-line
brew "eg-examples"
# CLI for templating and/or deploying FaaS functions
brew "faas-cli"
# Monitor a directory for changes and run a shell command
brew "fswatch"
# GitHub command-line tool
brew "gh"
# Distributed revision control system
brew "git"
# Small git utilities
brew "git-extras"
# AVH edition of git-flow
brew "git-flow-avh"
# See your latest local git branches, formatted real fancy
brew "git-recent"
# GNU implementation of the famous stream editor
brew "gnu-sed"
# Validating, recursive, caching DNS resolver
brew "unbound"
# GNU Transport Layer Security (TLS) Library
brew "gnutls"
# GNU Pretty Good Privacy (PGP) package
brew "gnupg"
# Image manipulation
brew "netpbm"
# OpenType text shaping engine
brew "harfbuzz"
# Library to render SVG files using Cairo
brew "librsvg"
# Graph visualization software from AT&T and Bell Labs
brew "graphviz"
# GNU grep, egrep and fgrep
brew "grep"
# Popular GNU data compression program
brew "gzip"
# Smarter Dockerfile linter to validate best practices
brew "hadolint"
# Improved top (interactive process viewer)
brew "htop"
# Website copier/offline browser
brew "httrack"
# Tools and libraries to manipulate images in many formats
brew "imagemagick"
# Lightweight and flexible command-line JSON processor
brew "jq"
# Lazier way to manage everything docker
brew "lazydocker"
# Linguistic software and Finnish dictionary
brew "libvoikko" brew "libvoikko"
# Swiss Army Knife for macOS
brew "m-cli" brew "m-cli"
# Terminal-based visual file manager
brew "midnight-commander"
# Port scanning utility for large networks
brew "nmap" brew "nmap"
# Manage multiple Node.js versions
brew "nvm" brew "nvm"
# Development kit for the Java programming language
brew "openjdk" brew "openjdk"
# Generate clients, server & docs from an OpenAPI spec (v2, v3)
brew "openapi-generator" brew "openapi-generator"
brew "phpstan" # Interpreted, interactive, object-oriented programming language
brew "python@3.8" brew "python@3.8"
brew "qt" # RC file (dotfile) management
brew "rcm" brew "rcm"
# Search tool like grep and The Silver Searcher
brew "ripgrep" brew "ripgrep"
# Powerful, clean, object-oriented scripting language
brew "ruby" brew "ruby"
# Static analysis and lint tool, for (ba)sh scripts
brew "shellcheck" brew "shellcheck"
# Autoformat shell script source code
brew "shfmt" brew "shfmt"
brew "skopeo" # Send macOS User Notifications from the command-line
brew "terminal-notifier", link: false brew "terminal-notifier", link: false
brew "terraform" # Tool to build, change, and version infrastructure
brew "terraform", link: false
# 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
brew "testssl" brew "testssl"
# Terraform version manager inspired by rbenv
brew "tfenv"
# Programmatically correct mistyped console commands
brew "thefuck" brew "thefuck"
# Simplified and community-driven man pages
brew "tldr" brew "tldr"
# Terminal multiplexer
brew "tmux" brew "tmux"
# Display directories as trees (with optional color/HTML output)
brew "tree" brew "tree"
# Modern watch command
brew "viddy" brew "viddy"
# Executes a program periodically, showing output fullscreen
brew "watch" brew "watch"
# Internet file retriever
brew "wget" brew "wget"
# Personal information dashboard for your terminal
brew "wtfutil"
# Tracks most-used directories to make cd smarter
brew "z" brew "z"
# A vulnerability scanner for container images and filesystems
brew "anchore/grype/grype" brew "anchore/grype/grype"
# High-performance load testing tool, written in Golang.
brew "ddosify/tap/ddosify" brew "ddosify/tap/ddosify"
# lets you quickly switch between multiple git user profiles
brew "gesquive/tap/git-user" brew "gesquive/tap/git-user"
# Xdebug PHP extension
brew "shivammathur/extensions/xdebug@7.4" brew "shivammathur/extensions/xdebug@7.4"
# Xdebug PHP extension
brew "shivammathur/extensions/xdebug@8.0" brew "shivammathur/extensions/xdebug@8.0"
# Xdebug PHP extension
brew "shivammathur/extensions/xdebug@8.1" brew "shivammathur/extensions/xdebug@8.1"
# General-purpose scripting language
brew "shivammathur/php/php" brew "shivammathur/php/php"
# General-purpose scripting language
brew "shivammathur/php/php@7.4" brew "shivammathur/php/php@7.4"
# 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
cask "docker" cask "docker"
# Reimagine your terminal
cask "fig" cask "fig"
# Unofficial overcast.fm podcast app
cask "fog" cask "fog"
# Open Source Webfont Converter
cask "fontplop" cask "fontplop"
# GIT client
cask "fork" cask "fork"
# Set of tools to manage resources and applications hosted on Google Cloud
cask "google-cloud-sdk" cask "google-cloud-sdk"
# HTTP and GraphQL Client
cask "insomnia" cask "insomnia"
# Kubernetes IDE
cask "lens" cask "lens"
# Reverse proxy, secure introspectable tunnels to localhost
cask "ngrok" cask "ngrok"
# Display image info and preview unsupported formats in QuickLook
cask "qlimagesize" cask "qlimagesize"
# QuickLook generator for Markdown files
cask "qlmarkdown" cask "qlmarkdown"
# QuickLook plugin for plaintext files without an extension
cask "qlstephen" cask "qlstephen"
# QuickLook plugin for JSON files
cask "quicklook-json" cask "quicklook-json"
# QuickLook generator for Adobe Swatch Exchange files
cask "quicklookase" cask "quicklookase"
# MySQL/MariaDB database management
cask "sequel-ace" cask "sequel-ace"
# Application for inspecting installer packages
cask "suspicious-package" cask "suspicious-package"
# Quicklook extension for source files
cask "syntax-highlight" cask "syntax-highlight"
# Open-source code editor
cask "visual-studio-code" cask "visual-studio-code"
# Multimedia player
cask "vlc" cask "vlc"
# Rust-based terminal
cask "warp" cask "warp"

View File

@@ -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.

View File

@@ -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
View 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

View File

@@ -9,7 +9,7 @@
# env VERBOSE=1 sh install.sh # env VERBOSE=1 sh install.sh
# #
# DO NOT EDIT THIS FILE # DO NOT EDIT THIS FILE
# #
# This file is generated by rcm(7) as: # This file is generated by rcm(7) as:
# #
# rcup -B 0 -g # rcup -B 0 -g
@@ -63,7 +63,6 @@ handle_file_ln() {
$MKDIR -p "$($DIRNAME "$2")" $MKDIR -p "$($DIRNAME "$2")"
$LN -sf "$1" "$2" $LN -sf "$1" "$2"
} }
handle_file_ln "/Users/ivuorinen/.dotfiles/Brewfile" "/Users/ivuorinen/.Brewfile"
handle_file_ln "/Users/ivuorinen/.dotfiles/alias" "/Users/ivuorinen/.alias" handle_file_ln "/Users/ivuorinen/.dotfiles/alias" "/Users/ivuorinen/.alias"
handle_file_ln "/Users/ivuorinen/.dotfiles/bash_profile" "/Users/ivuorinen/.bash_profile" handle_file_ln "/Users/ivuorinen/.dotfiles/bash_profile" "/Users/ivuorinen/.bash_profile"
handle_file_ln "/Users/ivuorinen/.dotfiles/bashrc" "/Users/ivuorinen/.bashrc" handle_file_ln "/Users/ivuorinen/.dotfiles/bashrc" "/Users/ivuorinen/.bashrc"
@@ -73,7 +72,6 @@ handle_file_ln "/Users/ivuorinen/.dotfiles/config/git/config" "/Users/ivuorinen/
handle_file_ln "/Users/ivuorinen/.dotfiles/config/git/gitignore" "/Users/ivuorinen/.config/git/gitignore" handle_file_ln "/Users/ivuorinen/.dotfiles/config/git/gitignore" "/Users/ivuorinen/.config/git/gitignore"
handle_file_ln "/Users/ivuorinen/.dotfiles/git_profiles" "/Users/ivuorinen/.git_profiles" handle_file_ln "/Users/ivuorinen/.dotfiles/git_profiles" "/Users/ivuorinen/.git_profiles"
handle_file_ln "/Users/ivuorinen/.dotfiles/huskyrc" "/Users/ivuorinen/.huskyrc" handle_file_ln "/Users/ivuorinen/.dotfiles/huskyrc" "/Users/ivuorinen/.huskyrc"
handle_file_ln "/Users/ivuorinen/.dotfiles/install.sh" "/Users/ivuorinen/.install.sh"
handle_file_ln "/Users/ivuorinen/.dotfiles/local/bin/x-open-ports" "/Users/ivuorinen/.local/bin/x-open-ports" handle_file_ln "/Users/ivuorinen/.dotfiles/local/bin/x-open-ports" "/Users/ivuorinen/.local/bin/x-open-ports"
handle_file_ln "/Users/ivuorinen/.dotfiles/vuerc" "/Users/ivuorinen/.vuerc" handle_file_ln "/Users/ivuorinen/.dotfiles/vuerc" "/Users/ivuorinen/.vuerc"
handle_file_ln "/Users/ivuorinen/.dotfiles/zshrc" "/Users/ivuorinen/.zshrc" handle_file_ln "/Users/ivuorinen/.dotfiles/zshrc" "/Users/ivuorinen/.zshrc"

3
zshrc
View File

@@ -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)