Skip to content

Instantly share code, notes, and snippets.

View Jaganpro's full-sized avatar

Jag Valaiyapathy Jaganpro

View GitHub Profile
@Jaganpro
Jaganpro / osx-for-hackers.sh
Created July 26, 2025 15:18 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@Jaganpro
Jaganpro / bash-cheatsheet.sh
Created July 26, 2025 15:17 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@Jaganpro
Jaganpro / osx_setup.md
Created July 26, 2025 15:17 — forked from millermedeiros/osx_setup.md
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@Jaganpro
Jaganpro / sfpublicgroups.py
Created November 26, 2023 19:38 — forked from harperbrett/sfpublicgroups.py
Query Salesforce Public Groups and Their Users with Python
from simple_salesforce import Salesforce
import pandas as pd
sf = Salesforce(username="yourSFusername",password="youSFpassword", security_token="yourSFsecuritytoken")
Group_Members = sf.query_all("Select GroupId,UserOrGroupId from GroupMember")
Active_Users = sf.query_all("Select Username,Name,Id from User where isActive = True")
Groups = sf.query_all("Select Id,Name,Type from Group")
Group_Members_DF = pd.DataFrame(Group_Members['records'])
Users_DF = pd.DataFrame(Active_Users['records'])
@Jaganpro
Jaganpro / sfdxsimplesalesforcelogon.py
Created November 26, 2023 19:38 — forked from harperbrett/sfdxsimplesalesforcelogon.py
Auth to Salesforce using sfdx and simple-salesforce
import subprocess
import json
from simple_salesforce import Salesforce
sfdx_cmd = subprocess.Popen('sfdx force:org:display --targetusername brett --json',shell=True,stdout=subprocess.PIPE)
sfdx_info = json.loads(sfdx_cmd.communicate()[0])
access_token = sfdx_info['result']['accessToken']
instance_url = sfdx_info['result']['instanceUrl']
@Jaganpro
Jaganpro / covid-stats.js
Created September 19, 2020 14:18
Scriptable App Scripts
// change "COUNTRY" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const COUNTRY = "India"
const API__URL = `https://coronavirus-19-api.herokuapp.com/countries/${COUNTRY}`
const API__REQ = new Request(API__URL)
const API__RES = await API__REQ.loadJSON()
const TEXT__TITLE = { default: `🦠 COVID Statistics for ${COUNTRY}`, smallWidget: "🦠 COVID Stats" }
const TEXT__TOTAL_CASES = "Total Cases"
const TEXT__CASES_TODAY = "Cases Today"
#!/bin/sh
#
# Generate a full package xml using the Salesforce CLI
# Link: https://medium.com/@medben/generate-a-full-package-xml-using-the-salesforce-cli-9e2b4e404569
# Requirements :
# * Salesforce CLI
# * jq
$ cd $HOME
$ curl -OL https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.11.0/pmd-bin-6.11.0.zip
$ unzip pmd-bin-6.11.0.zip
$ alias pmd="$HOME/pmd-bin-6.11.0/bin/run.sh pmd"
$ pmd -d /usr/src -R rulesets/java/quickstart.xml -f text
@Jaganpro
Jaganpro / gist:b109613bd6a85d097b91915db39db1f0
Created January 15, 2019 17:04 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@Jaganpro
Jaganpro / setup.sh
Created November 28, 2018 06:56 — forked from metadaddy/setup.sh
Setup a SalesforceDX scratch org, open an IP range, check we can log in
#! /bin/bash
#
# Requires jq - see https://stedolan.github.io/jq/
#
# Assumes that the following env vars are set:
#
# CLIENT_ID - the client ID for your OAuth 2 app
# JWT_KEY_FILE - path to the private key for creating a JWT
# HUB_USERNAME - authentication username