Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Deepan Prabhu Babu deepanprabhu

🎯
Focusing
  • San Francisco
View GitHub Profile
@deepanprabhu
deepanprabhu / gist:fbb406c3432c19eafe78a4b44e6a4b23
Created Oct 30, 2017
Concise Recursive DynamoDB Scan - Large Table - Using ExclusiveStartKey and LastEvaluatedKey - NodeJS
View gist:fbb406c3432c19eafe78a4b44e6a4b23
let params = {
TableName: 'xxx',
Limit: 50 // Configure based on needs
};
let aItems = [];
const recursiveScan = (params) => {
return client.scan(params).promise().then((data) => {
// Simple Changes to input, optional
let newItems = data.Items.map((item) => {
return item;
@deepanprabhu
deepanprabhu / default
Created Jun 5, 2017
Nginx - Serving two sites, simultaneously - One is Codeigniter, another is bare php - don't forget to edit /etc/hosts
View default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.