Skip to content

Instantly share code, notes, and snippets.

View ohri-anurag's full-sized avatar
🏠
Working from home

Anurag Ohri ohri-anurag

🏠
Working from home
View GitHub Profile
@ohri-anurag
ohri-anurag / settings.json
Last active October 2, 2023 09:38
VSCode settings.json
{
"workbench.iconTheme": "material-icon-theme",
"workbench.editor.enablePreview": false,
"editor.fontFamily": "hasklig",
"editor.fontSize": 16,
"git.confirmSync": false,
"editor.renderWhitespace": "all",
"editor.fontLigatures": "'ccmp' off",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
@ohri-anurag
ohri-anurag / netsuite.sh
Last active July 14, 2025 11:30
Shell script for NetSuite SOAP requests
source .env.NetsuiteStaging
soap () {
timestamp=$(date -u +%s)
nonce=$(openssl rand -hex 8)
baseString="${ACCOUNT}&${CONSUMER_KEY}&${TOKEN_ID}&${nonce}&${timestamp}"
key="${CONSUMER_SECRET}&${TOKEN_SECRET}"
signature=$(echo -n $baseString | openssl sha-256 -binary -hmac $key | base64)
accountInUrl=$(echo $ACCOUNT | sed s/_/-/ )
input=$(echo $1 | cut -d. -f1)