Skip to content

Instantly share code, notes, and snippets.

import urllib
import boto3
import ast
import json
print('Loading function')
def lambda_handler(event, context):
print 'Recieved following event'
print '--------------------------------------------------'
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "EKS cluster (dedicated VPC: true, dedicated IAM: true) [created and managed by eksctl]",
"Resources": {
"ClusterSharedNodeSecurityGroup": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "Communication between all nodes in the cluster",
"Tags": [{
"Key": "Name",
- name: Create Mezzanine container
hosts: local
vars:
mezzanine_repo_url: https://github.com/lorin/mezzanine-example.git
mezzanine_proj_path: /srv/project
mezzanine_reqs_path: requirements.txt
script_path: /srv/scripts
tasks:
- name: install apt packages
apt: pkg={{ item }} update_cache=yes cache_valid_time=3600
#!/usr/bin/env ansible-playbook
---
- name: run mezzanine from containers
hosts: localhost
vars_files:
- secrets.yml
vars:
# The postgres container uses the same name for the database
# and the user
database_name: mezzanine
#!/bin/bash
#This script is to get smaller Epoch values than the specified value in an Oplog dump.
#It assumes you have kept your readable dump at the same loction where this script is.
#author a.naudiyal
SED=`which sed`
JQ=`which jq`
UNIQ=`which uniq`
TR=`which tr`
CAT=`which cat`
<!-- Article component -->
<field name="articletitle" type="text_general" indexed="true" stored="true" omitNorms="true"/>
<field name="articlebyline" type="text_general" indexed="true" stored="false"/>
<field name="articletopics" type="text_general" indexed="true" stored="false" omitNorms="true" multiValued="true"/>
<field name="articletype" type="string" indexed="true" stored="false"/>
<field name="magissue" type="boolean" indexed="true" stored="false" />
<field name="articlecolumn" type="text_general" indexed="true" stored="false" multiValued="false"/>
<field name="articleabstract" type="text_general" indexed="true" stored="true" multiValued="false"/>
#!/bin/bash
echo
echo Install LDAP Client.
echo You will have to enter the password for `whoami` once or twice here.
echo
sed -e '1,/^==CUT HERE/d' $0 | openssl enc -d -a | tar zxf -
sh ./Node-Setup.sh
#!/bin/bash
echo
echo Install LDAP Client.
echo You will have to enter the password for `whoami` once or twice here.
echo
sed -e '1,/^==CUT HERE/d' $0 | openssl enc -d -a | tar zxf -
sh ./Node-Setup.sh
@amit-naudiyal
amit-naudiyal / gist:2514ef08068b039be79e
Created May 5, 2014 03:35
smsi_indexing_expectations
hsrs collection
-----------------
smsiProductionMongo:PRIMARY> db.hsrs.getIndexes()
[
{
"name" : "_id_",
"ns" : "simulscribe_production.hsrs",
"key" : {
"_id" : 1
},