Posts

Showing posts with the label software engineering

Handy Gradle Commands

by Aditya Kapre Shrewsbury  Masssachussets Boston To remove gradle cache rm -rf ~/.gradle/caches/ OR rm -rf ~/.gradle/ Gradle build Go to project root dir and execute following ./gradlew clean build Gradle Run Task ./gradlew {task_name} Gradle Java Heap error fix when running build Put following in gradle.properties org.gradle.jvmargs=-XX:MaxHeapSize=512m -Xmx512m Kill gradle threads pkill -f '.*GradleDaemon.*'

API Keys

 by Aditya Kapre Shrewsbury Massachussets Boston What Is an API Key?   As the name suggests, API keys are simply an authentication password between computer applications. They are widely used anywhere applications are present. If you are wondering, ‘ How do API keys work?’ or ‘ What is an API key?’ , we discuss it all in this article.   API Keys: What are they?   An API key is a piece of code that acts as a unique identifier of users, developers, and the programs making the API call. Before we discuss what an API key is, let’s first talk about APIs. An Application Programming Interface allows software applications to interact with each other, send and receive data, and share functionality. These connections between internal applications and those integrated for your consumers and business partners help organize and optimize your systems. So, what is an API key? This key is essentially a security protocol that usually takes the form of randomly generated characters to protect your API.

Handy git commands

 by Aditya Kapre Shrewsbury Massachussets Boston To reword/change last N commit messages git rebase -i HEAD~N [Then replace "pick" by letter "r" and exit] [Interactively change each message one by one by exiting each time message is changed] Do not check in certain files such as local config values https://stackoverflow.com/a/48882519/3361121 git update-index --skip-worktree MySetupClass.java Undo above skip worktree ------------------------ git update-index --no-skip-worktree <file> get-latest-from-master-to-feature ---------------------------------- 1. Assume you are on feature branch currently and have untracked changes (git add not applied yet), then Stash current changes not committed a. git stash save --include-untracked -m "my changes to be used for later" b. git stash list --date=relative (see those are shown in list) c. git stash list --format='%gd (%cr): %gs' (more detailed that above) 2. C

StackOverflow

profile for Aditya Kapre Shrewsbury at Stack Overflow, Q&A for professional and enthusiast programmers

LinkedIn