curl 'https://waa-pa.xx.google.com/$rpc/xx.xx.v1.Waa/Create' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB-oxendict,en-US;q=0.9,en;q=0.8' \
-H 'Authorization: SAPISIDHASH 1750645628_xx SAPISID1PHASH 1750645628_xxx SAPISID3PHASH 1750645628_xxx' \
--data-raw '["/<app-name-hased>"]'
In the request payload, we would want to send a list of feature flags
These faeature flags are abbreviated to minimize payload size and tampering.
We determine the supported functionalities in the client - The client could be a Mobile App, A web view, or web app running inside a browser.
We send these to the backend API - Each type
code represents a specific capability that the client can handle or is requesting to use.
"capabilities": [{
"type": "EC"
export PATH=$HOME/Downloads/nexus-3.58.1-02-unix/nexus-3.58.1-02/bin:$PATH
- Dafault port and path: http://localhost:8081/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div { | |
width: 100%; | |
margin-top: 5%; | |
text-align: center; | |
} | |
p { | |
display: inline-block; | |
width: 20%; | |
margin: 5% auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorCustomizations": { | |
"activityBar.activeBackground": "#ff00ff", | |
"activityBar.background": "#0000ff", | |
"activityBar.foreground": "#00ff00", | |
"activityBar.inactiveForeground": "#00ff0099", | |
"activityBarBadge.background": "#ff00ff", | |
"activityBarBadge.foreground": "#000000", | |
"commandCenter.border": "#00ff0099", | |
"sash.hoverBorder": "#ff00ff", |
- A utility that opens an open source JS repo and flattens the content into the main file so that a developer doesn't have to navigate the hoops and loops of dependencies.
- It should be like the Bundling tool which doesn't obfuscate or minimize or add any additional code
- It just bundles everything into a single codebase to get a better readability
- Also, the rabbit holes of nested dependencies can be avoided completely
- This will also make it easier for the maintainers to fix vulnerabilities
- Although, it can be hard to garner enough interest from security researchers if the codebase isn't popular
- There are a few similar utilities in the public domain that flatten or bundle JavaScript files, although they might not function exactly as described:
- Webpack: Module bundler that can also create a dependency graph and bundles up all the modules into a single file.
- Truffle Flattener: npm utility to flatten or combines Solidity files developed un
To create a git hist alias in your Bash profile that:
- prints the history of the whole directory if no arguments are specified, and
- if a file or directory is specified, it shows the history of that,
you can add the following lines to your ~/.bash_profile
or ~/.bashrc
file:
# define a Bash function called git hist
git hist() {
+----------+-----------------------+
| Country | Estimated Gun Count |
+----------+-----------------------+
| USA | Over 390 million |
| India | Over 70 million |
| China | Around 50 million |
| Pakistan | Over 20 million |
| Russia | Over 15 million |
| Brazil | Over 15 million |
- Retrieves the name of the currently checked-out branch:
git rev-parse --abbrev-ref HEAD
- The
HEAD
keyword refers to the currently active commit - The param
--abbrev-ref
ensures that only the branch name (without the "refs/heads/" prefix) is returned. - Use the
$(...)
syntax to execute shell commands within the command line.$(...)
is called command substitution in Bash. - This allows the output of the
git rev-parse
command to be used as an argument togit push origin
. - Push the current branch to the remote named "origin":
git push origin $(git rev-parse --abbrev-ref HEAD)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function calculateAdditionalStocks(initialStocks, initialPrice, currentPrice, targetPrice) { | |
const initialInvestment = initialStocks * initialPrice; | |
const currentHoldingValue = initialStocks * currentPrice; | |
const loss = initialInvestment - currentHoldingValue; | |
const additionalInvestmentNeeded = initialInvestment - targetPrice * initialStocks; | |
const additionalStocks = Math.ceil(additionalInvestmentNeeded / currentPrice); | |
return additionalStocks; | |
} |
NewerOlder