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 | |
# | |
# See: https://docs.travis-ci.com/user/docker/#installing-a-newer-docker-version | |
# | |
# Add the following in your .travis.yml file to upgrade Docker prior to your build: | |
# | |
# before_install: | |
# - curl https://gist.githubusercontent.com/geerlingguy/ce883ad4aec6a5f1187ef93bd338511e/raw/36612d28981d92863f839c5aefe5b7dd7193d6c6/travis-ci-docker-upgrade.sh | sudo bash | |
# | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
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 | |
# | |
# Update things to be compatible with Molecule 3.0. | |
# | |
# This script is NOT idempotent, and should never be run again. | |
exit 1 | |
export LINT_STRING="lint: | | |
set -e | |
yamllint . |
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
<?php | |
/** | |
* @file | |
* Show the status of various Apple TVs. | |
*/ | |
// Place Ping.php in the same folder as this script. | |
require_once('Ping.php'); |
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
# In YAML, this... | |
something: | |
- { name: test.example } | |
# ...is the same as this: | |
something: | |
- name: test.example | |
# And this: | |
something: |
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
# Note: This will only work on (which?) GPUs. | |
# Install Conda (latest from https://docs.conda.io/en/latest/miniconda.html#linux-installers) | |
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
bash Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
# follow the prompts, restart your Terminal session, and run `conda` to confirm it installed. | |
# Install git and curl, and clone the stable-diffusion repo | |
sudo apt install -y git curl | |
cd Downloads |
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
# First install Docker and docker-compose following this guide: | |
# https://docs.docker.com/engine/install/ubuntu/ | |
# | |
# Make sure you add your user to the `docker` group: | |
sudo usermod -aG docker $USER | |
# ...then log out and log back in to make that take effect. (I actually had to reboot, le sigh) | |
# Second install the NVIDIA Container Toolkit following this guide: | |
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit |
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 | |
# | |
# This script requires HandBrakeCLI. On macOS, at least, you need to download | |
# and install it separately from Handbrake. | |
# | |
# See: https://handbrake.fr/downloads2.php | |
if [ -z "$1" ] ; then | |
TRANSCODEDIR="." | |
else |
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
--- | |
- hosts: webserver | |
become: true | |
gather_facts: false | |
vars: | |
# API token should be created with cache_purge permissions. | |
cloudflare_purge_zone: [zone id from cloudflare] | |
cloudflare_purge_token: "{{ lookup('env','CLOUDFLARE_PURGE_TOKEN') }}" | |
cloudflare_purge_body: |
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 | |
# Gist: 11375877 | |
# Url: https://gist.github.com/goodevilgenius/11375877 | |
# | |
# All memcache functions are supported. | |
# | |
# Can also be sourced from other scripts, e.g. | |
# source membash.sh | |
# MCSERVER="localhost" |