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
| // | |
| // MIT License | |
| // Copyright (c) 2009 Chris Stefano <virtualstaticvoid@gmail.com> | |
| // | |
| using System; | |
| using System.Diagnostics; | |
| internal static class Ensure | |
| { | |
| [DebuggerStepThrough] |
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
| #!/bin/bash | |
| cert=${1:-ca.pem} | |
| name=$2 | |
| sudo mkdir -p /usr/local/share/ca-certificates | |
| sudo cp $cert /usr/local/share/ca-certificates/ | |
| sudo update-ca-certificates |
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
| docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container |
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
| *.xz | |
| *.zip | |
| mnt/* |
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
| #!/bin/bash | |
| set -e | |
| # | |
| # NOTE: can be used to switch over to another branch such from "master" to "main" | |
| # | |
| # git reset-branch main origin/main | |
| # | |
| if [ ! -d .git ]; then |
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
| #!/bin/bash | |
| git remote set-head origin main | |
| git branch -m master main |
virtualstaticvoid/heroku-buildpack-r#156
https://www.rdocumentation.org/packages/duckdb/versions/0.3.1-1
# clone sources
git clone https://gist.github.com/33cd2ba01757088acb834df76e13c99f.git issue-156
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
| FROM virtualstaticvoid/heroku-docker-r:build | |
| CMD ["/usr/bin/R", "--no-save", "-f", "/app/app.R"] |
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
| #!/bin/bash | |
| # | |
| # Description: | |
| # | |
| # Resets the local branch which has diverged from it's tracking (remote) branch | |
| # can also be used to switch over from "master" to "main" branch | |
| # | |
| # Usage: | |
| # |