Skip to content

Instantly share code, notes, and snippets.

I see graph...

Pradeep Bashyal pbashyal-nmdp

I see graph...
View GitHub Profile
# Install Module::Starter if not already installed
# cpan -i Module::Starter
module-starter --distro=Foo-Bar-Baz \
--module=Foo::Bar,Foo::Baz \
--author="Pradeep Bashyal" \
--eumm \
--ignores=git \
--license=lgpl3 \
--genlicense \
--minperl=5.32.1 \
View load_csv_article.adoc

LOAD CSV into Neo4j quickly and successfully

Since version 2.1 Neo4j provides out-of-the box support for CSV ingestion. The LOAD CSV command that was added to the Cypher Query language is a versatile and powerful ETL tool. It allows you to ingest CSV data from any URL into a friendly parameter stream for your simple or complex graph update operation, that …​ conversion.

pbashyal-nmdp /
Created Aug 17, 2018 — forked from shortjared/
If you have ever wanted to grab a marketplace AMI (ex: OpenVPN) you'll know that the process is painful. This solves the pain.


  • You will need to first make sure you have subscribed to the marketplace product
  • Get the AMI of the marketplace
  • Copy the script to machine
  • awsume (or otherwise authorize) to AWS
  • chmod the script to be executable if needed chmod +x

Usage ./ {region} {ami} {name}
Example: ./ us-east-1 ami-f6eed4e0 OpenVPN

pbashyal-nmdp /
Created Jun 1, 2018
Get CIDR of S3 service in us-east-1 region
#!/usr/bin/env python
# Usage:
# $ python ./
# Update Date: 2018-06-01-12-26-19
# Delete old slack files that are older than 30 days
# Api Token
# Get token from
TOKEN=${SLACK_TOKEN?:"No token Provided"}
# 30 Days ago (The -v option is BSD Unix/Mac Specific)
MONTH_BEFORE=`date -v-30d +%s`