-
It's the basis for everything and a pretty simple functional language
"JSON with
functionsfootguns" - It does have some easy to overlook subtleties:inherit (x) y;vs.inherit x y;vs.let ... invs.with ...;f: g: ret;vs.{ f, g }: ret
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| prt:all() { | |
| prt:part "$@" | |
| prt:lvm | |
| prt:fs | |
| prt:mnt | |
| } | |
| prt:part() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { config, lib, ... }: | |
| { | |
| options.users.users = lib.mkOption { | |
| type = lib.types.attrsOf ( | |
| lib.types.submodule ( | |
| { name, config, ... }: { | |
| options.openssh.authorizedPrincipals = lib.mkOption { | |
| type = lib.types.listOf lib.types.str; | |
| example = ''[ "admins", "developers", "it-personnel" ]''; | |
| description = lib.mdDoc '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- a/paramiko/auth_handler.py 2022-04-26 15:37:37.433185610 +0200 | |
| +++ b/paramiko/auth_handler.py 2022-04-26 15:37:25.083111811 +0200 | |
| @@ -22,6 +22,7 @@ | |
| import weakref | |
| import time | |
| +import re | |
| from paramiko.common import ( | |
| cMSG_SERVICE_REQUEST, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib.parse | |
| class Endpoint: | |
| def __init__(self, uri, api): | |
| self.m4ngl3 = dict(uri=uri, api=api) # prevent name collisions (with actual members called "uri" or "api", endpoints of these names couldn't be used - we can probably live without ones named "m4ngl3") | |
| def __getitem__(self, name): | |
| api, uri = self.m4ngl3["api"], self.m4ngl3["uri"] | |
| key = api.canonize(uri, name) | |
| return api._resources.setdefault(key, Endpoint(key, api)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { stdenv | |
| , fetchFromGitHub | |
| , python3 | |
| , python3Packages | |
| , wrapGAppsHook | |
| , gobject-introspection | |
| , gtk3 | |
| , gdk-pixbuf | |
| # Recommended Dependencies: | |
| , unrar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Nodrama-Llama | |
| $the_cow = <<EOC; | |
| $thoughts | |
| $thoughts | |
| (\\/) | |
| (_o | | |
| / | | |
| \\ \\______ | |
| \\ )o | |
| /|----- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| getbool() { | |
| local in="${1:-no}" | |
| if [[ "${in^^}" =~ ^(1|Y(ES)?|ON|T(RUE)?|ENABLE(ED)?)$ ]]; then | |
| return 0 | |
| fi | |
| return 1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Wrapper to use liquidprompt with bashit | |
| # The path to this file should read '$BASH_IT/themes/liquidprompt/liquidprompt.theme.bash' | |
| targetdir="$BASH_IT/themes/liquidprompt/liquidprompt" | |
| gray="\[\e[1;90m\]" | |
| # Get liquidprompt if not yet installed | |
| cwd="$PWD" | |
| if cd "$targetdir" &>/dev/null && git rev-parse --is-inside-work-tree &>/dev/null; then |
NewerOlder