Frequently used stuffs which I have collected throughout my works. Having to google same info repeatedly is tedious; hence this collection serves as a faster approach 🚀
Content-Types collection
Frequestly used Content-Types
Useful ElasticSearch snippets
ES snippets in JavaScript (AWS)
Throttle function call
Control rate/speed of multiple function call
Windows 10 chmod 400 equivalent
Useful for setting right permission for AWS ec2 instance
Useful Laravel commands
Frequently used Laravel commands
Serverless - Useful commands
Useful command for serverless framework
Split string with multiple seperators
eg. "1,2-3+4/5|6" => [1,2,3,4,5,6]
Tailwind "coming soon" page
Simple, clean & minimal coming soon page
Sequelize CLI commands
Frequently used commands for sequelize CLI - at one place.
Postman script to save token to ENV
Saves auth token from API response to env variable automatically
Random number generation
Generate random number within a range
S3 access bucket policy
Allows s3 bucket to host static web apps
Regex - Validate email
Validate email address using regex
Posgres - frequently used commands
Login, view tables, view schema, add/remove columns, data etc.
Round to nearest 100
Rounds integer/float to nearest 100 (floor + ceil)
Redis - Manage Memory
Command to manage redis memory consumption
Redis - Start, Stop & Restart
Command to manage redis state. Works on Ubuntu server
Useful stuffs for pm2
Commands and concepts
Redis - manage Clients
Command to manage redis clients
Github - use specific ssh key
Specify SSH key path while running GIT commands
Nginx - Useful commands
Basic commands for operating NGINX server
Deploy Serverless - Github Action
Github action to deploy serverless application
Delete empty folders
Find and delete empty folders recursively
Deploy Vuejs to AWS
Github Action to deploy Vuejs to AWS S3 & invalidate Cloudfront cache
Nginx - Starter templates
Starter template for nodejs server, basic html site
Count no. of words in a sentence
Run this command in browsers console.
Connect CloudFront to S3
Tips to create CloudFront distribution for S3 bucket
Copy text to clipboard
Copy data from webpage to clipboard
CSS - Spinner(loading) animation
Spinner in plain CSS
Use Jquery on browser console
Injects Jquery into webpage