- log in docker container in ec2-user
apt-get update
apt-get install -y postgresql
apt-get install -y dnsutils
- this package is for nslookup
nslookup xxxx.yyyyyy.us-west-2.rds.amazonaws.com
psql -h <private-ip-address> -U <user-name> -d <database-name>
#!/usr/bin/env bash | |
cmd=$1 | |
chart=$2 | |
env=$3 | |
dir=${chart}-kustomize | |
chart=${chart/.\//} | |
build() { |
This is a PoC that will be later a PR to react-native-view-snapshot to implement the feature for Android.
We still need to wait React Native to have the addUIBlock feature provided by this PR.
Also, I'll wait react-native-view-snapshot to implement the same API as the current RN takeSnapshot on iOS allowing the options.
import {NativeModules, findNodeHandle} from "react-native";
#!/bin/bash | |
# | |
# Script to remove GPG key from git-crypt | |
# | |
# It will re-initialize git-crypt for the repository and re-add all keys except | |
# the one requested for removal. | |
# | |
# Note: You still need to change all your secrets to fully protect yourself. | |
# Removing a user will prevent them from reading future changes but they will | |
# still have a copy of the data up to the point of their removal. |
{ | |
"presets": ["es2015"], | |
"plugins": ["transform-async-to-generator"] | |
} |
--- | |
- hosts: app_server_1 | |
user: ubuntu | |
sudo: true | |
roles: | |
- docker_rails_app_build | |
- hosts: app_loadbalancer | |
user: ubuntu |
packages: | |
yum: | |
wget: [] | |
curl: [] | |
commands: | |
00_remove_99_swap.conf.bak: | |
command: rm -f /etc/sysctl.d/99_swap.conf.bak | |
test: test -f /etc/sysctl.d/99_swap.conf.bak | |
ignoreErrors: true | |
00_remove_99_filesystem.conf.bak: |