Compare commits

..

9 Commits

Author SHA1 Message Date
50cd1d17e6 Update Brewfile
removed openfortivpn, terraform@0.12, reviewdog, codeclimate, midnight-commander, qcachegrind
2022-11-14 15:32:54 +02:00
Ismo Vuorinen
b139ff6136 Added brew to path 2022-11-11 05:05:42 +02:00
Ismo Vuorinen
fd6f59706b x-open-ports helper script 2022-09-21 15:28:10 +03:00
4edca57eea rcm install script
env RCRC=/dev/null rcup -B 0 -g > install.sh
2022-09-21 01:42:45 +03:00
26dbcedf1b Updated Brewfile 2022-09-21 01:32:11 +03:00
Ismo Vuorinen
ca11aee351 2022-09-19 2022-09-19 17:01:33 +03:00
Ismo Vuorinen
f2f75411f9 Updated brewfile 2022-09-05 10:52:55 +03:00
Ismo Vuorinen
007d874f46 Added fig 2022-08-29 11:54:57 +03:00
Ismo Vuorinen
2e424d6fbd Removed php from path, using brew-php-switcher 2022-08-29 11:54:37 +03:00
6 changed files with 144 additions and 22 deletions

View File

@@ -1,43 +1,44 @@
tap "anchore/grype" tap "anchore/grype"
tap "codeclimate/formulae" tap "ddosify/tap"
tap "gesquive/tap"
tap "github/gh" tap "github/gh"
tap "homebrew/autoupdate" tap "homebrew/autoupdate"
tap "homebrew/bundle" tap "homebrew/bundle"
tap "homebrew/cask" tap "homebrew/cask"
tap "homebrew/core" tap "homebrew/core"
tap "homebrew/services" tap "homebrew/services"
tap "reviewdog/tap" tap "shivammathur/extensions"
tap "wpscanteam/tap" tap "shivammathur/php"
brew "act" brew "act"
brew "python@3.10" brew "python@3.10"
brew "ansible" brew "ansible"
brew "aspell" brew "aspell"
brew "autoconf" brew "autoconf"
brew "bandwhich"
brew "brew-php-switcher" brew "brew-php-switcher"
brew "glib" brew "glib"
brew "pkg-config"
brew "coreutils"
brew "openldap" brew "openldap"
brew "zstd" brew "zstd"
brew "freetds"
brew "icu4c"
brew "libpq"
brew "php"
brew "composer"
brew "coreutils"
brew "dive" brew "dive"
brew "dog" brew "dog"
brew "eg-examples" brew "eg-examples"
brew "faas-cli" brew "faas-cli"
brew "freetds"
brew "fswatch" brew "fswatch"
brew "gh" brew "gh"
brew "git" brew "git"
brew "git-extras" brew "git-extras"
brew "git-flow-avh"
brew "git-recent"
brew "gnu-sed" brew "gnu-sed"
brew "p11-kit"
brew "unbound" brew "unbound"
brew "gnutls" brew "gnutls"
brew "gnupg" brew "gnupg"
brew "goaccess" brew "goaccess"
brew "netpbm" brew "netpbm"
brew "icu4c"
brew "harfbuzz" brew "harfbuzz"
brew "librsvg" brew "librsvg"
brew "graphviz" brew "graphviz"
@@ -50,30 +51,24 @@ brew "imagemagick"
brew "jq" brew "jq"
brew "lastpass-cli" brew "lastpass-cli"
brew "lazydocker" brew "lazydocker"
brew "libpq"
brew "libvoikko" brew "libvoikko"
brew "midnight-commander" brew "m-cli"
brew "nmap" brew "nmap"
brew "nvm" brew "nvm"
brew "openjdk" brew "openjdk"
brew "openapi-generator" brew "openapi-generator"
brew "openfortivpn"
brew "php-cs-fixer"
brew "php@7.4"
brew "php@8.0"
brew "phpmd"
brew "phpstan" brew "phpstan"
brew "python@3.8" brew "python@3.8"
brew "qcachegrind"
brew "qt" brew "qt"
brew "rcm" brew "rcm"
brew "ripgrep" brew "ripgrep"
brew "ruby" brew "ruby"
brew "shellcheck" brew "shellcheck"
brew "shfmt"
brew "skopeo" brew "skopeo"
brew "terminal-notifier", link: false brew "terminal-notifier", link: false
brew "terraform@0.12"
brew "testssl" brew "testssl"
brew "tfenv"
brew "thefuck" brew "thefuck"
brew "tldr" brew "tldr"
brew "tmux" brew "tmux"
@@ -83,11 +78,23 @@ brew "watch"
brew "wget" brew "wget"
brew "z" brew "z"
brew "anchore/grype/grype" brew "anchore/grype/grype"
brew "reviewdog/tap/reviewdog" brew "ddosify/tap/ddosify"
brew "wpscanteam/tap/wpscan" brew "gesquive/tap/git-user"
brew "shivammathur/extensions/xdebug@7.4"
brew "shivammathur/extensions/xdebug@8.0"
brew "shivammathur/extensions/xdebug@8.1"
brew "shivammathur/php/php"
brew "shivammathur/php/php@7.4"
brew "shivammathur/php/php@8.0"
cask "fig"
cask "fog" cask "fog"
cask "fontplop"
cask "fork"
cask "google-cloud-sdk" cask "google-cloud-sdk"
cask "insomnia" cask "insomnia"
cask "iterm2"
cask "keybase"
cask "lens"
cask "ngrok" cask "ngrok"
cask "qlimagesize" cask "qlimagesize"
cask "qlmarkdown" cask "qlmarkdown"
@@ -96,5 +103,6 @@ cask "quicklook-json"
cask "quicklookase" cask "quicklookase"
cask "sequel-ace" cask "sequel-ace"
cask "suspicious-package" cask "suspicious-package"
cask "syntax-highlight"
cask "vlc" cask "vlc"
cask "warp" cask "warp"

View File

@@ -1,3 +1,8 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/bash_profile.pre.bash" ]] && builtin source "$HOME/.fig/shell/bash_profile.pre.bash"
# shellcheck shell=bash # shellcheck shell=bash
export PATH="$HOME/.local/bin:/usr/local/sbin:$PATH" export PATH="$HOME/.local/bin:/usr/local/sbin:$PATH"
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/bash_profile.post.bash" ]] && builtin source "$HOME/.fig/shell/bash_profile.post.bash"

5
bashrc
View File

@@ -1,3 +1,5 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash"
# shellcheck shell=bash # shellcheck shell=bash
PHP_PATH=$(brew --prefix php)/bin PHP_PATH=$(brew --prefix php)/bin
@@ -7,3 +9,6 @@ export PATH="$PHP_PATH:$HOME/.composer/vendor/bin/:/usr/local/opt/ruby/bin:/usr/
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash"

77
install.sh Normal file
View File

@@ -0,0 +1,77 @@
#!/bin/sh
#
# Usage:
#
# sh install.sh
#
# Environment variables: VERBOSE, CP, LN, MKDIR, RM, DIRNAME.
#
# env VERBOSE=1 sh install.sh
#
# DO NOT EDIT THIS FILE
#
# This file is generated by rcm(7) as:
#
# rcup -B 0 -g
#
# To update it, re-run the above command.
#
: ${VERBOSE:=0}
: ${CP:=/bin/cp}
: ${LN:=/bin/ln}
: ${MKDIR:=/bin/mkdir}
: ${RM:=/bin/rm}
: ${DIRNAME:=/usr/bin/dirname}
verbose() {
if [ "$VERBOSE" -gt 0 ]; then
echo "$@"
fi
}
handle_file_cp() {
if [ -e "$2" ]; then
printf "%s " "overwrite $2? [yN]"
read overwrite
case "$overwrite" in
y)
$RM -rf "$2"
;;
*)
echo "skipping $2"
return
;;
esac
fi
verbose "'$1' -> '$2'"
$MKDIR -p "$($DIRNAME "$2")"
$CP -R "$1" "$2"
}
handle_file_ln() {
if [ -e "$2" ]; then
printf "%s " "overwrite $2? [yN]"
read overwrite
case "$overwrite" in
y)
$RM -rf "$2"
;;
*)
echo "skipping $2"
return
;;
esac
fi
verbose "'$1' -> '$2'"
$MKDIR -p "$($DIRNAME "$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/bash_profile" "/Users/ivuorinen/.bash_profile"
handle_file_ln "/Users/ivuorinen/.dotfiles/bashrc" "/Users/ivuorinen/.bashrc"
handle_file_ln "/Users/ivuorinen/.dotfiles/config/antigen.zsh" "/Users/ivuorinen/.config/antigen.zsh"
handle_file_ln "/Users/ivuorinen/.dotfiles/config/gh/config.yml" "/Users/ivuorinen/.config/gh/config.yml"
handle_file_ln "/Users/ivuorinen/.dotfiles/gitconfig" "/Users/ivuorinen/.gitconfig"
handle_file_ln "/Users/ivuorinen/.dotfiles/gitignore_global" "/Users/ivuorinen/.gitignore_global"
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/vuerc" "/Users/ivuorinen/.vuerc"
handle_file_ln "/Users/ivuorinen/.dotfiles/zshrc" "/Users/ivuorinen/.zshrc"

20
local/bin/x-open-ports Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
#
# List open (listened) ports, without the crud that
# usually comes with `lsof -i`
#
# Originally from: https://www.commandlinefu.com/commands/view/8951
# Original author: https://www.commandlinefu.com/commands/by/wickedcpj
#
echo 'User: Command: Port:';
echo '=====================================================';
lsof -i 4 -P -n +c 0 | \
grep -i 'listen' | \
awk '{print $3, $1, $9}' | \
sed 's/ [a-z0-9\.\*]*:/ /' | \
sort -k 3 -n | \
xargs printf '%-20s %-25s %-5s\n' | uniq
echo "";

9
zshrc
View File

@@ -1,5 +1,9 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
# shellcheck shell=bash # shellcheck shell=bash
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"
LOCAL_BIN="$HOME/.local/bin" LOCAL_BIN="$HOME/.local/bin"
OPT_FOLDER="/usr/local/opt" OPT_FOLDER="/usr/local/opt"
PHP_74=$(brew --prefix php@7.4)/bin PHP_74=$(brew --prefix php@7.4)/bin
@@ -12,7 +16,7 @@ GNUBIN_DIR=$(brew --prefix coreutils)/libexec/gnubin
BREW_RUBY=$(brew --prefix ruby)/bin BREW_RUBY=$(brew --prefix ruby)/bin
USR_SBIN=/usr/local/sbin USR_SBIN=/usr/local/sbin
export PATH="$LOCAL_BIN:$PHP_74:$PHP_80:$PHP_CUR:$PYTHON_38:$COMPOSER_DIR:$BREW_PYTHON:$GNUBIN_DIR:$BREW_RUBY:$USR_SBIN:$PATH" export PATH="$LOCAL_BIN:$PYTHON_38:$COMPOSER_DIR:$BREW_PYTHON:$GNUBIN_DIR:$BREW_RUBY:$USR_SBIN:$PATH"
source "$HOME/.config/antigen.zsh" source "$HOME/.config/antigen.zsh"
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
@@ -64,3 +68,6 @@ GCLOUD_INSTALL_LOCATION=$(gcloud info --format="value(installation.sdk_root)" --
source "$GCLOUD_INSTALL_LOCATION/path.zsh.inc" source "$GCLOUD_INSTALL_LOCATION/path.zsh.inc"
source "$GCLOUD_INSTALL_LOCATION/completion.zsh.inc" source "$GCLOUD_INSTALL_LOCATION/completion.zsh.inc"
source "$(brew --prefix z)/etc/profile.d/z.sh" source "$(brew --prefix z)/etc/profile.d/z.sh"
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"