This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import boto3 | |
import ast | |
import json | |
print('Loading function') | |
def lambda_handler(event, context): | |
print 'Recieved following event' | |
print '--------------------------------------------------' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aewewewewe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hsrs collection | |
----------------- | |
smsiProductionMongo:PRIMARY> db.hsrs.getIndexes() | |
[ | |
{ | |
"name" : "_id_", | |
"ns" : "simulscribe_production.hsrs", | |
"key" : { | |
"_id" : 1 | |
}, |
NewerOlder