diff --git a/source/shebangs/bash-with-nix-pkg/my-script.sh b/source/shebangs/bash-with-nix-pkg/my-script.sh new file mode 100755 index 0000000..aa12709 --- /dev/null +++ b/source/shebangs/bash-with-nix-pkg/my-script.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p cowsay +cowsay "Pretty cool, huh?" diff --git a/source/shebangs/python-with-nix-pkg/my-script.sh b/source/shebangs/python-with-nix-pkg/my-script.sh new file mode 100755 index 0000000..e66531b --- /dev/null +++ b/source/shebangs/python-with-nix-pkg/my-script.sh @@ -0,0 +1,11 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i python3 -p python3Packages.html-sanitizer + +from html_sanitizer import Sanitizer +sanitizer = Sanitizer() # default configuration + +original='some text' +print('original: ', original) + +sanitized=sanitizer.sanitize(original) +print('sanitized: ', sanitized)