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
| storage: | |
| dbPath: "/data/db/300-mm" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| systemLog: | |
| destination: file | |
| path: "/data/db/300-mm/mongodb.log" | |
| logAppend: true | |
| timeStampFormat: iso8601-utc |
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
| 'use strict'; | |
| /** | |
| * Module dependencies. | |
| */ | |
| var mongoose = require('mongoose'), | |
| AWS = require('aws-sdk'), | |
| exec = require('child_process').exec, | |
| fs = require('fs'), | |
| name = new Date().toISOString(); |
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
| # -*- coding: utf-8 -*- | |
| '''Dump MongoDB databases to the zip archives | |
| and copy its to the output folder. | |
| Usage: python mongozip.py | |
| ''' | |
| import os | |
| import os.path | |
| import datetime | |
| import tempfile | |
| import shutil |
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
| cd ~ | |
| wget http://mmonit.com/monit/dist/binary/5.12/monit-5.12-linux-x64.tar.gz | |
| tar zxf monit-5.12-linux-x64.tar.gz | |
| cd monit-5.12/ | |
| cp bin/monit /usr/bin/ | |
| mkdir /etc/monit | |
| touch /etc/monit/monitrc | |
| chmod 0700 /etc/monit/monitrc | |
| ln -s /etc/monit/monitrc /etc/monitrc | |
| wget https://gist.githubusercontent.com/gaurish/964456aa08c9fa2e43ee/raw/1aa107e62ecaaa2dacfdb61a12f13efb6f15005b/monit -P /etc/init.d/ |
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
| Please include the following information in your report: | |
| Terraform Version: 0.6.16 | |
| Resource ID: aws_instance.be_flight_b.0 | |
| Mismatch reason: attribute mismatch: ami | |
| Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"tags.#":*terraform.ResourceAttrDiff{Old:"", New:"2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "private_ip":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Type:0x0}, "key_name":*terraform.ResourceAttrDiff{Old:"", New:"it-admin-key", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Type:0x0}, "tags.Environment":*terraform.ResourceAttrDiff{Old:"", New:"prod", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "root_block_device.0.volume_size":*terraform.ResourceAttrDiff{Old:"", New:"8", NewComputed:false, NewRemoved:false, N |
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
| Error applying plan: | |
| 1 error(s) occurred: | |
| * aws_instance.be_a.2: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue. | |
| Please include the following information in your report: | |
| Terraform Version: 0.6.16 | |
| Resource ID: aws_instance.be_a.2 |
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
| ## Workspace directory structure: |
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 | |
| # | |
| # ############################################################################# | |
| # Create new SSH user (Ubuntu) | |
| # 1) Download the "raw" with - wget -O createNewSSHUser.sh | |
| # 2) Make it executable with - chmod a+x createNewSSHUser.sh | |
| # 5) Immediately set a new password by logging in once with - | |
| # su newUsrName | |
| # ############################################################################# | |
| # |
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
| root@c23b560300f0:/var/www/test# npm i node-libcurl | |
| > node-libcurl@1.3.1 install /var/www/test/node_modules/node-libcurl | |
| > node-pre-gyp install --fallback-to-build | |
| node-pre-gyp ERR! Tried to download(404): https://github.com/JCMais/node-libcurl/releases/download/v1.3.1/node_libcurl-v1.3.1-node-v64-linux-x64.tar.gz | |
| node-pre-gyp ERR! Pre-built binaries not found for node-libcurl@1.3.1 and node@10.0.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) | |
| make: Entering directory '/var/www/test/node_modules/node-libcurl/build' | |
| CXX(target) Release/obj.target/node_libcurl/src/node_libcurl.o | |
| In file included from ../src/node_libcurl.cc:25:0: |
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 bash | |
| curl -sL https://deb.nodesource.com/setup_10.x | bash - | |
| apt-get install -y nodejs | |
| mkdir node-curl && cd node-curl && rm -rf node_modules && npm i -f node-libcurl --build-from-source | |
| echo " | |
| var Curl = require('node-libcurl').Curl; | |
| var curl = new Curl(); |