Skip to content

Instantly share code, notes, and snippets.

@deepakputhraya
deepakputhraya / .env
Last active October 4, 2019 13:17
Docker Image for single server multi user Jupyterhub with R support, Google Auth & Postgresql Backend
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=
POSTGRES_USERNAME=
POSTGRES_PASSWORD=
POSTGRES_HOST=
POSTGRES_DATABASE=
GOOGLE_HOSTED_DOMAIN=example.com
@deepakputhraya
deepakputhraya / cool-repo-names.md
Last active May 20, 2019 12:06
Cool Repo names for your next project

Repo names

  • alchemy
  • apparition
  • bane
  • clockwerk
  • clockwork
  • enigma
  • juggernaut
  • lancer
  • legion
{
"points" : {
"p1" : {
"x" : 0.5,
"y" : 0.6
},
"p2" : {
"x" : 0.5,
"y" : 0.6
},
@deepakputhraya
deepakputhraya / answer_body.json
Last active January 29, 2018 05:33
Playment TaskUI V2
{
"version" : "v2",
"answers" : {
"polygons" : {
"type" : "polygons",
"data" : [{
"_id" : "id-poly-01",
"label" : "tree",
"points" : {
"p1" : {"x" : 0, "y" : 1},
@deepakputhraya
deepakputhraya / auto_scaling.config
Created September 27, 2017 14:04
Elastic Beanstalk configurations
option_settings:
- namespace: aws:elasticbeanstalk:command
option_name: DeploymentPolicy
value: Immutable
- namespace: aws:elasticbeanstalk:command
option_name: Timeout
value: 900
- namespace: aws:elasticbeanstalk:cloudwatch:logs
@deepakputhraya
deepakputhraya / box_spare5.json
Last active September 7, 2017 04:45
JSON structures: Annotating Bounding Boxes. Polygons and Cuboids by Spare5 and scaleapi
{
"points": {
"p6": [0.232, 0.26986507],
"p7": [0.77066667, 0.26986507],
"p8": [0.77066667, 0.46626687],
"p9": [0.232, 0.46626687]
},
"cv_objects": {
"0EAF8033-9501-6BC2-9653-E40CE148D301": {
"closed": true,
@deepakputhraya
deepakputhraya / Postresql Migrate from 9.4 to 9.6.md
Last active March 4, 2017 08:34
Migrating from Postgreql from 9.4 to 9.6 with very simple commands. This technique will work if anyone wants to migrate to different versions. This requires down time

Postgresql backup before migrating

pg_dumpall > backup.out

Install Postgresql 9.6

For Ubuntu 14.04

sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main"