Skip to content

Instantly share code, notes, and snippets.

View maxehmookau's full-sized avatar

Max Woolf maxehmookau

View GitHub Profile
@FranklinYu
FranklinYu / README.markdown
Last active May 5, 2024 15:24
links for old versions of Docker for Mac (inspired by docker/for-mac#1120)

links for old versions of Docker for Mac

Deprecated

Docker provides download links in release note. They promised that

(we) will also include download links in release notes for future releases.

Note:

@garethrees
garethrees / announce.sh
Last active August 29, 2015 13:56
CoreOS Cluster
core@core-01 ~ $ etcd -addr 192.168.65.101:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.101:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine1 -name machine1
core@core-02 ~ $ etcd -addr 192.168.65.102:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.102:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine2 -name machine2 -peers 192.168.65.101:7001,192.168.65.103:7001
core@core-03 ~ $ etcd -addr 192.168.65.103:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.103:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine3 -name machine3 -peers 192.168.65.101:7001,192.168.65.102:7001
@assimovt
assimovt / README.md
Last active June 8, 2018 22:12
Adds Newrelic RPMs metrics to your dashboard.

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle:

@kylefox
kylefox / color.m
Created January 27, 2012 17:45
Generate a random color (UIColor) in Objective-C
/*
Distributed under The MIT License:
http://opensource.org/licenses/mit-license.php
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
@dhoerl
dhoerl / Reachability.h
Created August 25, 2011 13:20
Reachability (iOS) ARCified
/*
File: Reachability.h
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
Version: 2.2 - ARCified
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, modification or redistribution of this Apple software
@jimmcgowan
jimmcgowan / EchoPrint Codegen Cocoa Example.m
Created July 9, 2011 11:25
A simple example of using the EchoPrint Codegen to fingerprint an mp3 file and look for a match on EchoNest. For OS X or iOS using Cocoa and Core Audio.
//
// EchoPrint Cocoa Example
// Created by Jim McGowan on 08/07/2011.
// jim at bleepsandpops dot com
//
// A simple example of using the EchoPrint Codegen to fingerprint an mp3 file and
// look for a match on EchoNest. For OS X or iOS. Error checking removed for brevity.
//
// Requires the 'Other C Flags' XCode build setting "-x objective-c++" to compile as Objective-C++
//
@WizardOfOgz
WizardOfOgz / gist:1012107
Created June 7, 2011 12:13
Save Base64-encoded images with Paperclip
class Avatar < ActiveRecord::Base
attr_accessor :content_type, :original_filename, :image_data
before_save :decode_base64_image
has_attached_file :image,
PAPERCLIP_CONFIG.merge(
:styles => {
:thumb => '32x32#',
:medium => '64x64#',
@sjazee
sjazee / TabRSSReader.m
Created April 9, 2011 14:31
This code snippet is taken from one of my RSS Reader iOS app and RSS feeds are pulled out from website by xml Parsing.
// RootViewController.m
// TabRSSReader
//
// Created by Saima on 1/28/11.
// Copyright 2011 it. All rights reserved.
//
#import "RootViewController.h"
#import "TabRSSReaderAppDelegate.h"
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@vinilios
vinilios / install xapian inside virtualenv
Created October 1, 2009 14:53
xapian local installation
apt-get install zlib1g-dev
apt-get install g++
export VENV=$VIRTUAL_ENV
mkdir $VENV/packages && cd $VENV/packages
curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-core-1.0.16.tar.gz
curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-bindings-1.0.16.tar.gz
tar xzvf xapian-core-1.0.16.tar.gz