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 / IDM.as
Last active December 16, 2025 18:42
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 / 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"
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 / 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",
@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 / 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 / apache_ab.log
Created June 23, 2016 07:08
Apache AB - Command and Log
$ ab -r -n 500 -c 20 -k -H "Accept-Encoding: gzip, deflate" http://odessatech.0x10.info/ | tee -a ab.log
$ cat ab.log | ccze -A
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking odessatech.0x10.info (be patient)
@mayurah
mayurah / compiler_language_to_image.json
Created May 31, 2016 14:31
Compiler language mapped to respective programming language image Raw
[
{
"id": 1,
"language": "GNU C++11",
"icon": "https://hackerearth.0x10.info/dump/jda/language_icons/cpp.png"
},
{
"id": 2,
"language": "GNU C++",
"icon": "https://hackerearth.0x10.info/dump/jda/language_icons/cpp.png"
@mayurah
mayurah / kvm_cheatsheet.sh
Last active July 30, 2016 08:16
KVM / QEMU Cheatsheet
# List System(s)
virsh -c qemu:///system list
virsh list # List running
virsh list --all # List all
# Open guest VM console
virsh console <instance>
# Control specific instance
virsh start <instance>
# Software defined radio
rtl_fm -f 104M -M wbfm -s 200000 -r 48000 - | aplay -r 48k -f S16_LE
rtl_fm -f 104M -M wbfm -s 170k -A std -l 0 -E deemp -r 44.1k - | aplay -r 44.1k -f S16_LE
rtl_fm -f 106.2M -M fm -s 170k -A std -l 0 -E deemp -r 44.1k | ffmpeg -f s16le -ac 1 -i pipe:0 -acodec libmp3lame -ab 128k -f rtp rtp://127.0.0.1:1234