A collection of succinct write-ups on whatever I learn on a day to day basis across various languages and technologies.
- Install and configure AWS CLI
- List files in a bucket
- Copy single file from a bucket
- Copy all files from a bucket (directory)
- Banners in Bash Scripts
- Configure Base Dir
- Cumulative size of all the files in a dir/subdir
- Delete all directories except
- Extract IP Address
- Find lines of code
- Interactive Bash Script
- Output to both console and log file
- Print last line of each file
- Write lines from and to given line numbers from a file to another file
- Access services running on host machine from inside a container service as localhost
- Build a docker image
- Delete docker volumes that are not being used by any container
- Follow container logs
- List docker volume data
- Multi-stage based builder pattern to create docker images
- Run a container
- Set path in Dockerfile
- Create and save expectations in an Expectation Suite
- Vaildate batch against an expectation suite
- Validate batch and create data docs
- Branch Desciptions
- Rename branch
- Delete a branch
- Change commit message
- Git commits count
- Revert commit already pushed to github
- Revert commit head to second last commit
- Change git editor to Vim
- Symbolic links in git
- Most recent commit log with the file names
- Merge branches with unrelated histories
- Merge unrelated local remote repositories
- Rebase from another branch arrow
- Reorder commits while rebasing
- Change remote url
- Adding code to existing github repository
- Initialize repo with a default branch
- Sparse Checkout
- List changes in stash
- List only file names in stash
- Selectively stash git changes
- Create a tag
- Delete a tag
- Push tags
- Fetch all remote tags
- Calculate time difference (millisecond precision)
- Create heap dump
- Create thread dump
- Running java applications
- Reading properties from properties file
- Reading resources from classpath
- Remote JMX Monitoring over SSH
- Animated Logo in Reactjs
- Check if Javascript object is empty
- Convert an array of objects to object of objects with indices as one of the key value
- Convert a list of objects to an object of objects with indices of objects in the lists as keys
- Custom React Hook to implement intervals
- Enums in Javascript
- How to properly terminate timeouts started in a loop
- Parsing javascript object
- Pausing setInterval when page/ browser is out of focus
- Sleep in Javascript
- Slice objects from a list of objects to an object of objects with keys as indices
- Start local webserver to host dev apps
- Start React App in DEV/PROD mode
- Basic minikube cluster commands
- List minikube cluster ip address
- Enable addons on a minikube cluster
- List minikube docker environment variables
- Point local Docker daemon to the minikube internal Docker registry
- Launch minikube Dashboard
- Show minikube cluster info
- Create a secret
- Apply deployment configs
- Delete deployment configs
- Kubectl queries
- Kubectl logs
- Create tunnel
- Delete all files and directories except a given few
- Determine if a port is already in use
- Determine if a port is open on a remote server
- Download google drive file
- Find a file by name
- Grep in Parallel
- How to create windows bootable disk on ubuntu
- How to format bootable ubuntu usb drive
- Install necessary tools
- Keyboard shortcut to force exit ssh shell
- Using rsync for data transfer
- Update AWS IP in your local dns
- How to generate the “create table” sql statement for an existing table in postgreSQL
- How to pass arguments to sql file
- How to merge two tables in postgresql based on multiple conditions
- Adding Shutdown Hooks for JVM Applications
- Change Current Directory
- Class Constructors
- Convert Java collections to Scala
- Convert a List into a Tuple
- Convert List of lists into Tuple of lists
- Convert List of tuples into a List of lists
- Convert String to LocalDateTime
- Count the number of occurrences in a list
- Create/Update configs in Scala at runtime
- Find duplicates in a list
- Find files with a given extension
- How to pick up a free port number on localhost
- Load Configurations
- Managed Resources
- Map.map vs Map.mapValues
- Marshalling/Unmarshalling Java LocalDateTime using spray-json
- Marshalling/Unmarshalling Scala Enumerations using spray-json
- Marshalling/Unmarshalling generic ADT using spray-json
- Ouptut Redirections
- Read configs in Scala using pureconfig
- Read from a file
- Read resource file abs path
- Reload your configuration files reactively
- String format
- Using wildcards with scala.sys.process._ in Scala
- Using Scala Reflection to invoke members of companion object
- Views in scala
- Wait for all futures to complete
- Ways to deal with option in scala
- Write to a file
- Zip elements from multiple lists
- Are sbt library dependencies order dependent?
- Debug lagom projects
- How to have SBT subproject with multiple Scala versions
- Making eclipse aware of fresh dependencies in a sbt project
- Making SBT fetch locally published jars instead of reaching out to public maven repositories
- Publish Artificats to Sonatype OSSRH
- Specify dependencies in classpath
- Unmanaged Resources
- Using locally maven published jar in a sbt project
- Using sbt from behind proxy
- What's SBT_OPTS/.sbtopts?