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 🚀
Nginx - Useful commands
Basic commands for operating NGINX server
Throttle function call
Control rate/speed of multiple function call
Windows 10 chmod 400 equivalent
Useful for setting right permission for AWS ec2 instance
Posgres - frequently used commands
Login, view tables, view schema, add/remove columns, data etc.
Tailwind "coming soon" page
Simple, clean & minimal coming soon page
Serverless - Useful commands
Useful command for serverless framework
Content-Types collection
Frequestly used Content-Types
Useful Laravel commands
Frequently used Laravel commands
Split string with multiple seperators
eg. "1,2-3+4/5|6" => [1,2,3,4,5,6]
Nginx - Starter templates
Starter template for nodejs server, basic html site
Deploy Vuejs to AWS
Github Action to deploy Vuejs to AWS S3 & invalidate Cloudfront cache
Useful ElasticSearch snippets
ES snippets in JavaScript (AWS)
Find largest files/folders
Top 10 files
Sequelize CLI commands
Frequently used commands for sequelize CLI - at one place.
Setup server for node.js
For Ubuntu 22
S3 access bucket policy
Allows s3 bucket to host static web apps
Round to nearest 100
Rounds integer/float to nearest 100 (floor + ceil)
S3 CORS policy(JSON)
For using with S3 bucket that allows pre-signed URLs
Redis - manage Clients
Command to manage redis clients
Redis - Start, Stop & Restart
Command to manage redis state. Works on Ubuntu server
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
Regex - Validate email
Validate email address using regex
Redis - Manage Memory
Command to manage redis memory consumption
Useful stuffs for pm2
Commands and concepts
Github - use specific ssh key
Specify SSH key path while running GIT commands
Run Git commands using different SSH key
Handy in case of running Git commands in servers
Delete empty folders
Find and delete empty folders recursively
Deploy Serverless - Github Action
Github action to deploy serverless application
CSS - Spinner(loading) animation
Spinner in plain CSS
Copy text to clipboard
Copy data from webpage to clipboard
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
Use Jquery on browser console
Injects Jquery into webpage