Skip to content

Instantly share code, notes, and snippets.

View Cloudxtreme's full-sized avatar

Kevin Hatfield Cloudxtreme

  • CloudCDN
View GitHub Profile
@kimmobrunfeldt
kimmobrunfeldt / 0-osx-for-web-development.md
Last active July 25, 2026 13:41
Install web development tools to Mavericks (OS X 10.9)

Install web development tools to Mavericks (OS X 10.9)

Strongly opinionated set of guides to quickly setup OS X Mavericks for web development. By default OS X hides stuff that normal people don't need to see. These settings are better defaults for developers.

I don't want: any sounds, annoying confirmation dialogs, hidden extensions, superflous animations, unnecessary things running like Dashboard, Notification center or Dock(Alfred/spotlight works better for me).

These are my opinions. Read this document through and pick up the good parts to your preferences.

System preferences

@tlongren
tlongren / addService.php
Last active November 25, 2021 04:07
Stripe Setup as of July 12
<?php
require_once("/srv/www/vpsstat.us/public_html/includes/stripe-php/lib/Stripe.php");
Stripe::setApiKey("sk_test_xxxxxxxxxxxxxxxxxxxxxxxx");
$token = ($_GET['stripeToken']) ?$_GET['stripeToken'] : $_POST['stripeToken'];
$customerDetails = get_customer_details($customer_id);
if (empty($customerDetails['stripe_id'])) {
$customer = Stripe_Customer::create(array(
"card" => $token,
"plan" => "standard",
"email" => $customerDetails['email']
@kevinelliott
kevinelliott / osx-10.9-setup.md
Last active January 23, 2026 22:25
Clean Install – Mac OS X 10.9 Mavericks

Mac OS X 10.9 Mavericks

Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

@softlayer
softlayer / gist:2998774
Created June 26, 2012 20:37
Retrieve Passwords for all servers...print in a table
<?php
require_once('SoftLayer/SoapClient.class.php');
/**
* Set your SoftLayer API username and key.
*/
$apiUsername = 'USER HERE';
$apiKey = 'KEY HERE';
@softlayer
softlayer / gist:2998759
Created June 26, 2012 20:36
Update DNS Zone
<?php
require_once('SoftLayer/SoapClient.class.php');
function updateDns() {
$apiUsername = 'USER HERE';
$apiKey = 'KEY HERE';
$domainId = 'DOMAIN ID HERE';
$dnsClient = SoftLayer_SoapClient::getClient('SoftLayer_Dns_Domain', $domainId, $apiUsername, $apiKey);
$recordClient = SoftLayer_SoapClient::getClient('SoftLayer_Dns_Domain_ResourceRecord', null , $apiUsername, $apiKey);
@softlayer
softlayer / gist:2789898
Created May 25, 2012 19:03
OSreload multiple servers by IP
<?php
require_once('SoftLayer/SoapClient.class.php');
/**
* Set your SoftLayer API username and key.
*/
$apiUsername = '';
$apiKey = '';
@softlayer
softlayer / gist:2158553
Created March 22, 2012 14:10
Firewall rule creation command line tool
import SoftLayer.API
import ipaddr
def splitIpCidrNotation(arg):
ipv4 = ipaddr.IPv4Network(arg)
return str(ipv4.ip), str(ipv4.netmask)
def getClients(user, key):
# So we can talk to the SoftLayer API:
import SoftLayer.API
import argparse
# Your SoftLayer API username and key.
#
# Generate an API key at the SoftLayer Customer Portal:
# https://manage.softlayer.com/Administrative/apiKeychain
apiUsername = ''
apiKey = ''
@andrewschoen
andrewschoen / S3 bucket sync
Created February 3, 2012 21:22
Python script to sync an S3 bucket to the local file system
# -*- coding: utf-8 -*-
import os
import StringIO
import hashlib
try:
from boto.s3.connection import S3Connection
from boto.s3.key import Key
except ImportError:
raise ImproperlyConfigured, "Could not load Boto's S3 bindings."
@saetia
saetia / gist:1623487
Last active August 28, 2026 12:55
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat