Skip to content

Instantly share code, notes, and snippets.

View shweshi's full-sized avatar
💭
Coding...

Shashi Prakash Gautam shweshi

💭
Coding...
View GitHub Profile
@shweshi
shweshi / hbd_melody.ino
Created February 28, 2025 14:46
Happy Birthday Melody using ESP32 and Buzzer
const int buzzerPin = 15; // Buzzer connected to GPIO 15
void setup() {
pinMode(buzzerPin, OUTPUT);
}
void loop() {
playHappyBirthday();
delay(2000); // Short pause between loops
}
import json
import csv
import sys
import datetime
import os
def make_reader(in_json):
# Open location history data
@shweshi
shweshi / python-simple-http-server.txt
Created January 27, 2022 17:30
Python Simple HTTP Server
python3 -m http.server 8000
@shweshi
shweshi / web-servers.md
Created November 11, 2021 17:13 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@shweshi
shweshi / filescan.md
Last active July 24, 2020 18:19
Scan files for upload node.js

Install clamav in machine/server

sudo apt-get install clamav

Install clamscan

npm install clamscan

Usages

@shweshi
shweshi / package.json
Created January 8, 2020 17:51 — forked from adamreisnz/package.json
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",