Skip to content

Instantly share code, notes, and snippets.

View hayderimran7's full-sized avatar

Imran Hayder hayderimran7

View GitHub Profile
@hshoff
hshoff / full-saturn.md
Last active August 29, 2015 14:05
Full Saturn

screen shotty

Based on Saturn by @psql

Full Saturn is an updated color theme of Spacegray by @kkga.

If you already have Theme - Spacegray installed skipped to step 5.

Janky manual install due to laziness

@Jaykah
Jaykah / docker1-7dyn.sh
Last active August 29, 2015 14:23
Docker 1.7 Dynamic
apt-get install -qy apt-transport-https pkg-config autoconf automake build-essential libdevmapper-dev golang-gosqlite-dev uuid-dev libattr1-dev zlib1g-dev libacl1-dev e2fslibs-dev libblkid-dev liblzo2-dev asciidoc xmlto --no-install-recommends
cd /opt
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/mason/btrfs-progs
cd btrfs-progs/
./autogen.sh
./configure
make
make install
@cgoldberg
cgoldberg / selenium_webdriver_phantomjs.py
Created January 7, 2013 18:06
Python unit test using PhantomJS and Selenium WebDriver. Headless web acceptance testing.
#!/usr/bin/env python
"""Python unit test using PhantomJS and Selenium WebDriver."""
# requires: selenium python bindings, phantomjs 1.8+
#
# if you have phantomjs installed and on your PATH,
# you can instantiate a PhantomJS WebDriver like this:
#
# from selenium import webdriver
@mrrooijen
mrrooijen / Vagrantfile.rb
Created November 25, 2012 18:57
Example of running multiple VM's using a single Vagrantfile.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "base"
config.vm.customize ["modifyvm", :id, "--memory", 1024]
config.vm.define :haproxy do |haproxy|
haproxy.vm.forward_port 80, 8000
haproxy.vm.network :hostonly, "192.168.1.10"
@leoh0
leoh0 / drawl2path.sh
Created April 2, 2015 17:28
openstack l2path draw
#!/bin/bash
sudo apt-get install -qqy ethtool libgraph-easy-perl graphviz > /dev/null
EXCEPT=/tmp/exceptlist
echo '' > $EXCEPT
result=""
function on_exit() {
rm -f $EXCEPT
@YungSang
YungSang / README.md
Last active April 3, 2017 09:10
Running Kubernetes Example on CoreOS, Part 2 with flannel (formerly Rudder)
@hSATAC
hSATAC / gist:3246217
Created August 3, 2012 09:17
Check git branch been merged or not
#!/usr/bin/env ruby
require 'rubygems'
require 'active_support'
merged = `cd /home/m/git/repositories/miiicasa.git && git branch --merged master | grep -v master`
not_merged_cmd = 'cd /home/m/git/repositories/miiicasa.git && git branch | grep -v master | grep -v support | grep -v qa'
for line in merged.split("\n")
not_merged_cmd += '| grep -v ' + line
end
puts "This is a regular check of miiiCasa.git branches\n"

Apple's Swift team has an opening for a DevOps engineer! If you are interested, please email: swift-job-apply@group.apple.com

Job Summary

Are you excited about Swift? Imagine what you could do for software development as a member of the Swift team at Apple, where you will have an opportunity to make an impact on both the Swift open source community and on Apple's developer tools products!

As a DevOps quality engineer on the Swift team, you will help engineer solutions to enable better development processes and raise the bar on the quality of the Swift compiler, both as a component of Xcode, and as an open source project. This team architects and maintains a large continuous integration (Jenkins) and automation system, so experience with scaling an infrastructure and automation is highly desired. This role also requires stellar communication, collaboration, and organization skills. The successful candidate is also highly motivated and proactive, detail-oriented, and has a passion for seeking ever hig

@kflorence
kflorence / cart-mysql.sql
Last active October 26, 2017 17:54
sample mysql interview questions
drop table if exists customer;
create table customer(
id int auto_increment primary key,
first_name varchar(96) not null,
last_name varchar(96) not null,
address_id int not null
);
insert into customer (first_name, last_name, address_id) values ('john', 'doe', 1);
insert into customer (first_name, last_name, address_id) values ('jane', 'doe', 2);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char **make_copy(int argc, char **argv)
{
size_t strlen_sum;
char **argp;
char *data;
size_t len;