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
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |
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
Manoj | |
```[2018-08-03 15:41:02,73] [error] Credentials are invalid: Unable to execute HTTP request: Connect to sts.amazonaws.com:443 [sts.amazonaws.com/54.239.29.25] failed: connect timed out | |
java.lang.RuntimeException: Credentials are invalid: Unable to execute HTTP request: Connect to sts.amazonaws.com:443 [sts.amazonaws.com/54.239.29.25] failed: connect timed out | |
at cromwell.cloudsupport.aws.auth.AwsAuthMode.validateCredential(AwsAuthMode.scala:87) | |
at cromwell.cloudsupport.aws.auth.AwsAuthMode.validateCredential$(AwsAuthMode.scala:85) | |
at cromwell.cloudsupport.aws.auth.DefaultMode.validateCredential(AwsAuthMode.scala:118) | |
at cromwell.cloudsupport.aws.auth.DefaultMode._credential$lzycompute(AwsAuthMode.scala:129) | |
at cromwell.cloudsupport.aws.auth.DefaultMode._credential(AwsAuthMode.scala:119) | |
at cromwell.cloudsupport.aws.auth.DefaultMode.credential(AwsAuthMode.scala:132) |
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
#include <iostream> | |
#include <vector> | |
#include <queue> | |
#include <functional> | |
#include <utility> | |
using namespace std; | |
const int MAX = 1e4 + 5; | |
typedef pair<long long, int> PII; | |
bool marked[MAX]; |
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
#include <iostream> | |
#include <vector> | |
#include <utility> | |
#include <algorithm> | |
using namespace std; | |
const int MAX = 1e4 + 5; | |
int id[MAX], nodes, edges; | |
pair <long long, pair<int, int> > p[MAX]; |
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
#include<iostream> | |
using namespace std; | |
class BST | |
{ | |
struct node | |
{ | |
int data; | |
node* left; |
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
(function(){ | |
// Initialize firebase | |
const config = { | |
} | |
firebase.initializeApp(config); | |
// Get Elements | |
const preObject = document.getElementById("object"); |
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
(function(){ | |
// Initialize firebase | |
const config = { | |
} | |
firebase.initializeApp(config); | |
// Get Elements | |
const preObject = document.getElementById("object"); |
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
/* eslint-env node */ | |
var path = require( "path" ); | |
var fs = require( "fs-extra" ); | |
var instrumentedDir = "build/instrumented"; | |
var reportDir = "build/report"; | |
// Support: Node.js <4 | |
var oldNode = /^v0\./.test( process.version ); |