Skip to content

Instantly share code, notes, and snippets.

@EntropyWorks
Last active June 17, 2020 01:36
Show Gist options
  • Save EntropyWorks/a6f2ef2ab1903ab08a89cc7de40b6efd to your computer and use it in GitHub Desktop.
Save EntropyWorks/a6f2ef2ab1903ab08a89cc7de40b6efd to your computer and use it in GitHub Desktop.
for Ingy
# Eample of adding a hash for your own safety before running downloaded stuff.
#
# make+_hash: a73c1a409cd3b709ff7d10b9f40a0b817de2bba0 -
#
# This makes two calls outside but you could make just one. Also depends on having a compatable grep and shasum installed.
include $(shell grep -m 1 "make+_hash" Makefile | cut -f2 -d: > .make+_hash && curl -s https://makeplus.net/make+ | shasum -qc .make+_hash && curl -s https://makeplus.net/make+ | bash)
50-50 = return $((RANDOM % 2))
fish: 1-fish $(+50-50?2-fish)
1-fish: $(+50-50?red-1-fish|blue-1-fish)
2-fish: $(+50-50?red-2-fish|blue-2-fish)
%-1-fish:
@echo -e "$($*)$$fish$(norm)"
%-2-fish:
@echo -e "$($*)$$fish$(norm)"
define fish
___ __________
/ \ / \\
__/_/_/_\________/ / / / / \\
,,----' ------ / / \ _
,/ ) ) ) ) ) ) ) ) ) ) ) ) ) ) )\/ / / ,/' \\
./'' ,\ ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )\ / /' / \\
./'' O , ,\) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )------' / / / /
(____ , , , ,|) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )----- /
\. \ , , , | ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ----- \\
`\. ___/ ) )_______ ) ) ) ) ) ) ) ) ) ) ) ------. \ \ \ \\
``\..) ) ) )______\) ) ) ) ) ) ) ) ) ) / \. \ /
`\.. _____/ ) ) ) ) ) ) ) ) /--__ `\._/
``\________________------'''\ \\
\ \ \/ \ \ \ \ /
\__/ \________/
endef
export fish
red = \033[31m
blue = \033[34m
norm = \033[39m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment