maxwellb
Follow
- Maryland
Block or Report
Block or report maxwellb
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
clear-motd
clear-motd 1#!/usr/bin/env bash
2# To use set the follow alias in your .bash_profile or .bashrc
3# and then save this file as ~.motd, and chmod +x on it.
4#
5# alias clear='clear && ([ -x ~/.motd ] && ~/.motd || true) || ([ -f ~/.motd ] && cat ~/.motd)'
-
Universal Python venv wrapper
Universal Python venv wrapper 1```
2$ ln -s /opt/work/my-env/../../../usr/local/bin/within-venv.sh /opt/within-my-venv && ln -s /opt/within-my-venv /usr/local/bin/mytool
3$ mytool # runs in /opt/work/my-venv
4```
-
Hashcash.NET
Hashcash.NET 1```
2var stamp = Hashcash.Parse("1:24:040806:foo::511801694b4cd6b0:1e7297a")
3if (Hashcash.IsValid(stamp)) {
4// ...
5}
-
Confirm-Operation.ps1
Confirm-Operation.ps1 1# if (Confirm-Operation -Message 'Really do the thing?') {
2# Get-ChildItem | Remove-Item -Recurse -Force
3# }
45function Confirm-Operation {
-
docker az-cli wrapper for .bashrc
docker az-cli wrapper for .bashrc 1```
2$ mkdir -p ~/.local/var/az-cli-client42
3$ az client42 login
4$ az client42 resource list
5```
-
PowerShell docker wrapper to a Hyper...
PowerShell docker wrapper to a Hyper-V VM 1```
2PS C:\tmp> invoke-vmssh -command "uname -a" -username $env:defaultVmUser -vmname $env:defaultVmName
3Linux debianvm 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
4PS C:\tmp> docker info | grep Server
5Server Version: 18.09.1
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.