# start with `+`
# v
$ export PS4='+\033[37;2;3m(${BASH_SOURCE}:${LINENO})\033[0m: \033[35;2;3m${FUNCNAME[0]:+${FUNCNAME[0]}():}\033[0m '
$ bash -x diff.sh
+(diff.sh:4): set -euo pipefail
+(diff.sh:13): array1=("key1" "key2" "key3" "key4" "key5" "key6" "key7" "key8" "key9" "key10")
+(diff.sh:14): array2=("key1" "key3" "key4" "key2" "key5" "key6")
+(diff.sh:15): array3=($(diff array1[@] array2[@]))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":1,"resource":"file:///Users/marslo/iMarslo/job/code/re/sdk-release/vars/wrapper.groovy","entries":[{"id":"X0fn.groovy","timestamp":1743640609154},{"id":"WdKu.groovy","timestamp":1743640625380}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# original: https://raw.githubusercontent.com/tweksteen/jenkins-decrypt/master/decrypt.py | |
# requires: pycrypto | |
import re | |
import sys | |
import base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shellcheck disable=SC1117,SC2001 | |
# | |
# [X] open section | |
# [X] one shot mode | |
# [X] usage info | |
# [X] dependencies check | |
# [X] help | |
# [X] yank/y/copy/c | |
# [X] Y/C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck source=/dev/null disable=SC2155 | |
#============================================================================= | |
# FileName : tlrc-update | |
# Author : [email protected] | |
# Created : 2025-02-13 13:44:36 | |
# LastChange : 2025-02-13 15:15:28 | |
# Description : workaround for `error: io: invalid peer certificate: UnknownIssuer` | |
# @see https://github.com/tldr-pages/tlrc/issues/111#issuecomment-2657620327 | |
#============================================================================= |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
$ brew uninstall neovim && brew install --HEAD --force neovim -v --debug | |
Uninstalling /usr/local/Cellar/neovim/HEAD-0985e78... (2,045 files, 30.1MB) | |
==> Autoremoving 4 unneeded formulae: | |
lpeg | |
luajit | |
luv | |
unibilium | |
Uninstalling /usr/local/Cellar/lpeg/1.1.0... (14 files, 263.1KB) | |
Uninstalling /usr/local/Cellar/unibilium/2.1.2... (64 files, 262.7KB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# @author : Anthony Bourdain | |
# @credit : https://stackoverflow.com/a/55073732/2940319 | |
# @usage : | |
# - `rgbtohex 17 0 26` ==> 1001A | |
# - `rgbtohex -h 17 0 26` ==> #1001A | |
function rgbtohex () { | |
addleadingzero () { awk '{if(length($0)<2){printf "0";} print $0;}';} | |
if [[ ${1} == "-h" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOMEBREW_VERSION: 4.2.10-44-gfb09997 | |
ORIGIN: https://github.com/Homebrew/brew | |
HEAD: fb099976bd68003435ebccf4a4c2066768021286 | |
Last commit: 7 hours ago | |
Core tap HEAD: c394726d16bac282ed47fb18d10e7f96f5283d89 | |
Core tap last commit: 4 weeks ago | |
Core tap JSON: 29 Feb 02:04 UTC | |
Core cask tap origin: https://mirrors.ustc.edu.cn/homebrew-cask.git | |
Core cask tap HEAD: ea614e98b852030f32f73a4583d84491dca3df0e | |
Core cask tap last commit: 4 weeks ago |
NewerOlder