Skip to content
View maxwellb's full-sized avatar
Block or Report

Block or report maxwellb

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. 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)'
  2. 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
    ```
  3. Hashcash.NET Hashcash.NET
    1
    ```
    2
    var stamp = Hashcash.Parse("1:24:040806:foo::511801694b4cd6b0:1e7297a")
    3
    if (Hashcash.IsValid(stamp)) {
    4
    // ...
    5
    }
  4. Confirm-Operation.ps1 Confirm-Operation.ps1
    1
    # if (Confirm-Operation -Message 'Really do the thing?') {
    2
    #   Get-ChildItem | Remove-Item -Recurse -Force
    3
    # }
    4
    
                  
    5
    function Confirm-Operation {
  5. 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
    ```
  6. PowerShell docker wrapper to a Hyper... PowerShell docker wrapper to a Hyper-V VM
    1
    ```
    2
    PS C:\tmp> invoke-vmssh -command "uname -a" -username $env:defaultVmUser -vmname $env:defaultVmName
    3
    Linux debianvm 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
    4
    PS C:\tmp> docker info | grep Server
    5
    Server Version: 18.09.1