Skip to content

Instantly share code, notes, and snippets.

@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
},
#!/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
<!-- 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"/>
@amit-naudiyal
amit-naudiyal / SS1 Control plane services
Created October 3, 2012 05:33
SS1 Control Plane services
174.129.252.102
######################
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 S root 1 0 0 75 0 - 1000 - May19 ? 00:00:09 /sbin/init
1 S root 2 1 0 -40 - - 0 - May19 ? 00:00:13 [migration/0]
1 S root 3 1 0 94 19 - 0 - May19 ? 00:00:00 [ksoftirqd/0]
5 S root 4 1 0 -40 - - 0 - May19 ? 00:00:00 [watchdog/0]
1 S root 5 1 0 70 -5 - 0 - May19 ? 00:00:01 [events/0]
1 S root 6 1 0 70 -5 - 0 - May19 ? 00:00:00 [khelper]
#!/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`
#!/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
- 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
{
"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",