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 | |
# | |
# Quick and dirty shell script designed to take rolling mysqldumps from a | |
# mysql replica server | |
# | |
MYSQL_USERNAME = '<<username>>' | |
MYSQL_PASSWORD = '<<password>>' |
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
### | |
Web Toolkit v0.4 (by M@ McCray) | |
http://gist.github.com/515035 | |
NOTE: This is meant to be used as a Cakefile (Coffee's RAKE equivalent). | |
### | |
puts = require("util").puts |
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
#!/usr/bin/env python | |
''' | |
Conduct rolling backups of a mysql DB server. | |
Daily backups are kept for the previous 7 days, | |
weekly for the previous 4 weeks, and monthly backups | |
for the previous 12 months. | |
Run ./mysql_backup --help for usage instructions |
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
var SLACK_TOKEN = "" // Get yours from https://api.slack.com/web | |
function importUsersFromSlack() { | |
var sheet_array = ImportJSON("https://slack.com/api/users.list?token="+SLACK_TOKEN, | |
"/members/name,/members/profile/real_name,/members/profile/email,/members/tz"); | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Users"); | |
for(var i=0;i<sheet_array.length;i++){ | |
sheet.appendRow(sheet_array[i]); | |
} | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# This script to install Kubernetes will get executed after we have provisioned the box | |
$script = <<-SCRIPT | |
# Install docker (we do this rather than use the vagrant provisioner so we can fetch a specific version) | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update |