Skip to content

Instantly share code, notes, and snippets.

Aditya Tannu AdySan

Block or report user

Report or block AdySan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AdySan
AdySan / arduino_digispark.sh
Created Aug 13, 2015
Fix Arduino 1.6.5 to work with Digispark
View arduino_digispark.sh
chmod +x /Users/maurizio_bollini/Library/Arduino15/packages/digistump/tools/micronucleus/2.0a4/launcher
chmod +x /Users/maurizio_bollini/Library/Arduino15/packages/digistump/tools/micronucleus/2.0a4/micronucleus
@AdySan
AdySan / HALP.lua
Created Sep 6, 2015
Recover NodeMCU when ini.lua is pointing to a buggy script
View HALP.lua
file.open("init.lua","w")
file.writeline([[print("Hello, do this at the beginning.")]])
file.writeline([[wifi.setmode(wifi.STATION)]])
file.writeline([[wifi.sta.config("AdyShan","aditya1tannu2")]])
file.close()
node.restart()
@AdySan
AdySan / Digispark_NeoPixel_NightLight.ino
Last active Feb 1, 2016
A simple 6 NeoPixel nightlight using a digispark and IKEA SOLVINDEN
View Digispark_NeoPixel_NightLight.ino
#include <Adafruit_NeoPixel.h>
//#ifdef __AVR__
#include <avr/power.h>
//#endif
#define PIN 1
Adafruit_NeoPixel strip = Adafruit_NeoPixel(9, PIN, NEO_GRB + NEO_KHZ800);
unsigned long long previousMillis = 0;
@AdySan
AdySan / smallcam.user.js
Created Aug 1, 2016 — forked from jrr/smallcam.user.js
Nest Cam Enhancements
View smallcam.user.js
// ==UserScript==
// @name Nest Cam Smallerizer
// @namespace https://github.com/jrr
// @version 0.2
// @description make camera more usable in small windows
// @author jrr
// @match https://home.nest.com/camera/*
// @match https://home.nest.com/home/*
// @grant none
// ==/UserScript==
View Yi camera file system
crw-rw---- 1 root root 10, 54 Dec 31 1969 acodec
crw-rw---- 1 root root 10, 50 Dec 31 1969 adec
crw-rw---- 1 root root 10, 51 Dec 31 1969 aenc
crw-rw---- 1 root root 10, 53 Dec 31 1969 ai
crw-rw---- 1 root root 10, 63 Dec 31 1969 alarm
crw-rw---- 1 root root 10, 52 Dec 31 1969 ao
crw-rw---- 1 root root 5, 1 May 30 12:53 console
crw-rw---- 1 root root 10, 59 Dec 31 1969 cpld_periph
crw-rw---- 1 root root 10, 62 Dec 31 1969 cpu_dma_latency
crw-rw---- 1 root root 1, 7 Dec 31 1969 full
@AdySan
AdySan / Home Network Topology
Last active Jun 13, 2017
Proposal for new home netwrok setup with Moca 2.0 and UniFi
View Home Network Topology
+-------------+
| |
| UNIFI | +------+
TIME WARNER +--------------+ | AC-LITE | | WiFi |
CABLE +------------> MOCA 2.0 | | BEDROOM 1 | | IP |
BEDROOM 1 | +--+ | | | CAM |
| | | | | | |
+--------------+ | +------^------+ +---^--+
| |
+-+-----------+--+
@AdySan
AdySan / live.json
Created Jun 25, 2017
hacked config for supporting aac audio on Restreamer
View live.json
{
"name": "live",
"jsondb": "db/v1",
"auth": {
"username": "admin",
"password": "datarhei"
},
"ffmpeg": {
"options": {
"native_h264": [
@AdySan
AdySan / .bash_profile
Created Jun 29, 2017 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@AdySan
AdySan / FiberOpticLamp.ino
Created Jan 14, 2016
Philips Hue Clone using ESP8266
View FiberOpticLamp.ino
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN D8
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800);
@AdySan
AdySan / usbmic.py
Created Jun 29, 2018
this works on Raspberry Pi
View usbmic.py
#!/usr/bin/env python3
import pyaudio
import wave
CHUNK = 512
FORMAT = pyaudio.paInt16 #paInt8
CHANNELS = 1
RATE = 44100 #sample rate
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "pyaudio-output.wav"
You can’t perform that action at this time.