Skip to content

Instantly share code, notes, and snippets.

View brandongalbraith's full-sized avatar

B brandongalbraith

  • North America
View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
MY_NAME = 'Yossef Mendelssohn'
CHECKIN_REQUEST_URL = 'http://www.southwest.com/flight/retrieveCheckinDoc.html'
prompt = false
conf = ARGV[0]
@nojimage
nojimage / org.macports.zabbix_agent.plist
Created April 6, 2011 07:18
auto startup zabbix agent on Mac OS X (macports)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.macports.zabbix_agent</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/share/zabbix/zabbix_agentd.init</string>
@RobSpectre
RobSpectre / sms_forward.php
Created November 23, 2011 20:49
SMS forwarding
<?php
header('Content-type: text/xml');
$message = $_REQUEST['Body'];
?>
<Response>
<Sms to="{{YOUR_NUMBER}}"><?php echo $message; ?></Sms>
</Response>
@jaymcgavren
jaymcgavren / heroku.md
Created May 25, 2012 05:47
A Code TV screencast on getting started with Heroku

Description

Heroku is a simple way to publish your Rails app, and a powerful platform that will allow it to scale. In this episode, Jay McGavren gets you started with your first Heroku app.

Set up your Rails app

Isolate your gem environment

  • You WANT Rails to fail locally if a gem isn't in your Gemfile
@mattbillenstein
mattbillenstein / s3put
Created December 13, 2011 10:02
boto parallel s3 upload script
#!/usr/bin/env python
import gevent.monkey
gevent.monkey.patch_all()
import boto
import config
import gevent
import gevent.pool
import os
@miohtama
miohtama / sendsms.py
Created August 10, 2012 11:29
Connecting Twilio outbound SMS to Zabbix alert
#!/usr/bin/python2
# -*- coding: utf-8 -*-
"""
First test in terminal
./sendsms mikko "Test msg"
Then connect to Zabbix
@enajski
enajski / base_cf_docs.md
Last active September 26, 2016 15:56
Documentation for Base CRM custom fields
@dtrotzjr
dtrotzjr / openssl-maker.sh
Last active September 27, 2016 21:35 — forked from letiemble/openssl-maker.sh
A bash script to generate "all-in-one" OpenSSL static libraries for OS X and iOS. The script produces fat static libraries (i386,x86_64 for OS X) and (i386,armv7,armv7s,arm64 for iOS) suitable for integration in both OS X and iOS project.
#!/bin/bash
###############################################################################
## ##
## Build and package OpenSSL static libraries for OSX/iOS ##
## ##
## This script is in the public domain. ##
## Creator : Laurent Etiemble ##
## ##
###############################################################################
@yefim
yefim / app.coffee
Last active October 4, 2016 07:19
A simple opt in group messaging solution with Twilio, Redis, and Expressjs
NUMBERS_SET = 'numbers'
TWILIO_NUMBER = '+12345678900'
TWILIO_SID = 'account_sid'
TWILIO_TOKEN = 'auth_token'
express = require('express')
http = require('http')
path = require('path')
redis = require('redis')
app = express()
@hrbrmstr
hrbrmstr / badmail.Rmd
Last active December 1, 2016 07:59
Code for this post:
---
title: "Visualizing the Clinton Email Network in R"
author: "hrbrmstr"
date: "`r Sys.Date()`"
output: html_document
---
```{r include=FALSE}
knitr::opts_chunk$set(
collapse=TRUE,
comment="#>",