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
sudo iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443 | |
sudo iptables -t nat -I OUTPUT -p tcp -o lo --dport 443 -j REDIRECT --to-ports 8443 |
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 mongoose = require('mongoose'); | |
app.service('donation').Model | |
.aggregate([ | |
{ | |
$match: { | |
eventid: new mongoose.Types.ObjectId(req.body.event) | |
} | |
}, | |
{ | |
$group: { |
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
#!/bin/bash | |
AWS_BASE_PROFILE=base-profile | |
AWS_TARGET_PROFILE=target-profile | |
ARN_OF_MFA=arn:aws:iam::1234567890:mfa/mfa-device | |
DURATION=129600 | |
AWS_CLI=`which aws` |