From aae726d53fee2d5e8e679d9eec0dc7977dc34ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Cercal?= Date: Thu, 14 Dec 2023 14:27:10 +0000 Subject: [PATCH 1/2] urlwatch --- .github/workflows/macos.yml | 14 +++ .zshrc | 28 ++++++ apps.yaml | 18 ++-- crontab | 1 + tmux.conf | 52 ++++++++++ urlwatch/aima/config.yaml | 103 +++++++++++++++++++ urlwatch/aima/jobs.yaml | 33 +++++++ urlwatch/b3/config.yaml | 103 +++++++++++++++++++ urlwatch/b3/jobs.yaml | 190 ++++++++++++++++++++++++++++++++++++ urlwatch/crypto/config.yaml | 103 +++++++++++++++++++ urlwatch/crypto/jobs.yaml | 73 ++++++++++++++ urlwatch/ip/config.yaml | 103 +++++++++++++++++++ urlwatch/ip/jobs.yaml | 5 + 13 files changed, 820 insertions(+), 6 deletions(-) create mode 100644 crontab create mode 100644 tmux.conf create mode 100644 urlwatch/aima/config.yaml create mode 100644 urlwatch/aima/jobs.yaml create mode 100644 urlwatch/b3/config.yaml create mode 100644 urlwatch/b3/jobs.yaml create mode 100644 urlwatch/crypto/config.yaml create mode 100644 urlwatch/crypto/jobs.yaml create mode 100644 urlwatch/ip/config.yaml create mode 100644 urlwatch/ip/jobs.yaml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 1ce3717..2589894 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -2,6 +2,20 @@ name: MacOS Workflow on: [push] jobs: + shellcheck: + name: runner / shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: shellcheck + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + path: "." + pattern: "*.sh" + exclude: "./.git/*" + check_all_files_with_shebangs: "false" dotfiles: name: dotfiles runs-on: macos-latest diff --git a/.zshrc b/.zshrc index 3ed7cc5..d724fe9 100644 --- a/.zshrc +++ b/.zshrc @@ -43,6 +43,11 @@ eval "$(pyenv init -)" export GOPATH="$HOME/go" export PATH="$GOPATH/bin:$PATH" +########################################################### +# rust + +source "$HOME/.cargo/env" + ########################################################### # nvm @@ -171,3 +176,26 @@ ZSH_AUTOSUGGEST_STRATEGY=atuin_top export KUBECONFIG=~/.kube/config export AWS_PROFILE="TXBTurboshopDeveloperAccess-440308253360" + +########################################################### +# functions + +gli() { + local filter + if [ -n $@ ] && [ -f $@ ]; then + filter="-- $@" + fi + + git log \ + --graph --color=always --abbrev=7 --format='%C(auto)%h %an %C(blue)%s %C(yellow)%cr' $@ | \ + fzf \ + --ansi --no-sort --reverse --tiebreak=index \ + --preview "f() { set -- \$(echo -- \$@ | grep -o '[a-f0-9]\{7\}'); [ \$# -eq 0 ] || git show --color=always \$1 $filter; }; f {}" \ + --bind "j:down,k:up,alt-j:preview-down,alt-k:preview-up,ctrl-f:preview-page-down,ctrl-b:preview-page-up,q:abort,ctrl-m:execute: + (grep -o '[a-f0-9]\{7\}' | head -1 | + xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF' + {} + FZF-EOF" \ + --preview-window=right:60% \ + --height 80% +} diff --git a/apps.yaml b/apps.yaml index 692f86d..fd87e14 100644 --- a/apps.yaml +++ b/apps.yaml @@ -20,6 +20,7 @@ install: - "coreutils" - "doctl" - "exa" + - "fd" - "ffmpeg" - "findutils" - "fswatch" @@ -33,6 +34,7 @@ install: - "gnu-sed" - "go" - "golangci-lint" + - "howdoi" - "hr" - "htmlq" - "htop" @@ -66,6 +68,7 @@ install: - "terraform" - "tldr" - "tmux" + - "tpm" - "tree" - "unison" - "vim" @@ -150,7 +153,6 @@ install: - "monitorcontrol" - "moonlight" - "nordvpn" - - "numi" - "obs" - "oracle-jdk" - "parsec" @@ -176,10 +178,13 @@ install: - "brew link --overwrite awscli" - "brew link --overwrite go" - "brew link --overwrite python@3.10" + - "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y" - "echo \"y\" | $(brew --prefix)/opt/fzf/install" - "git lfs install" - "go install github.com/oklog/ulid/v2/cmd/ulid@latest" - "mkdir ~/.nvm" + - "mkdir -p ~/dotfiles/logs/crontab/" + - "crontab ~/dotfiles/crontab" pyenv: global: version: 3.11.1 @@ -196,6 +201,7 @@ install: global: packages: - "neovim" + - "prettier" - "serverless" mas: apps: @@ -290,11 +296,6 @@ config: to: absolute_path: "~/.vimrc" - - from: - relative_path: ".zsh_history" - to: - absolute_path: "~/.zsh_history" - - from: relative_path: ".zshrc" to: @@ -304,6 +305,11 @@ config: relative_path: "starship.toml" to: absolute_path: "~/.config/starship.toml" + + - from: + relative_path: "tmux.conf" + to: + absolute_path: "~/.config/tmux/tmux.conf" dockutil: _before: reset: true diff --git a/crontab b/crontab new file mode 100644 index 0000000..fe2dd2b --- /dev/null +++ b/crontab @@ -0,0 +1 @@ +* * * * * echo abc > ~/dotfiles/logs/crontab/$(date +%Y.%m.%d.%H.%M.%S).mas-update.log 2>&1 \ No newline at end of file diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..44641ae --- /dev/null +++ b/tmux.conf @@ -0,0 +1,52 @@ +set-option -sa terminal-overrides ",xterm*:Tc" +set -g mouse on + +unbind C-b +set -g prefix C-Space +bind C-Space send-prefix + +# Vim style pane selection +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Start windows and panes at 1, not 0 +set -g base-index 1 +set -g pane-base-index 1 +set-window-option -g pane-base-index 1 +set-option -g renumber-windows on + +# Use Alt-arrow keys without prefix key to switch panes +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + +# Shift arrow to switch windows +bind -n S-Left previous-window +bind -n S-Right next-window + +# Shift Alt vim keys to switch windows +bind -n M-H previous-window +bind -n M-L next-window + +set -g @catppuccin_flavour 'mocha' + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'christoomey/vim-tmux-navigator' +set -g @plugin 'dreamsofcode-io/catppuccin-tmux' +set -g @plugin 'tmux-plugins/tmux-yank' + +run "/opt/homebrew/opt/tpm/share/tpm/tpm" + +# set vi-mode +set-window-option -g mode-keys vi +# keybindings +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle +bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel + +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" diff --git a/urlwatch/aima/config.yaml b/urlwatch/aima/config.yaml new file mode 100644 index 0000000..1be37cf --- /dev/null +++ b/urlwatch/aima/config.yaml @@ -0,0 +1,103 @@ +display: + empty-diff: true + error: true + new: true + unchanged: false +job_defaults: + all: {} + browser: {} + shell: {} + url: {} +report: + email: + enabled: true + subject: '[AIMA] {count} changes: {jobs}' + from: jpcercal@gmail.com + to: jpcercal@gmail.com + method: smtp + smtp: + host: smtp.gmail.com + auth: true + port: 587 + starttls: true + discord: + colored: true + embed: false + enabled: false + max_message_length: 2000 + subject: '{count} changes: {jobs}' + webhook_url: '' + html: + diff: unified + separate: false + ifttt: + enabled: false + event: '' + key: '' + mailgun: + api_key: '' + domain: '' + enabled: false + from_mail: '' + from_name: '' + region: us + subject: '{count} changes: {jobs}' + to: '' + markdown: + details: true + footer: true + minimal: false + separate: false + matrix: + access_token: '' + enabled: false + homeserver: '' + room_id: '' + mattermost: + enabled: false + max_message_length: 40000 + webhook_url: '' + prowl: + api_key: '' + application: '' + enabled: false + priority: 0 + subject: '{count} changes: {jobs}' + pushbullet: + api_key: '' + enabled: false + pushover: + app: '' + device: null + enabled: false + priority: normal + sound: spacealarm + user: '' + shell: + command: '' + enabled: false + ignore_stderr: false + ignore_stdout: true + slack: + enabled: false + max_message_length: 40000 + webhook_url: '' + stdout: + color: true + enabled: true + telegram: + bot_token: '' + chat_id: '' + enabled: false + monospace: false + silent: false + text: + details: true + footer: true + line_length: 75 + minimal: false + separate: false + xmpp: + enabled: false + recipient: '' + sender: '' diff --git a/urlwatch/aima/jobs.yaml b/urlwatch/aima/jobs.yaml new file mode 100644 index 0000000..040c5d5 --- /dev/null +++ b/urlwatch/aima/jobs.yaml @@ -0,0 +1,33 @@ +--- +name: "Home" +url: "https://aima.gov.pt/pt/" +treat_new_as_changed: true +--- +name: "Viver" +url: "https://aima.gov.pt/pt/viver" +treat_new_as_changed: true +--- +name: "Estudar" +url: "https://aima.gov.pt/pt/estudar" +treat_new_as_changed: true +--- +name: "Trabalhar" +url: "https://aima.gov.pt/pt/trabalhar" +treat_new_as_changed: true +--- +name: "Serviços" +url: "https://aima.gov.pt/pt/a-aima/servicos" +treat_new_as_changed: true +--- +name: "Lojas" +url: "https://aima.gov.pt/pt/a-aima/servicos/lojas-aima" +treat_new_as_changed: true +--- +name: "A AIMA" +url: "https://aima.gov.pt/pt/a-aima" +treat_new_as_changed: true +--- +name: "Notícias" +url: "https://aima.gov.pt/pt/noticias" +treat_new_as_changed: true +--- diff --git a/urlwatch/b3/config.yaml b/urlwatch/b3/config.yaml new file mode 100644 index 0000000..5eb13ec --- /dev/null +++ b/urlwatch/b3/config.yaml @@ -0,0 +1,103 @@ +display: + empty-diff: true + error: true + new: true + unchanged: false +job_defaults: + all: {} + browser: {} + shell: {} + url: {} +report: + email: + enabled: true + subject: '[B3] {count} changes: {jobs}' + from: jpcercal@gmail.com + to: jpcercal@gmail.com + method: smtp + smtp: + host: smtp.gmail.com + auth: true + port: 587 + starttls: true + discord: + colored: true + embed: false + enabled: false + max_message_length: 2000 + subject: '{count} changes: {jobs}' + webhook_url: '' + html: + diff: unified + separate: false + ifttt: + enabled: false + event: '' + key: '' + mailgun: + api_key: '' + domain: '' + enabled: false + from_mail: '' + from_name: '' + region: us + subject: '{count} changes: {jobs}' + to: '' + markdown: + details: true + footer: true + minimal: false + separate: false + matrix: + access_token: '' + enabled: false + homeserver: '' + room_id: '' + mattermost: + enabled: false + max_message_length: 40000 + webhook_url: '' + prowl: + api_key: '' + application: '' + enabled: false + priority: 0 + subject: '{count} changes: {jobs}' + pushbullet: + api_key: '' + enabled: false + pushover: + app: '' + device: null + enabled: false + priority: normal + sound: spacealarm + user: '' + shell: + command: '' + enabled: false + ignore_stderr: false + ignore_stdout: true + slack: + enabled: false + max_message_length: 40000 + webhook_url: '' + stdout: + color: true + enabled: true + telegram: + bot_token: '' + chat_id: '' + enabled: false + monospace: false + silent: false + text: + details: true + footer: true + line_length: 75 + minimal: false + separate: false + xmpp: + enabled: false + recipient: '' + sender: '' diff --git a/urlwatch/b3/jobs.yaml b/urlwatch/b3/jobs.yaml new file mode 100644 index 0000000..ca8d677 --- /dev/null +++ b/urlwatch/b3/jobs.yaml @@ -0,0 +1,190 @@ +--- +name: "FII - BCFF11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/BCFF11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - HGRE11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/HGRE11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - HTMX11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/HTMX11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - KNCR11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/KNCR11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - KNIP11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/KNIP11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - KNRI11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/KNRI11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - MALL11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/MALL11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - MXRF11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/MXRF11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - TVRI11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/TVRI11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - VINO11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/VINO11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - VISC11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/VISC11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - XPCI11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/XPCI11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - XPLG11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/XPLG11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - BBDC3" +url: "https://query1.finance.yahoo.com/v8/finance/chart/BBDC3.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - BBDC4" +url: "https://query1.finance.yahoo.com/v8/finance/chart/BBDC4.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - ITSA4" +url: "https://query1.finance.yahoo.com/v8/finance/chart/ITSA4.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - KLBN11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/KLBN11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - MGLU3" +url: "https://query1.finance.yahoo.com/v8/finance/chart/MGLU3.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - NEOE3" +url: "https://query1.finance.yahoo.com/v8/finance/chart/NEOE3.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - SAPR11" +url: "https://query1.finance.yahoo.com/v8/finance/chart/SAPR11.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- +name: "FII - TRPL4" +url: "https://query1.finance.yahoo.com/v8/finance/chart/TRPL4.SA" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0000000000 or . >= 9999999999)' +--- \ No newline at end of file diff --git a/urlwatch/crypto/config.yaml b/urlwatch/crypto/config.yaml new file mode 100644 index 0000000..eb67dbb --- /dev/null +++ b/urlwatch/crypto/config.yaml @@ -0,0 +1,103 @@ +display: + empty-diff: true + error: true + new: true + unchanged: false +job_defaults: + all: {} + browser: {} + shell: {} + url: {} +report: + email: + enabled: true + subject: '[CRYPTO] {count} changes: {jobs}' + from: jpcercal@gmail.com + to: jpcercal@gmail.com + method: smtp + smtp: + host: smtp.gmail.com + auth: true + port: 587 + starttls: true + discord: + colored: true + embed: false + enabled: false + max_message_length: 2000 + subject: '{count} changes: {jobs}' + webhook_url: '' + html: + diff: unified + separate: false + ifttt: + enabled: false + event: '' + key: '' + mailgun: + api_key: '' + domain: '' + enabled: false + from_mail: '' + from_name: '' + region: us + subject: '{count} changes: {jobs}' + to: '' + markdown: + details: true + footer: true + minimal: false + separate: false + matrix: + access_token: '' + enabled: false + homeserver: '' + room_id: '' + mattermost: + enabled: false + max_message_length: 40000 + webhook_url: '' + prowl: + api_key: '' + application: '' + enabled: false + priority: 0 + subject: '{count} changes: {jobs}' + pushbullet: + api_key: '' + enabled: false + pushover: + app: '' + device: null + enabled: false + priority: normal + sound: spacealarm + user: '' + shell: + command: '' + enabled: false + ignore_stderr: false + ignore_stdout: true + slack: + enabled: false + max_message_length: 40000 + webhook_url: '' + stdout: + color: true + enabled: true + telegram: + bot_token: '' + chat_id: '' + enabled: false + monospace: false + silent: false + text: + details: true + footer: true + line_length: 75 + minimal: false + separate: false + xmpp: + enabled: false + recipient: '' + sender: '' diff --git a/urlwatch/crypto/jobs.yaml b/urlwatch/crypto/jobs.yaml new file mode 100644 index 0000000..3ba55e7 --- /dev/null +++ b/urlwatch/crypto/jobs.yaml @@ -0,0 +1,73 @@ +--- +name: "BTC/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/BTC-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 30000 or . >= 40000)' +--- +name: "ETH/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/ETH-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 1500 or . >= 2000)' +--- +name: "CHZ/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/CHZ-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0.04 or . >= 0.25)' +--- +name: "SOL/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/SOL-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 40 or . >= 90)' +--- +name: "ADA/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/ADA-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 0.25 or . >= 0.75)' +--- +name: "LINK/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/LINK-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 5 or . >= 30)' +--- +name: "DOT/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/DOT-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 2 or . >= 20)' +--- +name: "LTC/EUR" +url: "https://query1.finance.yahoo.com/v8/finance/chart/LTC-EUR" +treat_new_as_changed: true +filter: + - jq: + query: '.chart.result[0].meta.regularMarketPrice' + - jq: + query: 'select(. <= 50 or . >= 100)' +--- \ No newline at end of file diff --git a/urlwatch/ip/config.yaml b/urlwatch/ip/config.yaml new file mode 100644 index 0000000..6828f16 --- /dev/null +++ b/urlwatch/ip/config.yaml @@ -0,0 +1,103 @@ +display: + empty-diff: true + error: true + new: true + unchanged: false +job_defaults: + all: {} + browser: {} + shell: {} + url: {} +report: + email: + enabled: true + subject: '[IP] {count} changes: {jobs}' + from: jpcercal@gmail.com + to: jpcercal@gmail.com + method: smtp + smtp: + host: smtp.gmail.com + auth: true + port: 587 + starttls: true + discord: + colored: true + embed: false + enabled: false + max_message_length: 2000 + subject: '{count} changes: {jobs}' + webhook_url: '' + html: + diff: unified + separate: false + ifttt: + enabled: false + event: '' + key: '' + mailgun: + api_key: '' + domain: '' + enabled: false + from_mail: '' + from_name: '' + region: us + subject: '{count} changes: {jobs}' + to: '' + markdown: + details: true + footer: true + minimal: false + separate: false + matrix: + access_token: '' + enabled: false + homeserver: '' + room_id: '' + mattermost: + enabled: false + max_message_length: 40000 + webhook_url: '' + prowl: + api_key: '' + application: '' + enabled: false + priority: 0 + subject: '{count} changes: {jobs}' + pushbullet: + api_key: '' + enabled: false + pushover: + app: '' + device: null + enabled: false + priority: normal + sound: spacealarm + user: '' + shell: + command: '' + enabled: false + ignore_stderr: false + ignore_stdout: true + slack: + enabled: false + max_message_length: 40000 + webhook_url: '' + stdout: + color: true + enabled: true + telegram: + bot_token: '' + chat_id: '' + enabled: false + monospace: false + silent: false + text: + details: true + footer: true + line_length: 75 + minimal: false + separate: false + xmpp: + enabled: false + recipient: '' + sender: '' diff --git a/urlwatch/ip/jobs.yaml b/urlwatch/ip/jobs.yaml new file mode 100644 index 0000000..66d3dc8 --- /dev/null +++ b/urlwatch/ip/jobs.yaml @@ -0,0 +1,5 @@ +--- +name: "Current IP Address" +url: "https://api.ipify.org" +treat_new_as_changed: true +--- From 7f924cc7a5d169064b25a821442536d24bc841a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Cercal?= Date: Tue, 6 Feb 2024 12:47:24 +0000 Subject: [PATCH 2/2] adjust apps / commands file --- apps.yaml | 15 +- commands.yaml | 756 ++++++++++++++++++++++++++++++++++---------------- 2 files changed, 526 insertions(+), 245 deletions(-) diff --git a/apps.yaml b/apps.yaml index fd87e14..3c805e0 100644 --- a/apps.yaml +++ b/apps.yaml @@ -20,7 +20,9 @@ install: - "coreutils" - "doctl" - "exa" + - "exiftool" - "fd" + - "fdupes" - "ffmpeg" - "findutils" - "fswatch" @@ -71,6 +73,7 @@ install: - "tpm" - "tree" - "unison" + - "urlwatch" - "vim" - "watch" - "watchexec" @@ -87,6 +90,7 @@ install: - "appcleaner" - "authy" - "balena-cli" + - "brave-browser" - "discord" - "docker" - "dropbox" @@ -143,6 +147,7 @@ install: - "font-victor-mono-nerd-font" - "google-chrome" - "hiddenbar" + - "hoppscotch" - "hpedrorodrigues/tools/dockutil" # temporary solution https://github.com/kcrawford/dockutil/issues/127 - "imageoptim" - "iterm2" @@ -152,12 +157,12 @@ install: - "macs-fan-control" - "monitorcontrol" - "moonlight" + - "mysqlworkbench" - "nordvpn" - "obs" - "oracle-jdk" - "parsec" - "pocket-casts" - - "postman" - "sequel-ace" - "shottr" - "skype" @@ -221,14 +226,10 @@ install: name: "Fantastical 2" - id: "412448059" name: "ForkLift" - - id: "553245401" - name: "Friendly Streaming" - id: "682658836" name: "GarageBand" - id: "668208984" name: "Giphy Capture" - - id: "975890633" - name: "HotKey" - id: "775737590" name: "iA Writer" - id: "408981434" @@ -245,10 +246,6 @@ install: name: "Numbers" - id: "409201541" name: "Pages" - - id: "568494494" - name: "Pocket" - - id: "880001334" - name: "Reeder" - id: "1153157709" name: "Speedtest" - id: "1278508951" diff --git a/commands.yaml b/commands.yaml index b3da26c..e094906 100644 --- a/commands.yaml +++ b/commands.yaml @@ -11,6 +11,82 @@ ab: command: | ab -n 1000 -c 2 https://jpcercal.com/ +brew: + description: | + homebrew is the easiest and most flexible way to install the UNIX tools + Apple didn't include with macOS. It can also install software not packaged + for your Linux distribution without requiring sudo. + commands: + - description: | + install the package with the given name. + command: | + brew install --cask + - description: | + list all the installed packages. + command: | + brew list + - description: | + uninstall the package with the given name. + command: | + brew uninstall + - description: | + update the package with the given name. + command: | + brew upgrade + - description: | + update all the installed packages. + command: | + brew upgrade + - description: | + update the homebrew package manager. + command: | + brew update + - description: | + update the homebrew package manager and all the installed packages. + command: | + brew update && brew upgrade + +cargo: + description: | + cargo is a package manager for Rust. + commands: + - description: | + list all the available cargo commands. + command: | + cargo --list + - description: | + add the package with the given name to the current project. + command: | + cargo add + - description: | + install the package with the given name. + command: | + cargo install + - description: | + build the current project. + command: | + cargo build + - description: | + check the current project for errors. + command: | + cargo check + - description: | + run the current project. + command: | + cargo run + - description: | + format the current project. + command: | + cargo fmt + - description: | + create a new cargo project with the given name. + command: | + cargo new + - description: | + test the current project. + command: | + cargo test + cat: description: | concatenate files and print on the standard output. @@ -36,6 +112,21 @@ cat: command: | cat ~/.zshrc +cd: + description: | + the cd command allows you to move between directories. The cd command takes + an argument, usually the name of the folder you want to move to, so the full + command is cd your-directory. + commands: + - description: | + change the current directory to the ~/projects directory. + command: | + cd ~/projects + - description: | + change the current directory to the ~/dotfiles directory. + command: | + cd ~/dotfiles + composer: description: | composer is a tool for dependency management in PHP. It allows you to @@ -60,6 +151,33 @@ composer: command: | composer install +curl: + description: | + curl is a command-line tool for transferring data specified with URL syntax. + commands: + - description: | + make a GET request to the localhost:3000/users endpoint and print the + response in a human-readable format. + command: | + curl --request GET --url http://localhost:3000/users | jq '.data' + - description: | + make a POST request to the localhost:3000/users endpoint with the + content-type application/json and the data '{"name": "John Doe", "email": "john.doe@example.com"}' + command: | + curl --request POST + --url http://localhost:3000/users + --header 'Content-Type: application/json' + --data '{"name": "John Doe", "email": "john.doe@example.com"}' + +date: + description: | + display the current time in the given format. + commands: + - description: | + print the current date in the format `YYYY.MM.DD HH.MM.SS`. + command: | + date '+%Y.%m.%d %H.%M.%S' + docker: description: | docker is a platform designed to help developers build, share, and run @@ -100,11 +218,17 @@ docker: it creates a volume with the content of the current directory onto /data and gain access to the container bash after all. command: | - docker run --rm -it -v "$(pwd)":/data ubuntu:latest bash + docker run --rm -it -v "$(pwd)":/data -w /data ubuntu:latest bash - description: | - stop all the containers that are running at the moment, remove all - containers, remove all available network interfaces, remove all the - docker images. + stop all the running containers and remove all the containers, volumes, and networks. + command: | + docker stop $(docker ps -aq) && + docker rm $(docker ps -aq); + docker volume rm $(docker volume ls -q); + docker network rm $(docker networkls -q) + - description: | + stop all the running containers, remove all the containers, volumes and + networks and remove all the images. command: | docker stop $(docker ps -aq) && docker rm $(docker ps -aq); @@ -119,144 +243,111 @@ docker: call docker-compose to spin up all the containers while removing all the orphans. command: | - docker-compose up --remove-orphans + docker compose up --remove-orphans + - description: | + call docker-compose to spin up all the containers while removing all + the orphans, volumes and rebuilding all the images. + command: | + docker compose up --remove-orphans --volumes --build -ls: +du: description: | - list directory contents. + estimate file space usage. commands: - description: | - list the content of the current directly in a list, human-readable - including all the hidden files. + print the size of the current directory in a human-readable format. command: | - ls -lha + du -sh . -spryker: +echo: description: | - spryker is the leading composable commerce platform for enterprises with - sophisticated business models to enable growth, innovation, and - differentiation. + write arguments to the standard output. commands: - description: | - spin up the cli container and run the composer install command - once it's up running. - command: | - docker/sdk cli composer install - - description: | - spin up the cli container and run the console with the - code:sniff:style command to fix all the files that do not - match the current rules/constrainst defined on the project. - command: | - docker/sdk cli vendor/bin/console c:s:s -f - - description: | - spin up the cli container and run the console with the propel:install - command which will run config convert, create database, postgres - compatibility, copy schemas, runs Diff, build models and migrate tasks. - command: | - docker/sdk cli vendor/bin/console propel:install - - description: | - use git to clone the content of the repository spryker/docker-sdk - onto the current directory. Spryker Docker SDK helps to set up a - Docker environment for your Spryker project. - command: | - git clone git@github.com:spryker/docker-sdk.git docker - - description: | - prepare all the files to run the application based on the - deploy.dev.yml file defined on the project root dir of any - spryker installation. - command: | - docker/sdk boot -s deploy.dev.yml - - description: | - spin up the cli container and run npm to watch for changes - in the Yves frontend files and rebuilds the assets when necessary. - command: | - docker/sdk cli npm run yves:watch - - description: | - prepare all the files to run the application based on the - deploy.dev.yml file defined on the project root dir of any - spryker installation & build the application including the - data reset and the front assets compilation. - command: | - docker/sdk boot -s deploy.dev.yml && - docker/sdk up --data --build --assets - - description: | - spin up all the containers needed to run the application with the - debug mode turned on. - command: | - docker/sdk up -x - - description: | - spin up the cli container and run yves with the router:debug - command that will allow to see all the routes registered on yves. - command: | - docker/sdk cli yves router:debug - - description: | - spin up the cli container and run the vendor/bin/console with xdebug - turned on. + print a md5 hash of a given string. command: | - docker/sdk console -x + echo jpcercal | md5 + +fdupes: + description: | + identify or delete duplicate files. + commands: - description: | - spin up the cli container and the console with the code:phpstan - command that will run PHPStan static analyzer for project or core. + find and delete all the duplicate files in the ./photos/flattened + directory. command: | - docker/sdk console code:phpstan + fdupes --size --delete --noprompt --recurse ./photos/flattened + +ffmpeg: + description: | + ffmpeg is a very fast video and audio converter that can also grab from a + live audio/video source. + commands: - description: | - spin up the cli container and run the console with the - code:sniff:style command to fix all the files that do not - match the current rules/constrainst defined on the project. + convert the input-filename.gif to a mp4 file with the faststart flag + turned on, the pixel format set to yuv420p and the video scaled to the + nearest even number. command: | - docker/sdk console code:sniff:style -f + ffmpeg -i input-filename.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" + +find: + description: | + walk a file hierarchy. + commands: - description: | - spin up the cli container and run the console with the - data:import command that will executes your importers (full-import). - Add this command with another name e.g. - "new DataImportConsole('data:import:category')" to your - ConsoleDependencyProvider and you can run a single DataImporter - which is mapped to the latter part of the command name. + find recursively any file with the extension .php thaat contains on its + content the regex class.*?Cest command: | - docker/sdk console data:import + find . -type f \( -name '*.php' \) -exec grep -EH '\class.*?Cest' {} \; + +for: + description: | + loop command. + commands: - description: | - run spryker's data:import:cms-block command + print the string "row #${i} - $(date)" 10 times. command: | - docker/sdk console data:import:cms-block + for i in {1..10}; do + echo "row #${i} - $(date)" + done + +fuser: + description: | + identify processes using files or sockets. + commands: - description: | - run spryker's data:import:glossary command + print the process id of the process using the port 3000. command: | - docker/sdk console data:import:glossary + fuser 3000/tcp + +gem: + description: | + gem is a package manager for the Ruby programming language. + commands: - description: | - run spryker's transfer:generate command + install the package with the given name. command: | - docker/sdk console transfer:generate + gem install - description: | - run spryker's docker/sdk reset command + list all the installed gems. command: | - docker/sdk reset + gem list - description: | - run spryker's codecept build command + uninstall the package with the given name. command: | - docker/sdk testing -x codecept build + gem uninstall - description: | - run spryker's codecept test command + update the package with the given name. command: | - docker/sdk testing -x codecept run -g ClassNameTest - -echo: - description: | - write arguments to the standard output. - commands: + gem update - description: | - print a md5 hash of a given string. + update all the installed gems. command: | - echo jpcercal | md5 - -find: - description: | - walk a file hierarchy. - commands: + gem update - description: | - find recursively any file with the extension .php thaat contains on its - content the regex class.*?Cest + update the gem package manager. command: | - find . -type f \( -name '*.php' \) -exec grep -EH '\class.*?Cest' {} \; + gem update --system git: description: | @@ -274,6 +365,11 @@ git: restore all working tree files to the latest commited state. command: | git checkout -- . + - description: | + restore all working tree files to the latest commited state and + unstage all the staged files. + command: | + git checkout - - description: | record changes to the repository ammending it to the last commit and does not stop for editing the commit message. @@ -296,6 +392,12 @@ git: to the last commit. command: | git diff --cached + - description: | + git diff of all the staged changes for the next commit relative + to the last commit with the ability to select the files to be + commited. + command: + git diff $@ --name-only --cached | fzf -m --ansi --preview "git diff $@ --cached --color=always" - description: | clean up of the main branch with the latest changes from the remote branch. @@ -313,39 +415,39 @@ git: command: | git rebase --continue - description: | - + skip the process started by git rebase. command: | git rebase --skip - description: | - + start the process of git rebase with the last 5 commits. command: | git rebase -i HEAD~5 - description: | - + rebase the current branch with the main branch from the remote. command: | git rebase origin/main - description: | - + list all the remotes of the current git repository. command: | git remote -v - description: | - + restore all the staged changes of the current working tree. command: | git restore --staged . - description: | - + restore all the changes of the current working tree. command: | git restore . - description: | - + stash all the changes of the current working tree. command: | git stash - description: | - + apply the last stash to the current working tree. command: | git stash pop - description: | - + show the status of the current git repository. command: | git status @@ -355,49 +457,103 @@ go: secure, scalable systems. commands: - description: | - + download and install all the dependencies of the current project. command: | go get -v ./... - description: | - + tidy up the go.mod file of the current project. command: | go mod tidy -v - description: | - + download all the dependencies of the current project. + command: | + go mod download + - description: | + format all the files of the current project. command: | gofmt -e -d -s -w ./... - description: | - + format all the files of the current project and fix the imports. command: | goimports -w ./ + - description: | + run all the tests of the current project. + command: | + go test -timeout 30s -v -run ./... + - description: | + run all the tests of the current project with coverage. + command: | + go test -race -covermode atomic -coverprofile=covprofile.out -v ./... + - description: | + show the coverage of the current project based on the covprofile.out file. + command: | + go tool cover -func=covprofile.out -move atomic + - description: | + run the linter of the current project with the golangci-lint using the verbose flag. + command: | + golangci-lint run -v + head: description: | display first lines of a file. commands: - description: | - + print the first 30 lines of the ~/.zsh_history file. command: | head -30 ~/.zsh_history +hostname: + description: | + set or print name of current host system. + commands: + - description: | + print the hostname of the current system. + command: | + hostname + http: description: | HTTPie: modern, user-friendly command-line HTTP client for the API era. commands: - description: | - + make a GET request to the localhost:3000/users endpoint, following + the redirects and using the basic authentication with the username + and password. command: | http --follow --auth-type basic --auth username:pwd - "https://localhost/?id=1" + "https://localhost/" + - description: | + make a GET request to the yahoo finance API to get the current price + of the BCFF11.SA stock. + command: | + http --follow + GET "https://query1.finance.yahoo.com/v8/finance/chart/BCFF11.SA" | jq '.chart.result[0].meta.regularMarketPrice' + - description: | + make a GET request to the localhost:3000/users endpoint with the + content-type application/json and print the response in a human-readable + format. + command: | + http --follow + GET "http://localhost:3000/users" | jq + - description: | + make a POST request to the localhost:3000/users endpoint with the + content-type application/json and the data + '{ "name": "John Doe", "email": "john.doe@exampled.com" }' and print + the response in a human-readable format. + command: | + http --follow + POST "http://localhost:3000/users" + --raw '{ "name": "John Doe", "email": "john.doe@exampled.com" }' | jq kill: description: | terminate or signal a process. commands: - description: | - + kill the process with the pid 123 using the SIGTERM signal. command: | kill SIGTERM 123 @@ -406,7 +562,7 @@ kubernetes: kubectl controls the Kubernetes cluster manager. commands: - description: | - + print the current context of the kubernetes cluster. command: | kubectl config current-context - description: | @@ -414,25 +570,82 @@ kubernetes: command: | kubectl config view | yq '.contexts[].name' - description: | - switch Kubernetes Context. + get all the available contexts of the kubernetes cluster. command: | - kubectl config use-context + kubectl config get-contexts + - description: | + list all available Kubernetes context names. + command: | + kubectl config view | yq '.contexts[].name' - description: | - + switch Kubernetes Context. command: | - kubectl get + kubectl config use-context - description: | - + get all the namespaces of the kubernetes cluster. command: | kubectl get namespace - description: | - + get all the pods of the kubernetes cluster. command: | kubectl get pods - description: | - + execute a command in a pod of the kubernetes cluster. + command: | + kubectl exec -it bash + - description: | + port forward the port 5432 of the kubernetes cluster to the local port 5432. + command: | + kubectl port-forward 5432:5432 + +kubens: + description: | + kubens is a utility to switch between Kubernetes namespaces. + commands: + - description: | + list all the available namespaces. command: | kubens + - description: | + switch to the namespace with the given name. + command: | + kubens + +last: + description: | + indicate last logins of users and ttys. + commands: + - description: | + print the last reboot of the system. + command: | + last reboot + +ls: + description: | + list directory contents. + commands: + - description: | + list the content of the current directly in a list, human-readable + including all the hidden files. + command: | + ls -lha + - description: | + list only the filenames of the current directory. + command: | + ls -l | awk '{ print $9 }' + +lsof: + description: | + list open files. + commands: + - description: | + check if the port 3000 is being used by any process. + command: | + lsof -i tcp:3000 + - description: | + check if the port 80 is being used by any process. + command: | + lsof -i tcp:80 magick: description: | @@ -440,7 +653,7 @@ magick: despeckle, dither, draw on, flip, join, re-sample, and much more. commands: - description: | - + convert all the .heic files to .jpg files. command: | magick mogrify -monitor -format jpg "*.[hH][eE][iI][cC]" @@ -449,11 +662,11 @@ nc: arbitrary TCP and UDP connections and listens commands: - description: | - + listen to the port 9200. command: | nc -z elasticsearch 9200 - description: | - + listen to the port 6379. command: | nc -z redis 6379 @@ -463,7 +676,7 @@ ngrok: firewall, API gateway and global load balancing into a production service. commands: - description: | - + start a ngrok tunnel to the port 80. command: | ngrok http 80 @@ -472,7 +685,7 @@ nmap: network exploration tool and security / port scanner. commands: - description: | - + scan the network command: | nmap -sP 192.168.1.0/24 @@ -481,15 +694,16 @@ node: server-side JavaScript runtime. commands: - description: | - + login to the npm registry with the legacy auth type. command: | npm login --registry http://npm.domain.dev --auth-type legacy - description: | - + run the build command of the current project defined on the package.json file. command: | npm run build - description: | - + run the test command of the current project defined on the package.json file + with the u flag turned on. command: | npm run test -- -u @@ -498,23 +712,23 @@ nvim: nvim is a text editor based on Vim. commands: - description: | - + open the /etc/hosts file with nvim. command: | nvim /etc/hosts - description: | - + open the ~/.composer/auth.json file with nvim. command: | nvim ~/.composer/auth.json - description: | - + open the ~/.gitconfig file with nvim. command: | nvim ~/.gitconfig - description: | - + open the ~/.ssh/known_hosts file with nvim. command: | nvim ~/.ssh/known_hosts - description: | - + open the ~/.zsh_history file with nvim. command: | nvim ~/.zsh_history @@ -524,7 +738,7 @@ pbcopy: Clipboard) from command line. commands: - description: | - + copy the content of the ~/.ssh/id_rsa.pub file to the clipboard. command: | pbcopy < ~/.ssh/id_rsa.pub && cat ~/.ssh/id_rsa.pub @@ -533,7 +747,7 @@ ping: send ICMP ECHO_REQUEST packets to network hosts. commands: - description: | - + ping a website to check if it's up and running. command: | ping google.com @@ -543,7 +757,7 @@ plumber: data in message systems like Kafka, RabbitMQ , GCP PubSub and many more. commands: - description: | - + read the aws-sqs queue_name with the auto-delete flag turned on. command: | plumber read aws-sqs -f @@ -553,7 +767,7 @@ plumber: --aws-access-key-id=AKIASFYAHAJW5NPOUYED --aws-secret-access-key=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 - description: | - + read the kafka migrations topic with the follow and json flags turned on. command: | plumber read kafka --topic migrations @@ -561,7 +775,7 @@ plumber: --follow --json - description: | - + write the kafka migrations topic with the input-data specified. command: | plumber write kafka --address="localhost:55001" @@ -573,20 +787,138 @@ rm: remove directory entries. commands: - description: | - + force remove the vendor directory. command: | rm -Rf vendor - description: | - + force remove the node_modules directory. command: | rm -Rf node_modules +ls: + description: | + list directory contents. + commands: + - description: | + list the content of the current directly in a list, human-readable + including all the hidden files. + command: | + ls -lha + +spryker: + description: | + spryker is the leading composable commerce platform for enterprises with + sophisticated business models to enable growth, innovation, and + differentiation. + commands: + - description: | + spin up the cli container and run the composer install command + once it's up running. + command: | + docker/sdk cli composer install + - description: | + spin up the cli container and run the console with the + code:sniff:style command to fix all the files that do not + match the current rules/constrainst defined on the project. + command: | + docker/sdk cli vendor/bin/console c:s:s -f + - description: | + spin up the cli container and run the console with the propel:install + command which will run config convert, create database, postgres + compatibility, copy schemas, runs Diff, build models and migrate tasks. + command: | + docker/sdk cli vendor/bin/console propel:install + - description: | + use git to clone the content of the repository spryker/docker-sdk + onto the current directory. Spryker Docker SDK helps to set up a + Docker environment for your Spryker project. + command: | + git clone git@github.com:spryker/docker-sdk.git docker + - description: | + prepare all the files to run the application based on the + deploy.dev.yml file defined on the project root dir of any + spryker installation. + command: | + docker/sdk boot -s deploy.dev.yml + - description: | + spin up the cli container and run npm to watch for changes + in the Yves frontend files and rebuilds the assets when necessary. + command: | + docker/sdk cli npm run yves:watch + - description: | + prepare all the files to run the application based on the + deploy.dev.yml file defined on the project root dir of any + spryker installation & build the application including the + data reset and the front assets compilation. + command: | + docker/sdk boot -s deploy.dev.yml && + docker/sdk up --data --build --assets + - description: | + spin up all the containers needed to run the application with the + debug mode turned on. + command: | + docker/sdk up -x + - description: | + spin up the cli container and run yves with the router:debug + command that will allow to see all the routes registered on yves. + command: | + docker/sdk cli yves router:debug + - description: | + spin up the cli container and run the vendor/bin/console with xdebug + turned on. + command: | + docker/sdk console -x + - description: | + spin up the cli container and the console with the code:phpstan + command that will run PHPStan static analyzer for project or core. + command: | + docker/sdk console code:phpstan + - description: | + spin up the cli container and run the console with the + code:sniff:style command to fix all the files that do not + match the current rules/constrainst defined on the project. + command: | + docker/sdk console code:sniff:style -f + - description: | + spin up the cli container and run the console with the + data:import command that will executes your importers (full-import). + Add this command with another name e.g. + "new DataImportConsole('data:import:category')" to your + ConsoleDependencyProvider and you can run a single DataImporter + which is mapped to the latter part of the command name. + command: | + docker/sdk console data:import + - description: | + run spryker's data:import:cms-block command + command: | + docker/sdk console data:import:cms-block + - description: | + run spryker's data:import:glossary command + command: | + docker/sdk console data:import:glossary + - description: | + run spryker's transfer:generate command + command: | + docker/sdk console transfer:generate + - description: | + run spryker's docker/sdk reset command + command: | + docker/sdk reset + - description: | + run spryker's codecept build command + command: | + docker/sdk testing -x codecept build + - description: | + run spryker's codecept test command + command: | + docker/sdk testing -x codecept run -g ClassNameTest + screen: description: | screen manager with VT100/ANSI terminal emulation. commands: - description: | - + open the screen of the docker vm. command: | screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty @@ -599,21 +931,20 @@ sh: supported shells. commands: - description: | - + wait for the postgres database to be up and running. command: | sh -c "while ! nc -z postgres 5432; do sleep 0.1; done" -sh: +source: description: | - shell builtin commands are commands that can be executed within the running - shell's process. + Source the file argument. commands: - description: | - + source the .env file. command: | source .env - description: | - + source the .zshrc file. command: | source ~/.zshrc @@ -625,104 +956,36 @@ ssh: network. commands: - description: | - + add the ssh key to the keychain. command: | ssh-add --apple-use-keychain ~/.ssh/id_ed25519 - description: | - + generate a new ssh key with the ed25519 algorithm. command: | ssh-keygen -t ed25519 -C "jpcercal@gmail.com" - description: | - + generate a new ssh key with the rsa algorithm. command: | ssh-keygen -t rsa -b 4096 -C "jpcercal@gmail.com" - description: | - + start the ssh agent. command: | eval "$(ssh-agent -s)" - description: | - + create the ~/.ssh/config file. command: | touch ~/.ssh/config -lsof: - description: | - list open files. - commands: - - description: | - - command: | - sudo lsof -i tcp:3000 - - description: | - - command: | - sudo lsof -i tcp:80 - tail: description: | the tail utility displays the contents of file or, by default, its standard input, to the standard output. commands: - description: | - + print the last 30 lines of the ~/.zsh_history file. command: | tail -30 ~/.zsh_history -uname: - description: | - the uname command writes the name of the operating system implementation to - standard output. When options are specified, strings representing one or - more system characteristics are written to standard output. - commands: - - description: | - - command: | - uname -a - -cd: - description: | - the cd command allows you to move between directories. The cd command takes - an argument, usually the name of the folder you want to move to, so the full - command is cd your-directory. - commands: - - description: | - - command: | - cd ~/projects - - description: | - - command: | - cd ~/dotfiles - -last: - description: | - indicate last logins of users and ttys. - commands: - - description: | - - command: | - last reboot - -hostname: - description: | - set or print name of current host system. - commands: - - description: | - - command: | - hostname - -brew: - description: | - homebrew is the easiest and most flexible way to install the UNIX tools - Apple didn't include with macOS. It can also install software not packaged - for your Linux distribution without requiring sudo. - commands: - - description: | - - command: | - brew install --cask - turbinekreuzberg: description: | list of commands that I used to use when I worked at @@ -743,3 +1006,24 @@ turbinekreuzberg: -P $(cat ~/projects/turbine/turboshop/deploy.aws-env.yml | yq '.image.environment.AWS_SPRYKER_DB_PORT') -p$(cat ~/projects/turbine/turboshop/deploy.aws-env.yml | yq '.image.environment.AWS_SPRYKER_DB_ROOT_PASSWORD') " + +uname: + description: | + the uname command writes the name of the operating system implementation to + standard output. When options are specified, strings representing one or + more system characteristics are written to standard output. + commands: + - description: | + print the name of the operating system implementation. + command: | + uname -a + +urlwatch: + description: | + urlwatch is intended to help you watch changes in webpages and get notified + (e.g., via email) of any changes. + commands: + - description: | + execute the urlwatch command with the configuration file and the jobs using the verbose flag. + command: | + urlwatch --config ~/dotfiles/urlwatch/aima/config.yaml --urls ~/dotfiles/urlwatch/aima/jobs.yaml --verbose