Skip to content

Instantly share code, notes, and snippets.

Max 0bmxa

Block or report user

Report or block 0bmxa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@0bmxa
0bmxa / how_many_chromes.sh
Created Jan 21, 2019
How many Chromes do *You* have? (On your macOS)
View how_many_chromes.sh
#!/bin/sh
printf '\n'
printf 'Chromium frameworks:\n--------------------\n'
find /Applications/*.app/Contents/Frameworks -type d -iname 'chromium*framework' | cut -d/ -f3
printf '\nElectron frameworks:\n--------------------\n'
find /Applications/*.app/Contents/Frameworks -type d -iname 'electron*framework' | cut -d/ -f3
@0bmxa
0bmxa / man
Created Apr 14, 2018
A wrapper around `man` to show in which sections the command is available
View man
#!/bin/zsh
CMD_NAME=$1
ORIGINAL_MAN='/usr/bin/man'
# If first arg is a section number alread, open `man` right away
if [[ $CMD_NAME -gt 0 && $CMD_NAME -lt 10 ]]; then
$ORIGINAL_MAN $@
exit 0
fi
@0bmxa
0bmxa / opendiff_xcodeproj.sh
Last active Jan 10, 2018
git diff: YAML based Xcode project diff
View opendiff_xcodeproj.sh
#!/bin/sh
#############################################################
# Requires the xcodeproj tool: #
# https://github.com/CocoaPods/Xcodeproj #
# #
# Note: #
# As this only shows a representation of the project and #
# not the project file directly, this is only suitable #
# for diffs, not for merges. #
You can’t perform that action at this time.