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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # --- Configurable defaults --- | |
| USER="${1:-ubuntu}" | |
| HOME_DIR=$(getent passwd "$USER" | cut -d: -f6 || true) | |
| GO_VER="go1.24.5.linux-amd64" | |
| NVM_VER="v0.40.3" | |
| SAMBA_CONF="/etc/samba/smb.conf" |
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 | |
| ############################################################################################### | |
| # This is a convenience script for installing the Github gh CLI. Invoke as follows: # | |
| # curl -fsSL https://gist.github.com/yourusername/gist-hash/raw/install-gh-cli.sh | sudo bash # | |
| # Author: Mike Stankavich https://github.com/mikestankavich [email protected] # | |
| ############################################################################################### | |
| # Root check |
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
| --- | |
| # test scenario for task when conditional test for non-empty string | |
| # example command line: ansible-playbook -i "localhost," is_not_empty.yml | |
| - hosts: all | |
| gather_facts: false | |
| tasks: | |
| # at this point foo is not defined, so we expect task to skip | |
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
| require 'formula' | |
| class Plv8 < Formula | |
| homepage 'http://code.google.com/p/plv8js/wiki/PLV8' | |
| version '1.4.1' | |
| url 'https://plv8js.googlecode.com/files/plv8-1.4.1.zip' | |
| sha1 'ceb7579b1fae1c1fe795c03a23471fdf9c7c469e' | |
| head 'https://code.google.com/p/plv8js/', :using => :git |