Skip to content

Instantly share code, notes, and snippets.

View neps-in's full-sized avatar
🏠
Working from home

Napoleon Arouldas neps-in

🏠
Working from home
View GitHub Profile
@neps-in
neps-in / s3-bucket-stats.sh
Created March 16, 2019 16:17 — forked from cupracer/s3-bucket-stats.sh
Amazon S3 CLI: get bucket stats
aws s3api list-objects --bucket <bucket-name> --output json --query "[sum(Contents[].Size), length(Contents[])]"
@neps-in
neps-in / slugify-in-js
Created October 30, 2018 12:58
Slugifies the text in pure javascript
/*
Slugifies the text in pure javascript
Converts
What's the best way to learn PHP ? => whats-the-best-way-to-learn-php
*/
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
@neps-in
neps-in / install-lamp.sh
Last active October 30, 2018 01:46
Install LAMP Stack on Ubuntu 14.04 and few other productive tools
##############################################################
#
# install-lamp.sh (Server)
#
# Installs LAMP (PHP Version 5.6) Stack and other dev tools on ubuntu 14.04 Server
#
# Author: Napoleon Arouldas S.
#
# Lead Developer of http://grandappstudio.com/roll-out/
#