Skip to content

Instantly share code, notes, and snippets.


Anuj Deshpande anujdeshpande

View GitHub Profile
anujdeshpande /
Last active August 1, 2022 10:09
Indian e-commerce stores for getting electronic components and modules
import json, os
import pprint
# Generated voices.json with `aws polly describe-voices > voices.json`
with open('voices.json') as json_data:
d = json.load(json_data)
with open("a.txt") as f:
content = f.readlines()
# you may also want to remove whitespace characters like `\n` at the end of each line
content = [x.strip() for x in content]
anujdeshpande /
Last active March 15, 2018 16:29
Types of Internet connected devices

Types of Internet connected devices

Medium Examples
Cellular Asset tracking, weather stations
Wi-Fi Lightbulbs,
Ethernet Printers, Card readers

There are so many things I wish I started doing earlier. Just in case I run into a time-travel scenario, here's a list of things -

Developing hardware

  • Better cabling and wire management
  • Don't use single strand wires.
  • Keep a bunch of hardware scripts soldered and ready
  • Using a transistor as switch

Boldport, one of the interwebs better known hardware design guys went on a rant on how prototyping is so very different from production. If you have ever held a solder gun, or intend to, you should read this.

Why did your "hardware startup" Kickstarter fail? Because none of your prototyping skills are required for production. source

Skill Prototyping Production
coding sloppy efficient
View gist:0ddf9d4b7d315c6b818e
import os, re
from PyPDF2 import PdfFileMerger, PdfFileReader
pages = ['ADS786x',
anujdeshpande / README
Created September 26, 2013 07:16
Resize rootfs on Pi
Check your partitions. You should have 3(1, 2 and 5)
fdisk -l /dev/mmcblk0
Time to resize partitions to occupy the complete SD card.
fdisk /dev/mmcblk0
Now delete extended, logical. Create extended, logical.