Skip to content

Instantly share code, notes, and snippets.

View satheshshiva's full-sized avatar
💻
coding rn..

Sathesh Sivashanmugam satheshshiva

💻
coding rn..
View GitHub Profile
EXTRACTED_LOCATION=./extracted
TMP=tmp
TOOLS_LOC=<<Android_SDK_LOC>>/Android/sdk/build-tools/29.0.3
OP_FILE=~/Desktop/tryThis.apks
rm -rf $OP_FILE
rm -rf $TMP && mkdir $TMP
echo Copying everything to $TMP folder..
@satheshshiva
satheshshiva / BBStrategy.pinescript
Created February 3, 2022 05:50
My Tradingview strategies
//@version=5
strategy("BB strategy Production", overlay=true, initial_capital=100, commission_type=strategy.commission.percent, commission_value=0.04)
// truncate() truncates a given number
// to a certain number of decimals
truncate(number, decimals) =>
factor = math.pow(10, decimals)
int(number * factor) / factor
_close = close
@satheshshiva
satheshshiva / prerequest_binance.js
Last active February 3, 2022 05:48
Binance API - Postman prerequest script
// Binance Futures API - Use this Pre request script in postman to generate the signature and timestamp query string parameters.
// The postman collection can be downloaded from https://github.com/binance/binance-api-postman. Please note that this collection requests have signature and timestamp parameters enabled within each request. Disable in the individual request as this script will properly generate these parameters.
const secret = postman.getEnvironmentVariable("binance-api-secret");
const timestamp = Date.now();
let [,params]=request.url.split("?")
params+= "&timestamp="+timestamp.toString()
const signHash = CryptoJS.HmacSHA256(params, secret);
pm.request.addQueryParams({
@satheshshiva
satheshshiva / prerequest_kucoin.js
Last active January 19, 2022 11:39
Kucoin API - Prerequest script for Postman
// Use this to sign postman requests to the KuCoin API
// The following environmental variables should be set in postman, API_KEY, KUCOIN_URL, PASSPHRASE, API_SECRET
// The requests needs to have the URL like in the example, {{KUCOIN_URL}}/api/v1/sub/user. "{{KUCOIN_URL}}" as-is.
// Kucoin API Key version 2. For version 1, you need to pass plain text of the passphraseHash instead of hash
const apiKey = postman.getEnvironmentVariable("API_KEY");
const secret = postman.getEnvironmentVariable("API_SECRET");
const passphrase = postman.getEnvironmentVariable("PASSPHRASE");
const url = postman.getEnvironmentVariable("KUCOIN_URL");
@satheshshiva
satheshshiva / terminal-colors.md
Last active January 9, 2024 05:26
install colorful terminal using zsh

Colorize terminal with auto suggestions using zshell and p10k

Install Zsh shell

sudo apt install zsh (Linux)

Mac- Mac comes default with zsh. No need to install seperately

Set zsh as default:

chsh -s /usr/local/bin/zsh