Skip to content

Instantly share code, notes, and snippets.

View mayurah's full-sized avatar
🏔️
grooming next generation of leaders and problem solvers!

Mayur Pipaliya mayurah

🏔️
grooming next generation of leaders and problem solvers!
View GitHub Profile
@mayurah
mayurah / countries.json
Created July 20, 2016 10:04
A list of countries and country code in JSON Raw
[
{"name": "Afghanistan", "code": "AF"},
{"name": "Åland Islands", "code": "AX"},
{"name": "Albania", "code": "AL"},
{"name": "Algeria", "code": "DZ"},
{"name": "American Samoa", "code": "AS"},
{"name": "AndorrA", "code": "AD"},
{"name": "Angola", "code": "AO"},
{"name": "Anguilla", "code": "AI"},
{"name": "Antarctica", "code": "AQ"},
@mayurah
mayurah / IOT Devices.csv
Last active August 5, 2016 14:32
List of IOT, electronics devices for projects
id Internet Of Things — Components
1 Tower Pro SG90 Mini 9g Gear Micro Digital Servo Motor for microcontrollers KG113
2 Stepper Motor
3 Raspberry Pi Kit (Pi; Cable; Card; Adapter)
4 Arduino Uno Kit (USB A B Cable)
5 16x2 LCD
6 Soldering Kit (Iron; Flux; tweezer; stand; wire cutter; rosin core)
7 Misc. Wires
8 Dupont Jumper Wire (M2M; M2F)
9 Channel RF (Module with Switch)
@mayurah
mayurah / languages.json
Created September 1, 2016 08:31
list of programming languages and some framework in JSON
["A# .NET","A# (Axiom)","A-0 System","A+","A++","ABAP","ABC","ABC ALGOL","ABLE","ABSET","ABSYS","ACC","Accent","Ace DASL","ACL2","ACT-III","Action!","ActionScript","Ada","Adenine","Agda","Agilent VEE","Agora","AIMMS","Alef","ALF","ALGOL 58","ALGOL 60","ALGOL 68","ALGOL W","Alice","Alma-0","AmbientTalk","Amiga E","AMOS","AMPL","APL","App Inventor for Android's visual block language","AppleScript","Arc","ARexx","Argus","AspectJ","Assembly language","ATS","Ateji PX","AutoHotkey","Autocoder","AutoIt","AutoLISP / Visual LISP","Averest","AWK","Axum","B","Babbage","Bash","BASIC","bc","BCPL","BeanShell","Batch (Windows/Dos)","Bertrand","BETA","Bigwig","Bistro","BitC","BLISS","Blue","Bon","Boo","Boomerang","Bourne shell","bash","ksh","BREW","BPEL","C","C--","C++","C#","C/AL","Caché ObjectScript","C Shell","Caml","Candle","Cayenne","CDuce","Cecil","Cel","Cesil","Ceylon","CFEngine","CFML","Cg","Ch","Chapel","CHAIN","Charity","Charm","Chef","CHILL","CHIP-8","chomski","ChucK","CICS","Cilk","CL","Claire","Clarion","Clean",
This file has been truncated, but you can view the full file.
{"China":["Guangzhou","Fuzhou","Beijing","Baotou","Hohhot","Guiyang","Yinchuan","Nanjing","Changzhou","Chuzhou","Hefei","Jinan","Qingdao","Harbin","Zhaodong","Taiyuan","Xi'an","Xianyang","Shenzhen","Nanning","Zhengzhou","Xinxiang","Luohe","Luoyang","Chaoyang","Xingyi","Foshan","Haikou","Chengdu","Dongguan","Mingzhou","Chongqing","Zhuhai","Kunming","Wuhan","Xiling","Huizhou","Jiangmen","Shantou","Changxiacun","Zhongshan","Lhasa","Nanchang","Tianjin","Shanghai","Hebei","Shijiazhuang","Quanzhou","Putian","Xiamen","Chengyang","Zhangzhou","Sanming","Nanping","Baoding","Langfang","Yantai","Binzhou","Lanzhou","Yueqing","Zhongxin","Zhoushan","Hangzhou","Ningbo","Wenzhou","Changchun","Fuyang","Jieshou","Anqing","Wuhu","Shishi","Shishi","Weitang","Shenyang","Changsha","Yongjiawan","Lengshuijiang","Shijiazhuang","Xuchang","Suzhou","Xuzhou","Taizhou","Nanyang","Xinhua","Ürümqi","Yan'an Beilu","Baotao","Macao","Wuxi","Yangzhou","Baiyin","Tongren","Kunshan","Zhangjiagang","Jiangyin","Zhenjiang","Zhoukou","Anyang","Dalian
@mayurah
mayurah / dhl-dsl.json
Created February 9, 2017 06:42
DHL - domain specific language
{
"statue_messages": [
"The instruction data for this shipment have been provided by the sender to DHL electronically",
"The shipment has been processed in the parcel center",
"The international shipment has been processed in the parcel center of origin",
"The international shipment has been processed in the export parcel center",
"The shipment will be transported to the destination country and, from there, handed over to the delivery organization. ",
"The shipment has arrived in the destination country",
"The shipment is being prepared for delivery in the delivery depot",
"The shipment has been successfully delivered"
@mayurah
mayurah / IDM.as
Last active August 22, 2025 10:22
Internet Download Manager / Ubuntu / Wine - Raw Instructions to make it work!
To make good old Internet Download Manager (IDM) work in Linux mint / Ubuntu!
# Declaration: I totally support open source and have tried aria2, and axel; also I am frequent user and admirer of wget, curl and lynx; but the download throughput provided by IDM is unmatched for some odd reasons, specifically it performs better than other clients in mid-to-high latency networks, who knows, may be short time-outs on each connectionns or magic wand.
Some CLI examples if someone would wish to try those and compare throughput of each at 8 connections to get benchmark against IDM!
- $ aria2c --file-allocation=none -c -x 8 -s 8 -d "./location/to/downloads/" http://cachefly.cachefly.net/100mb.test
- $ axel -n 8 http://cachefly.cachefly.net/100mb.test
Below two does not suppot multi-threaded, and are made for other greater purpose :)
@mayurah
mayurah / brew-log.sh
Last active September 18, 2018 18:11
brew-log.sh
#!/bin/bash
echo List of CLI tools / packages installed through brew
echo
echo Command Line Shell For SQLite
brew install sqlite
echo Good part of this cow is that it yields informative messages if used with tweaks
brew install cowsay
echo Usage:
@mayurah
mayurah / blogger-to-shopify.js
Last active March 26, 2017 23:09
blogspot to shopify redirect (javascript way)
// Tested on friend Dr Raley's website
// Old (Google Blogger / Blogspot): http://cecileraleydesigns.blogspot.com/
// New (Shopify): https://www.cecileraleydesigns.com/blogs/cecile-raley-designs/
// Note: This simple JS only redirects blog (containing month/day) and not home page, or dedicated pages.
var newBlog = "https://www.your-website.com/blogs/blog-name/";
var current_blogspot_slug = document.baseURI.split("/")[5].split(".")[0];
if( document.baseURI.split("/")[3] % 1 === 0 ) if( document.baseURI.split("/")[4] % 1 === 0 ) {
console.log("true - let's redirect to new home");
@mayurah
mayurah / dns.as
Created March 29, 2017 19:14
DNS
# Google DNS
8.8.8.8
8.8.4.4
# OpenDNS
Preferred DNS Server: 208.67.222.123
Alternate DNS Server: 208.67.220.123
# Security
Preferred DNS Server: 198.153.192.40
@mayurah
mayurah / gpg.commands
Created March 31, 2017 03:51
GPG Cheatsheet / PGP Encryption
# Brew Software
brew install gpg
# GNU PG Config Directory
ls -lah ~/.gnupg
# In case of stdout/tty password input issue / keybase issue
export GPG_TTY=`tty`
# Generate new key