This file contains 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
BUILDDIR=$1 | |
CONNECTDIR="$BUILDDIR/public/var/connect" | |
PACKAGEXML="$CONNECTDIR/package.xml" | |
echo "Using package.xml: $PACKAGEXML" | |
cd $BUILDDIR/public | |
if [ -f "$PACKAGEXML" ]; | |
then | |
./mage package $PACKAGEXML |
This file contains 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
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
This file contains 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
var Promise = require('bluebird'); | |
var myType = 'mytype'; | |
var nativePromise = new Promise(function (resolve, reject) { | |
sails.models[mytype].native(function (err, collection) { | |
if (err) { | |
return reject(err); | |
} | |
var pipeline = []; //some pipeline | |
collection.aggregate(pipeline).toArray(function (err, itemList) { |
This file contains 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
const suffixMap = { | |
"ALY": [ | |
"ALLEE", | |
"ALLEY", | |
"ALLY", | |
"ALY" | |
], | |
"ANX": [ | |
"ANEX", | |
"ANNEX", |
This file contains 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
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/60_configure_newrelic_hostname.sh": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
#!/bin/bash | |
set -xe | |
export EC2_TAG_NAME=$(/opt/aws/bin/ec2-describe-tags --filter "resource-type=instance" --filter "resource-id=$(/opt/aws/bin/ec2-metadata -i | cut -d ' ' -f2)" --filter "key=Name" | cut -f5) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
alias socks_on="ssh -D 8666 -C -N -f -M -S ~/.socks.socket $USER@<your_office_gateway>; networksetup -setsocksfirewallproxystate Wi-Fi on;" | |
alias socks_off="networksetup -setsocksfirewallproxystate Wi-Fi off; ssh -S ~/.socks.socket -O exit $USER@<your_office_gateway>;" |
This file contains 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 | |
# | |
# This script would help to automate renewal of LetsEncrypt TLS certificates in a Linux machine | |
# running nginx web server on AWS EC2. | |
# What it does: | |
# 1. it stops nginx | |
# 2. it opens incoming firewall ports 80 and 443 for certbot host verification | |
# 3. it runs certbot to renew certificates. Certbot launches a standalone HTTP server on port 80 or 443 | |
# 4. it closes incoming firewall ports 80 and 443 | |
# 5. it starts nginx |
This file contains 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
version: "3.7" | |
services: | |
rabbitmq: | |
image: rabbitmq:3-management | |
environment: | |
RABBITMQ_DEFAULT_VHOST: "/myproject" | |
RABBITMQ_DEFAULT_USER: "dev" | |
RABBITMQ_DEFAULT_PASS: "dev" | |
volumes: | |
- type: volume |
This file contains 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
FROM node:10 | |
# Set the workdir /var/www/myapp | |
WORKDIR /var/app/current | |
# Copy the package.json to workdir | |
COPY package.json ./ | |
COPY package-lock.json ./ | |
# Copy application source | |
COPY .sailsrc ./ |