Skip to content

Instantly share code, notes, and snippets.

View abhinavn's full-sized avatar

Abhinav Nallagundla abhinavn

View GitHub Profile
@abhinavn
abhinavn / Xcode Appstore release commands
Last active August 29, 2015 14:07
Xcode Appstore release commands
Detect Provisioning Profile
-------------------------
security cms -D -i /path/to/the.app/embedded.mobileprovision
Validate IPA and Upload
-----------------------
security add-generic-password -s Xcode:itunesconnect.apple.com -a LOGIN -w PASSWORD -U
xcrun -sdk iphoneos Validation -verbose -online -upload IPA
security delete-generic-password -s Xcode:itunesconnect.apple.com -a LOGIN
@abhinavn
abhinavn / iotop2csv
Created September 4, 2014 23:25
iotop2csv
#/usr/bin/perl -w
use strict;
# Enabling strict with strict refs breaks the summary output (when ctrl+c is pressed)
# because of the error Can't use string ("") as a HASH ref while "strict refs" in use.
no strict 'refs';
#Initialize an empty hashref
my $hash_ref = {};
#Catch CTRL+C and then call printsummary subroutine
@abhinavn
abhinavn / Jenkins detached branch name for Xcode
Created August 13, 2014 19:01
Jenkins detached branch name for Xcode
buildDisplayName=$(git log -n 1 --pretty=%d HEAD | cut -d / -f 2-3 | awk '{print $1}' | sed s'/.$//')
This is tested for all cases
@abhinavn
abhinavn / logstash.conf
Last active August 29, 2015 14:04
logstash.conf
input {
syslog {
type => syslog
port => 514
codec => plain { charset => "ISO-8859-1" }
}
file {
type => syslog
path => [ "/var/log/*.log" ]
@abhinavn
abhinavn / mongo+cq supervisord
Created June 7, 2014 07:10
mongo+cq supervisord
[supervisord]
nodaemon=true
[program:mongod]
command=/usr/bin/mongod
[program:cq]
command=
@abhinavn
abhinavn / mongo+cq Dockerfile
Created June 7, 2014 07:09
mongo+cq Dockerfile
FROM ubuntu:latest
MAINTAINER examples@docker.io
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y openssh-server apache2 supervisor open-jdk
RUN mkdir -p /data/db
RUN mkdir -p /var/log/supervisor
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 22 80
@abhinavn
abhinavn / docker link multiple containers
Created June 7, 2014 05:57
docker link multiple containers
@abhinavn
abhinavn / Fetch Docker MongoIP
Created June 6, 2014 22:03
Fetch Docker MongoIP
CONTAINERID=$(docker run -p 27017:27017 -d $JOB_NAME$BUILD_NUMBER)
MONGOIP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CONTAINERID)
@abhinavn
abhinavn / Docker CQ Steps
Created June 6, 2014 21:56
Docker CQ Steps
First build the Mongo Container
===============================
docker build -t="new-mongo"
Next build CQ Container
========================
docker build -t="new-cq"
Run the Mongo container first
=============================