Skip to content

Instantly share code, notes, and snippets.

View anujdeshpande's full-sized avatar

Anuj Deshpande anujdeshpande

View GitHub Profile
@anujdeshpande
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.
import os, re
from PyPDF2 import PdfFileMerger, PdfFileReader
pages = ['ADS786x',
'ADT7310',
'API-Documentation',
'Analog-to-digital-converter',
'BBIOServer',
'DACx311',
'Digital-IO',

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

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
@anujdeshpande
anujdeshpande / types-of-internet-connected.md
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
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
anujdeshpande / list.md
Last active October 9, 2023 17:03
Indian e-commerce stores for getting electronic components and modules