FROM rancher/server:v1.6.30 | |
RUN mkdir -p /var/lib/cattle/etc/cattle/ && \ | |
echo -e "\nbootstrap.required.image=rancher/agent:v1.2.11-fixed" >> /var/lib/cattle/etc/cattle/cattle.properties |
#!/bin/env bash | |
set -e | |
export PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin | |
: <<'README' | |
# Master node install, note this script /should/ be idempotentish. Rerunning to get worker node command output is fine | |
sudo -E ./install-k3s.sh | |
# to skip install of rancher | |
SKIP_RANCHER_INSTALL=true sudo -E ./install-k3s.sh |
# create a vault | |
aws glacier create-vault --account-id - --vault-name my-vault-name | |
# check that the vault was created successfully | |
aws glacier describe-vault --account-id - --vault-name my-vault-name | |
# upload a file to the vault | |
aws glacier upload-archive --vault-name my-vault-name --account-id - --archive-description "my-archive-description" --body my-text-file.txt | |
# request an inventory of the vault |
#!/bin/sh | |
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t |
A work in progress collection of proprietary and as of yet undocumented HomeKit characteristics and their UUIDs used by Elgato Eve.
This list is not including all Eve accessories available and some services and characteristics still make no sense to me. If you have anything to contribute, please leave a comment. There is no guarantee that the information listed below is correct.
Service - Characteristic | UUID | R | W | Type | Description |
---|
echo "Flipping tables! (╯°□°)╯︵ ┻━┻" | |
num_rules=3 | |
real=3 # exposed to the ELB as port 443 | |
test=4 # used to install test certs for domain verification | |
health=5 # used by the ELB healthcheck | |
blue_prefix=855 | |
green_prefix=866 |
Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.