Skip to content

Instantly share code, notes, and snippets.

View roustem's full-sized avatar

Roustem Karimov roustem

View GitHub Profile
@roustem
roustem / cltools.sh
Created April 28, 2018 18:09 — forked from justinbellamy/cltools.sh
Install Autoconf and Automake on OS X El Capitan
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
export build=~/devtools # or wherever you'd like to build
@roustem
roustem / Terraform-Blue-Green-AWS.md
Created October 9, 2015 06:20 — forked from ryan0x44/Terraform-Blue-Green-AWS.md
Blue-Green AWS Auto Scaling Deployments with Terraform

A quick note on how I'm currently handling Blue/Green or A/B deployments with Terraform and AWS EC2 Auto Scaling.

In my particular use case, I want to be able to inspect an AMI deployment manually before disabling the previous deployment.

Hopefully someone finds this useful, and if you have and feedback please leave a comment or email me.

Overview

I build my AMI's using Packer and Ansible.

@roustem
roustem / vm-setup.sh
Last active August 29, 2015 14:16 — forked from nf/vm-setup.sh
#!/bin/bash -e
echo '
PATH=$HOME/go/bin:$PATH
export GOPATH=$HOME
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg
export EDITOR=vim
' >> ~/.profile
sudo apt-get update
#include <stdio.h> // for fprintf, stderr, perror
#include <stdlib.h> // for exit() and EXIT_FAILURE
#include <errno.h> // for errno
#include <fts.h> // for fts
int main(int argc, const char *argv[]) {
char * const paths[] = {"/tmp", NULL};
FTS *tree = fts_open(paths, FTS_COMFOLLOW|FTS_NOCHDIR, NULL);
if (!tree) {
//
// NSObject+Blocks.h
// Filemator
//
// Created by Zachary Waldowski on 4/12/11.
// Copyright 2011 Dizzy Technology. All rights reserved.
//
@interface NSObject (Blocks)
@roustem
roustem / gist:2022128
Created March 12, 2012 14:04 — forked from rcw3/gist:2018059
Self-contained WWDC Status Checker Hack
#!/bin/bash
#
# add to crontab
# */5 * * * * /Users/YOURNAME/bin/wwdc >/dev/null
#
# URL="http://www.cnn.com"
URL="http://developer.apple.com/wwdc/"
@roustem
roustem / gist:1498185
Created December 19, 2011 18:01
TextMate 2 .tm_properties

This is all based on the [alpha release][1].

Properties

From the built-in help system:

For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).

These are simple setting = value listings where the value is a format string in which other variables can be referenced.