- Any and all people could stop by the channel(s)
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
# Description: Boxstarter Script | |
# Author: Gavin Mogan <[email protected]> | |
# Last Updated: 2018-03-08 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
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
set -x | |
set -e | |
export KUBECONFIG=$HOME/.secrets/clusters/nemo/auth/kubeconfig | |
test -f external-storage || git clone [email protected]:kubernetes-incubator/external-storage.git | |
cat external-storage/digitalocean/manifests/digitalocean-secret.yaml | perl -pi -e "s{<DigitalOcean token>}{$(python -c "import base64; print base64.b64encode(open('$HOME/.config/digital-ocean/token', 'r').read().strip().replace('\n', ''))")}" | kubectl create -f - | |
kubectl create -f external-storage/digitalocean/manifests/rbac | |
cat external-storage/digitalocean/manifests/digitalocean-provisioner.yaml | perl -pi -e 's{apps/v1beta2}{apps/v1}' | kubectl create -f - | |
cat external-storage/digitalocean/manifests/digitalocean-flexplugin-deploy.yaml | perl -pi -e "s{apps/v1beta2}{apps/v1};s{<flex volume plugin dir, default: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/>}{/var/lib/kubelet/volumeplugins/}" | kubectl create -f - |
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
import sys | |
import time | |
try: | |
import RPi.GPIO as GPIO | |
except RuntimeError: | |
print( | |
"Error importing RPi.GPIO! " + | |
"This is probably because you need superuser privileges. " + | |
"You can achieve this by using 'sudo' to run your script") |
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 | |
cd /storage/games/minecraft | |
./bin/mcmap -from -50 -50 -to 50 50 -info servers/new_craft/map_info.json -file servers/new_craft/map.png servers/new_craft/world >/dev/null | |
rm servers/new_craft/map.zip | |
zip --quiet -9 -r servers/new_craft/map.zip servers/new_craft/world | |
s3cmd --acl-public -c .s3cfg put servers/new_craft/map.png s3://minecraft-gavinmogan/ | |
s3cmd --acl-public -c .s3cfg put servers/new_craft/map.zip s3://minecraft-gavinmogan/ |
I hereby claim:
- I am halkeye on github.
- I am gavinmogan (https://keybase.io/gavinmogan) on keybase.
- I have a public key ASB_j6WSukAVQi_kZTmTMcpFgu3CziPcH0p9pV80cSZn2Ao
To claim this, I am signing this object:
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
[Unit] | |
Description=terraria | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
Restart=always | |
# needed because tshock crashes when no stdin | |
StandardInput=tty |
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 python | |
import requests | |
import json | |
import os | |
from requests.auth import HTTPBasicAuth | |
browsers = json.loads(os.environ['SAUCE_ONDEMAND_BROWSERS'] or '[{ "browser": "firefox", "platform":"MAC", "browser-version": "latest" }]' ) | |
auth=HTTPBasicAuth(os.environ['SAUCE_USER_NAME'], os.environ['SAUCE_ACCESS_KEY']); | |
for browser in browsers: |
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
# for i in java ruby; do java -jar ./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ../saucerest-java/swagger.yml -l ${i} -o samples/client/saucelabs/${i}/default -DgroupId=com.saucelabs -DartifactId=saucerest -DartifactVersion=2.0.0 -DserializableModel=true; done | |
swagger: '2.0' | |
info: | |
title: Sauce Labs REST API | |
description: Do the thing! | |
version: 1.0.0 | |
termsOfService: 'https://saucelabs.com/tos/' | |
contact: | |
name: Sauce Labs | |
url: 'http://saucelabs.com' |
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
for jar in $(find ~/.m2/repository -name '*.jar'); do unzip -qql $jar | awk '{ if ($4 ~ /^\w+\.class$/) exit 1 }' || echo $jar ; done |