From de670f073fe53e5ef2aa24e3a1986beae16db5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Sun, 11 Jun 2023 20:42:53 +0100 Subject: [PATCH] initial commit --- source/shebangs/bash-with-nixpkg.sh | 3 +++ source/shebangs/python-with-nixpkg.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 source/shebangs/bash-with-nixpkg.sh create mode 100755 source/shebangs/python-with-nixpkg.sh diff --git a/source/shebangs/bash-with-nixpkg.sh b/source/shebangs/bash-with-nixpkg.sh new file mode 100755 index 0000000..aa12709 --- /dev/null +++ b/source/shebangs/bash-with-nixpkg.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-nixpkg.sh b/source/shebangs/python-with-nixpkg.sh new file mode 100755 index 0000000..e66531b --- /dev/null +++ b/source/shebangs/python-with-nixpkg.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)