...
PS C:\tmp> invoke-vmssh -command "uname -a" -username $env:defaultVmUser -vmname $env:defaultVmName
Linux debianvm 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
PS C:\tmp> docker info | grep Server
Server Version: 18.09.1
PS C:\tmp>
$ mkdir -p ~/.local/var/az-cli-client42
$ az client42 login
$ az client42 resource list
...
This file contains 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
... |
This file contains 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
``` | |
var stamp = Hashcash.Parse("1:24:040806:foo::511801694b4cd6b0:1e7297a") | |
if (Hashcash.IsValid(stamp)) { | |
// ... | |
} | |
``` |
This file contains 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
... |
This file contains 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
export default function propsApply<TIn, TOut>(_: { [index: string]: TIn }, fn: { (source: TIn): TOut }) { | |
return Object.keys(_).reduce( | |
(result, i) => { | |
result[i] = fn(_[i]); return result; | |
}, | |
{} as { [any: string]: TOut } | |
); | |
}; |
This file contains 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 | |
# To use set the follow alias in your .bash_profile or .bashrc | |
# and then save this file as ~.motd, and chmod +x on it. | |
# | |
# alias clear='clear && ([ -x ~/.motd ] && ~/.motd || true) || ([ -f ~/.motd ] && cat ~/.motd)' | |
# | |
# Copyright (c) 2018 Maxwell Bloch, MIT licensed | |
# | |
echo `df -h ~ | xargs echo | cut -d' ' -f12` used, `df -h ~ | xargs echo | cut -d' ' -f11` free on \$HOME |
This file contains 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
Screenshot | |
Command prompt: C:\repos\HelloWorld> | |
Output of command "git merge section": 1 file changed, 6 insertions. | |
Output of command "git log --graph": branching history of changes. | |
Output of command "git status": On branch master. Nothing to commit. Working tree clean. | |
Output of command "git remote -v": (empty) |