Skip to content

Instantly share code, notes, and snippets.

View kumarmj's full-sized avatar
😁
there is no finishing line, longer the run, wider should be the smile

Manoj Kumar kumarmj

😁
there is no finishing line, longer the run, wider should be the smile
View GitHub Profile
@kumarmj
kumarmj / psql-with-gzip-cheatsheet.sh
Created April 5, 2019 10:58 — forked from brock/psql-with-gzip-cheatsheet.sh
Exporting and Importing Postgres Databases using gzip
# 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
@kumarmj
kumarmj / gist:89e9b213360cce1eade7b0b9bddddd71
Created August 3, 2018 05:48
cromwell log AWS backend behind proxy
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)
@kumarmj
kumarmj / Binary Search Tree.cpp
Last active April 3, 2017 10:23 — forked from harish-r/Binary Search Tree.cpp
Binary Search Tree Implementation in C++
#include<iostream>
using namespace std;
class BST
{
struct node
{
int data;
node* left;