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
| --- | |
| - name: Create render slaves on Rackspace Cloud | |
| hosts: renderslaves | |
| user: root | |
| connection: local | |
| gather_facts: False | |
| tasks: | |
| - name: Provision a set of instances | |
| local_action: | |
| module: rax |
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
| launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist | |
| sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist | |
| sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz | |
| sudo pkgutil --forget org.macosforge.xquartz.pkg | |
| # Log out and log in |
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
| { | |
| "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "prefix": { | |
| "type": "string", | |
| "defaultValue": "master", | |
| "metadata": { | |
| "description": "Master node(s) name prefix" | |
| } |
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
| from thespian.actors import * | |
| from datetime import datetime, timedelta | |
| from logging import getLogger, basicConfig, DEBUG | |
| from random import randint | |
| basicConfig(level=DEBUG) | |
| log = getLogger(__name__) | |
| class Postman(Actor): |
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
| /* | |
| Example code to get a MCP3*08 running with an ESP8266 | |
| for DiY energy monitoring solutions | |
| */ | |
| #include <Arduino.h> | |
| #include <ESP8266WiFi.h> | |
| #include "MCP3208.h" | |
| const char* ssid = "..."; | |
| const char* host = "..."; |
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
| 061997d DELEGATE ALL THE THINGS | |
| 092aa231f wait, wrong place | |
| 09e7fd3 RERECORD ALL THE THINGS!!! | |
| 0c27fb3 yeah, fix things will ya | |
| 0f4549133 New ascii art task (\!important stuff) , and a few DAO tweaks (mino... | |
| 12aa7ef34 LE NONNNNNN LE MADNESS | |
| 13233e7 Less PHP | |
| 154c535 Once more, now with feeling and a proper master head | |
| 184e754 Dear Past-Friday David :Remember the textarea that seemed totally random and misterioys? It was $.ajax... obviously | |
| 19a8700 MAKE IT BIGGER |
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
| from bottle import route, run, auth_basic | |
| from passlib.hash import sha256_crypt | |
| def check_pass(username, password): | |
| hashed = ''.join(redis.hmget(username, "password")) | |
| return sha256_crypt.verify(password, hashed) | |
| @route('/', method='GET') | |
| @auth_basic(check_pass) # <-- decorator | |
| def index(): |
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/python | |
| # Send messages to an Azure Event Hub using the Apache Qpid Proton AMQP library. | |
| import sys | |
| import commands | |
| from proton import * | |
| # Event Hub address & credentials | |
| # amqps://<keyname>:<key>@<namespace>.servicebus.windows.net/<eventhubname> |
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
| [ | |
| { | |
| "action": { | |
| "type": "block" | |
| }, | |
| "trigger": { | |
| "url-filter": ".*", | |
| "resource-type": ["script"], | |
| "load-type": ["third-party"], | |
| "if-domain": ["imore.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
| # Set the peer listening address | |
| # export ETCD_PEER_ADDR=127.0.0.1:7001 | |
| # Set other command line options like the name and discovery url | |
| # from https://discovery.etcd.io/new | |
| # export ETCD_OPTS="-name=name_here -discovery=https://discovery.etcd.io/token_here" | |
| export ETCD_OPTS="--data-dir '/var/run/default.etcd'" |