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
DO $$ | |
declare | |
userToDelete UUID; | |
BEGIN | |
SET SCHEMA 'independentco'; | |
select INTO userToDelete user_id | |
from users_roles where role_id IN ( |
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
export AWS_ACCESS_KEY_ID=acces-key | |
export AWS_SECRET_ACCESS_KEY=secret | |
export VAULT_ADDR=vault-addr | |
export VAULT_TOKEN=vault-token | |
export GITHUB_TOKEN=github-token | |
export HELLO_SIGN_API_KEY=hellosign-token | |
export AMAZON_SES_SMTP_USERNAME=ses-username | |
export AMAZON_SES_SMTP_PASSWORD=ses-pasword | |
export MAIL_ENDPOINT=mail-endpoint |
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
//GenericEmailService | |
message.addHeader("Content-ID", "INVITATION_CODE"); | |
// EmailDeliveryTrackService | |
List<Message> messages = sqs.receiveMessage(queueUrl).getMessages(); | |
messages.forEach( message -> { | |
String invitation = message.getHeaders().get("Content-ID"); |
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/log/vault_audit.log { | |
daily | |
create 0600 vault vault | |
missingok | |
dateext | |
rotate 7 | |
size=10M | |
notifempty | |
postrotate | |
if invoke-rc.d vault status > /dev/null 2>&1; then \ |
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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:CreateLogStream", | |
"logs:PutLogEvents", | |
"logs:DescribeLogStreams" | |
], |
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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::BUCKET_NAME" |
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
[Unit] | |
Description=Vault | |
Documentation=https://vaultproject.io/docs/ | |
After=network.target | |
ConditionFileNotEmpty=/etc/vault.d/vault.hcl | |
[Service] | |
User=ubuntu | |
Group=ubuntu | |
ExecStart=/usr/local/bin/vault server -config=/etc/vault.d/vault.hcl |
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": "2008-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::847662935904:user/s3-venturesolutions-user" | |
}, | |
"Action": [ | |
"s3:ListBucket", |
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": "2008-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::847662935904:user/s3-venturesolutions-user" | |
}, | |
"Action": [ | |
"s3:ListBucket", |
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
location @prerender { | |
proxy_set_header X-Prerender-Token TOKEN; | |
set $prerender 0; | |
if ($http_user_agent ~* "baiduspider|twitterbot|facebookexternalhit|rogerbot|linkedinbot|embedly|quora link preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator") { | |
set $prerender 1; | |
} | |
if ($args ~ "_escaped_fragment_") { | |
set $prerender 1; | |
} |
NewerOlder