Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View therahulprasad's full-sized avatar
😀

Rahul Prasad therahulprasad

😀
View GitHub Profile
@therahulprasad
therahulprasad / decompile-jar.sh
Last active January 9, 2019 05:45
Java Reverse Engineering
# Find java-decompiler.jar is generally found in AndrouidStudio/Plugins folder
java -cp /path/of/java-decompiler.jar org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -hdc=0 -dgs=1 -rsy=1 -rbr=1 -lit=1 -nls=1 -mpm=60 /path/of/jar/to/be/decompiled.jar /path/of/folder/where/decompiled/jar/will/be/placed/
# Recompress extracted aar into an aar file
jar cvf new-aar-filename.aar -C old-decompressed-aar-folder/ .
@therahulprasad
therahulprasad / find-pull-request.sh
Last active September 13, 2018 15:01
Script for finding PR to a specific branch using terminal
curl -s -u "{username}" "https://api.github.com/repos/{user}/{repo}/pulls?per_page=100&state=all" > /tmp/tmp.json && cat /tmp/tmp.json | jq '.[] | select(.base.ref=="{base_branch}") | .html_url' ### Replace `.html_url` with `keys` to check all available keys
@therahulprasad
therahulprasad / ba.vigyaapan.init.js
Created November 9, 2017 08:35
Bobble Keyboard Vugyaapan Pixel Initialization
(function(b,o,bb,l,e,a,pp){b["BobbleVigyaapanObject"]=e;b[e]=b[e]||function stub(){(b[e].q=b[e].q||[]).push(arguments)};b[e].t=+new Date;pp=document.createElement(bb);pp.src=l;pp.async=1;a=document.getElementsByTagName(bb)[0];a.insertBefore(pp,a)})(window,document,"script","//assets.bobblekeyboard.org/vigyaapan/vigyaapan.js","ba");
ba("init", "vendor-id"); // Initialization
ba("send", "success", "campaign-id", "product-id1,product-id2"); // On successful conversion; campaign ids and product ids are optional
ba("send", "event-name", "event-value"); // Optional Additional Events or Data to be tracked.
@therahulprasad
therahulprasad / AWSLambdaSimpleSMSandVoice.js
Last active July 18, 2017 07:02 — forked from nickmalcolm/AWSLambdaSimpleVoice.js
AWS Lambda Function to make Voice calls and Send SMS via the Twilio API
// 2016 MIT licence. Nick Malcolm.
// Based on https://gist.github.com/stevebowman/7cff9dd80b227c899728
// Makes a call using Twilio's API.
// Expects the following Lambda environment variables:
// TWILIO_ACCOUNT_SID - your account ID
// TWILIO_AUTH_TOKEN - an auth token generated in the Twilio console e.g. ABCD1234
// TWILIO_FROM_NUMBER - the number you've purchased to make calls from e.g. +14243700000
// We'll call this number
@therahulprasad
therahulprasad / .travis.yml
Created May 29, 2017 15:53
Travis configuration to automatically deploy static website to GCS
language: node_js
node_js:
- '0.11'
- '0.10'
deploy:
provider: gcs
access_key_id: testing
secret_access_key:
secure: lGMykRKlkbgoY+hfq/KxRzXUFM5R56rmmM6uP9D1NCxHeni1IBBRgMy4Q5FoZolxxUn0U7Y9KPi3fR+aTFa1+EeqLLhQJrK/j8rXIO7ilRUbpQWiTOd1yjEZPHptTY6Qr+46DfWd6zaZ755tec7QjdCX3BBsim6pTxelaetniVDEM+kGj7oLPbsnXt32xskxEi4qJLUiAh606jnN7eKk4sm1wToX6i4+QuOCnP4Hs2vgdaxbJkZ5ZUe3DJIfBhUBkvZz/D82QkvoZGN29wVKN6WfluwAwYb0ANmGnHR1kBG347M+u2BCF0MrybDthPsGzU/jTYk5GJaZq+rE7g5lyk/evD5hbTdng/hMROkd/ssGbEjETAoZgVwe5HCdpR8pBDx7cGIm+up7hlc+HjjAqfTev99cg0ztGOuIrBsLJWfWBWTDXlruvgO4/KPp2F0Ye+dtM9FVdLlE0nkl+QHdkWp9EPEzl0KaPPnNMF39dxDKPS6JUTouGAwC9rbNXwmtC5oNEElRZioFKlmknF9toguw/kMcEx/CYcxonZPNDneEG/73OgKiOsNigQ8HQ3Q5L+tLq9BOp/qzfdpHV2y6TMS5nk6AbWc+hdj5cVNdE175g2ZKDkE7j/juib8OTP//1ZIA26HWi4Uf8Iy7YimHGxqzvYhEgwG/JA6sUwTt/dg=
bucket: testing
@therahulprasad
therahulprasad / .travis.yml
Created May 29, 2017 15:48
Travis configuration for auto deployment without testing on GCS
language: node_js
node_js:
- '0.11'
- '0.10'
deploy:
provider: gcs
access_key_id: testing
secret_access_key:
secure: lGMykRKlkbgoY+hfq/KxRzXUFM5R56rmmM6uP9D1NCxHeni1IBBRgMy4Q5FoZolxxUn0U7Y9KPi3fR+aTFa1+EeqLLhQJrK/j8rXIO7ilRUbpQWiTOd1yjEZPHptTY6Qr+46DfWd6zaZ755tec7QjdCX3BBsim6pTxelaetniVDEM+kGj7oLPbsnXt32xskxEi4qJLUiAh606jnN7eKk4sm1wToX6i4+QuOCnP4Hs2vgdaxbJkZ5ZUe3DJIfBhUBkvZz/D82QkvoZGN29wVKN6WfluwAwYb0ANmGnHR1kBG347M+u2BCF0MrybDthPsGzU/jTYk5GJaZq+rE7g5lyk/evD5hbTdng/hMROkd/ssGbEjETAoZgVwe5HCdpR8pBDx7cGIm+up7hlc+HjjAqfTev99cg0ztGOuIrBsLJWfWBWTDXlruvgO4/KPp2F0Ye+dtM9FVdLlE0nkl+QHdkWp9EPEzl0KaPPnNMF39dxDKPS6JUTouGAwC9rbNXwmtC5oNEElRZioFKlmknF9toguw/kMcEx/CYcxonZPNDneEG/73OgKiOsNigQ8HQ3Q5L+tLq9BOp/qzfdpHV2y6TMS5nk6AbWc+hdj5cVNdE175g2ZKDkE7j/juib8OTP//1ZIA26HWi4Uf8Iy7YimHGxqzvYhEgwG/JA6sUwTt/dg=
bucket: testing
@therahulprasad
therahulprasad / .travis.yml
Created May 29, 2017 15:33
Travis test that will always pass
language: node_js
node_js:
- '0.11'
- '0.10'
script: node -v
language: node_js
node_js:
- '0.11'
- '0.10'
@therahulprasad
therahulprasad / gist:fe332cd26e74fea1488b
Created February 19, 2016 14:44
Google Contacts API v3 Javascript sample
<html>
<head>
<script src="https://apis.google.com/js/client.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>
function auth() {
var config = {
'client_id': 'OAUTH_CLIENT_ID',
'scope': 'https://www.google.com/m8/feeds'
};
@therahulprasad
therahulprasad / countries.sql
Created February 18, 2016 14:48 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;