Skip to content

Instantly share code, notes, and snippets.

@ilumos
Last active February 29, 2020 08:49
Show Gist options
  • Select an option

  • Save ilumos/20224aad1b08278fa411ef82855a39a0 to your computer and use it in GitHub Desktop.

Select an option

Save ilumos/20224aad1b08278fa411ef82855a39a0 to your computer and use it in GitHub Desktop.

Revisions

  1. ilumos revised this gist Feb 29, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions backup-github-repos-and-gists.sh
    Original file line number Diff line number Diff line change
    @@ -40,6 +40,7 @@ gists=(
    "ilumos/05c9ec4e81f6339cc2f75e57a96b1d29"
    "ilumos/c238f2f448456c6c28bbc499f17786fd"
    "ilumos/b75b00381d191434d30bb2c3bcd60e5c"
    "ilumos/20224aad1b08278fa411ef82855a39a0"
    )

    for gist in "${gists[@]}"
  2. ilumos created this gist Feb 29, 2020.
    49 changes: 49 additions & 0 deletions backup-github-repos-and-gists.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    #!/bin/bash

    SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

    repos=(
    "zeropingheroes/lanager"
    "zeropingheroes/lancache"
    "zeropingheroes/lancache-elk"
    "zeropingheroes/lancache-dns"
    "zeropingheroes/lancache-sniproxy"
    "zeropingheroes/lancache-autofill"
    "zeropingheroes/game-servers"
    "zeropingheroes/lancache-dns-pfsense"
    "zeropingheroes/lancache-filebeat"
    "zeropingheroes/observium-nmap-autodiscover"
    "zeropingheroes/lancache-installer"
    "zeropingheroes/cache-domains"
    "zeropingheroes/observium-alerts"
    "zeropingheroes/cloud-init"
    "zeropingheroes/observium-installer"
    "zeropingheroes/lanyard"
    "zeropingheroes/gtmurmur-cvp-proxy"
    "ilumos/Steam"
    )

    for repo in "${repos[@]}"
    do
    if cd $repo; then git pull; else git clone https://github.com/$repo.git $repo; fi
    cd $SCRIPT_DIR
    done

    gists=(
    "ilumos/4a0cb68b64beb0b60f9b34a4070e0aec"
    "ilumos/74b0dcd0f412c457db6062e4cb8bf46a"
    "ilumos/a523fcafe2463cf1dca52e95afcbd685"
    "ilumos/7540483b4f82133f7c44f640d1d1fa4c"
    "ilumos/f6861ea879889146ce9ad61a956ba801"
    "ilumos/487b566202803c81792ec1993e5a7f13"
    "ilumos/878674f3c50da1c83c24a5ef1771eb12"
    "ilumos/05c9ec4e81f6339cc2f75e57a96b1d29"
    "ilumos/c238f2f448456c6c28bbc499f17786fd"
    "ilumos/b75b00381d191434d30bb2c3bcd60e5c"
    )

    for gist in "${gists[@]}"
    do
    if cd $gist; then git pull; else git clone https://gist.github.com/$gist.git $gist; fi
    cd $SCRIPT_DIR
    done