CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 03:48:00 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"9ee2da2cbe57c6b9b331570839374975"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=R4TCPDWbeDZWAK5dVl%2B9Z2XTwIB%2F5cVDwo%2FmGVdIkWxYCoM1H2T5JWc70cbXOvxZdiv6sObXvUp1%2FdUVQD7l1S4T7WFwwc2Cy47nShWRdgWklTWkFCwcx4XzSN%2BRFEOkMynKh%2FQunHro6cfYga8EEdgmqiekd%2BZ9sKFSJU7O2yeHm4rd%2FSThBJbRRwHdTp9gUQOx9NZFYtdEKCDn%2B3Qqp4RBCCG5wlr%2BV7buLu8HFmEIBgST8ELVBrf3zSbdZAkpF4%2BzN59S5HdQXgJCWzxeiQ%3D%3D--YdzRPD0WE%2FLTruaF--sppMAEPTGu0LnKFu4j1juw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1256778978.1753501680; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:48:00 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:48:00 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CE06:3240E6:122151:1BC53A:68844FF0
Releases · oldratlee/useful-scripts · GitHub
15 Apr 12:07
Loading
12 Apr 05:47
Loading
18 Feb 05:05
Loading
24 Jan 18:05
Loading
05 Dec 05:39
Loading
06 Sep 03:20
Loading
24 Dec 14:35
Loading
21 Jul 06:37
Loading
16 May 14:40
Loading
30 Apr 07:16
Loading
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Releases: oldratlee/useful-scripts
Releases · oldratlee/useful-scripts
🐌 v3.0.0-Alpha: a WIP/cleanup release
Compare
Note
This is a WIP/cleanup release for upgrading version to 3.x
- remove
legacy bin
🚮 - rename dir
test-cases
totest
🆙
It's time to say goodbye,
my friend
It's been a long day without you my friend
And I'll tell you all about it when I see you again
We've come a long way from where we began
Oh I'll tell you all about it when I see you again
Have Fun! 💕
2024-04-15
Assets 2
1 person reacted
🐌 v2.5.4 🍬🎰
Compare
☘️ Features
- [
c
]: ensure using command onPATH
, and check the command existence onPATH
👣 - [
coat/taoc
]: add--help/--version
options 🚩
🍬 Improvements
- [
find-in-jars
]: addIFS=
forread
, more robust 💪- file paths may contain leading spaces
- [
show-busy-java-threads
]:- improve separator blank line output 💅 fix wrong blank line logic
- extract
timestamp
var to avoid inconsistency ⌚️
- unify error message format and refactor related functions ℹ️
- keep
usage
function simple - use
-s
/-h
option for optional argument ofdie
function
- keep
- use
${var##*/}
instead ofbasename
to assignPROG
var 🎛️- faster, no subprocess fork
- use command
realpath
instead of functionportableReadLink
🔗- faster and without losing portability
- use bash builtin
type -P
instead ofwhich
command, faster 🐚
🛠️ Refactor
- [
show-busy-java-threads
]: rename global varUSER
->WHOAMI
👤 - [
uq
]: use exponential operation instead of multiplication to calculate size 🧮 - [
c
]: rename functions 🔡 - use
Shell Arithmetic
comparison instead ofConditional Expressions
🔢 - use
=
instead of==
inConditional Expressions
- use
||/&&
instead of one branch/one lineif
🎰 - inline
colorPrint
function if only one caller - variable related refactors:
- extract
UNAME
var 🔠 - rename var, use
COLOR_INDEX
instead ofCOUNT
- remove
declare
keyword for global vars, more consistent - use upper-case var name for global readonly vars
- unset temp global vars after use
- remove unnecessary
{}
when use var - remove
local nl=$'\n'
declaration if only one usage
- extract
- small code cleanup
- remove unnecessary file descriptor number
1
in redirections ➡️ - remove section comments for simple section
- improve/fix/add code comments
- remove unnecessary file descriptor number
📚 Documentation
- update manual pages links to manned.org 📚
- use
shellcheck
item doc link instead of prolixity comments ✨
🚜 Build/CI
- upgrade GitHub actions; add
dependabot.yml
🤖 - upgrade
shunit2
lib
Have Fun! 💕
2024-04-12
Assets 2
1 person reacted
🐌 v2.5.3 ☕️
Compare
Assets 2
1 person reacted
🐌 v2.5.2 🌗🐚🐈
Compare
🐞 BugFix
coat/taoc
: missing last line if there’s no newline at the end of the file 🌗 🙀xpl
: wrong exit code when file not existed or open file failure 🔢
🛠️ Improvements/Refactor
- find bash with
/usr/bin/env
in shebang (by @hyperupcall in #119) 🐚 coat/taoc
: 🐈- remove pipe when naked
cat
(more straightforward and faster) 😸 - extract
colorLines
function 🌈
- remove pipe when naked
a2l
: merge functioncolorPrint
intorotateColorPrint
🛠️- improve readability
- remove var interpolation in
printf format
if possible - rename vars, e.g.
message
->content
,normal
->color_reset
👓 - use
\e
instead of\033
- improve comments for
-t
check
- remove var interpolation in
- simplify var usage
- remove unnecessary
{}
when use var - remove quote of values in simple assignment
- All values undergo tilde expansion, parameter and variable expansion,
command substitution, arithmetic expansion, and quote removal.
Word splitting and filename expansion are not performed. - more info about assignment see
https://www.gnu.org/software/bash/manual/html_node/Shell-Parameters.html
- All values undergo tilde expansion, parameter and variable expansion,
- remove unnecessary
🚜 Build/CI
- upgrade
shunit2
lib
Have Fun! 💕
2024-01-25
Assets 2
2 people reacted
🐌 v2.5.1 🐞🚞🕵️
Compare
🐞 BugFix
c
: wrong exit code with-q
option 🐞
🛠️ Improvements/Refactor
- use
${array[@]:-}
/${array[@]:+}
to simplify codes 🚞 - use file descriptor number instead of
/dev/std*
(issue #114 summitted by @wushengde) console-text-color-themes.sh
, improve robustness/portability:- use
BASH_SOURCE
array to detect whether this script is sourced or not 🕵️ - use
printf
💪 instead ofecho
- use
if
instead of&&
- remove global var declare if possible
- use
📚 Documentation
- add more resources of
bash
📚
Have Fun! 💕
2023-12-05
Assets 2
1 person reacted
🐌 v2.5.0: add `taoc` 🐈 improve shell robustness/portability 💪
Compare
☘️ Features
- add
taoc
🫴 🐈 echo-args
: align the index number
🛠️ Improvements/Refactor
c
, improve readable: 👓- simplify
teeAndCopy
function - use boolean option parse value holder
- reanme vars
- simplify
- improve shell robustness/portability 💪
- use
printf
instead ofecho
- use
if-else
instead of&&-||
- involved almost all scripts:
c
/coat
/a2l
/echo-args
/ap
/rp
/xpl
/xpf
/uq
cp-into-docker-run
/tcp-connection-state-counter
/console-text-color-themes.sh
find-in-jars
/show-busy-java-threads
- use
- fix
shellcheck
issues
📚 Documentation
- update logo and image links in docs 🌁
- disable default link of github images
🚜 Build/CI
- update
ci.yaml
, test on latestMacOS
🍎 - upgrade
shunit2
lib
Have Fun! 💕
2023-09-06
Assets 2
3 people reacted
v2.4.4 🌈🚞💅
Compare
Improvements/Refactor
show-duplicate-java-classes
: print info message and exit when search no jar files or find no class files ℹ️coat/a2l
: skip color for white space lines 🌈- refactor: declare var as
readonly
if possible 📌 - refactor: use
$*
in string instead of$@
🚞
Style
- style: adjust file format 💅
- update
.editorconfig
- shell files
- use 2 spaces indentation
- use
$()
instead of ``
- update
Docs
- add dev guide #64 🎓
- add logo 🎨
- add TOC for README
- improve wording/format
Build/CI
- add github action
ci.yaml
(removetravis
) 👷♀️ - add
MacOS CI
🍎
Have Fun! 💕
2022-12-24
Assets 2
1 person reacted
v2.4.3 🍢⏳
Compare
Improvements
show-duplicate-java-classes
:- fix wrong
CPU
percentage order underps
fromprocps-ng 3.3.12
🍢 - use one option
--cpu-sample-interval
instead of--top-delay
/--use-ps
⏳
- fix wrong
Cleanup
- code cleanup
- remove unused var
- reorder parameters of function
- improve documentations
- update travis badge to travis.com
Have Fun! 💕
2021-7-21
Assets 2
4 people reacted
v2.4.2 🕵️♂️🗂
Compare
Assets 2
1 person reacted
v2.4.1 🕵️♂️📭🔗
Compare
Improvements
show-busy-java-threads
: 🕵️♂️- improve
jstack
command search order,JAVA_HOME
beforePATH
- improve
find-in-jars
:- check list zip entries fail, especially common case "Empty zipfile" 📭
- improve command to list zip entries search 🕵️♂️
- improve scripts
cp-into-docker-run/ap/xpf
: useportableReadLink
🔗
BugFix
xpl
: fix unbound variableargs[@]
♾
Have Fun! 💕
2021-4-30
Assets 2
1 person reacted
Previous Next
You can’t perform that action at this time.