Skip to content

Instantly share code, notes, and snippets.

Amit-Naudiyal

Block or report user

Report or block Amit-Naudiyal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View template-subnet
{
"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",
View mezzanine-container.yml
- 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
View run-final.yml
#!/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
View getSmallerEpoch.sh
#!/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`
View gist:10bfa1c9ff88d3519f65
<!-- 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"/>
View Prod ldap_client_install.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
View ldap-client-install
#!/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
View gist:2514ef08068b039be79e
hsrs collection
-----------------
smsiProductionMongo:PRIMARY> db.hsrs.getIndexes()
[
{
"name" : "_id_",
"ns" : "simulscribe_production.hsrs",
"key" : {
"_id" : 1
},
View 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]
You can’t perform that action at this time.