Skip to content

Instantly share code, notes, and snippets.

View semipermeable's full-sized avatar

Jay Moorthi semipermeable

View GitHub Profile
# Copyright (c) 2015 Solano Labs Inc. All Rights Reserved.
namespace :dashboard do
desc "Update all custom dashboard backing data"
task :update_all => :environment do
Dashboard.each do |d|
puts "Updating #{d.account.handle}/#{d.name}"
d.suites.each do |s|
s.sparkline_data = nil
s.update_sparkline_data
build_package_combined_patch() {
local package_name="$1"
{
curl https://gist.github.com/funny-falcon/4136373/raw/0b65118d0e0930c5dc15479722309fac971af902/falcon-gc.diff | patch -p1
autoconf
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
make -j 8
make install
} >&4 2>&1
:tddium:
:java:
:java_version: java-6-openjdk
:gradle_version: '1.11'
:tests:
- type: junit
output: exit-status
mode: parallel
prefix: 'Demo'
files:
tddium:
:python:
:python_version: 2.7
:hooks:
:pre_setup: |
pip install -r requirements/edx/pre.txt
pip install -r requirements/edx/base.txt
pip install -r requirements/edx/local.txt
pip install -r requirements/edx/github.txt
pip install -r requirements/edx/post.txt
@semipermeable
semipermeable / solano-runner
Last active August 29, 2015 14:02
solano-runner
#!/usr/bin/env ruby
require 'optparse'
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: #{$0} [options]"
opts.on("-d PREFIX", String, "Prefix") do |v|
options[:prefix] = v
@semipermeable
semipermeable / certificate_setup.rb
Last active December 19, 2015 14:08
Utilities to support PostgreSQL client certificate authentication setup example.
module CertificateSetup
def generate_server_cert(name, cn)
system "openssl genrsa -des3 -passout pass:x -out #{name}.pass.key 2048"
system "openssl rsa -passin pass:x -in #{name}.pass.key -out #{name}.key"
FileUtils.rm "#{name}.pass.key"
system "openssl req -new -key #{name}.key -out #{name}.csr -subj '/C=CA/ST=California/L=San Francisco/O=Testing/CN=#{cn}'"
system "openssl x509 -req -days 365 -in #{name}.csr -signkey #{name}.key -out #{name}.crt"
end
def generate_client_cert(name, cn, root)
@semipermeable
semipermeable / tddium_post_build.rake
Last active March 17, 2016 02:14 — forked from jensendarren/tddium_post_build.rake
Tddium post-build task to deploy into Heroku and notify New Relic
def cmd(c)
system c
end
namespace :tddium do
desc "post_build_hook"
task :post_build_hook do
# This build hook should only run after CI builds.
#
# There are other cases where we'd want to run something after every build,
@semipermeable
semipermeable / tddium_post_build.rake
Last active October 4, 2015 12:48
Tddium post-build task to deploy into Heroku
def cmd(c)
system c
end
namespace :tddium do
desc "post_build_hook"
task :post_build_hook do
# This build hook should only run after CI builds.
#
# There are other cases where we'd want to run something after every build,
@semipermeable
semipermeable / gist:2492544
Created April 25, 2012 19:27 — forked from thommahoney/gist:2491946
RailsConf 2012 Lightning Talks
5 min:
~Objective-C + Rails:
Communicating w/rails from iOS/mac OS
Dan Hassin
1 min:
~Painless Javascript
koting hatduklgg
with wind tunnel
@semipermeable
semipermeable / stub_server.rb
Created December 7, 2011 20:10
Tddium Stub Server Port Example
MyStubServer.server_port = 54321 + ENV.fetch('TDDIUM_TID', 0).to_i