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 | |
# | |
# lilman - A little "dependency manager" with download/cache/install powers. | |
# | |
# Follows the suggested exit code range of 0 & 64-113 from http://www.tldp.org/LDP/abs/html/exitcodes.html | |
# | |
# Note: This is beta at best; still trying to work out some problems and may actually rewrite this (again) completely. | |
# Note 2: Moved to a Gist because it doesn't need it's own repo as far as I'm concerned. | |
# Include source file and line number in xtrace messages |
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
#!/bin/bash | |
# | |
# Include source file and line number in xtrace messages | |
# From http://wiki.bash-hackers.org/scripting/debuggingtips#making_xtrace_more_useful | |
# | |
# export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | |
# | |
# Enable xtrace for debugging. |
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 | |
# | |
# Memba - A "package manager" for global and local commands. | |
# | |
# Follows the suggested exit code range of 0 & 64-113 from http://www.tldp.org/LDP/abs/html/exitcodes.html | |
# | |
# | Exit Code | Meaning | | |
# | --- | --- | | |
# | 64 | Error -- no command | | |
# | 65 | Error -- unknown command | |
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 | |
# | |
# Installs dependencies and builds kcov from [tagged] source, and | |
# + then installs it to /usr/local/bin/kcov. | |
# | |
# Tested on Ubuntu 18.04 running on an ARMv8a processor | |
# + (ARM Cortex-A53 in LG Rebel 4) through UserLAnd on Android 8. | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install -y cmake g++ python3 git binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev |
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
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y curl rsync git libatomic1 | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | |
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
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 | |
github_latest () { | |
local usage="Usage: $(basename $0 | sed -E 's/\.sh//') [options] <owner> <repo> | |
Options: | |
-l | --like = Download release with name that contains string, e.g. amd64. *not a regex*" | |
local url | |
local dl_url | |
local data |