Skip to content

Instantly share code, notes, and snippets.

@AdySan
AdySan / .bash_profile
Created June 29, 2017 02:08 — forked from natelandau/.bash_profile
Mac OSX 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 / live.json
Created June 25, 2017 06:50
hacked config for supporting aac audio on Restreamer
{
"name": "live",
"jsondb": "db/v1",
"auth": {
"username": "admin",
"password": "datarhei"
},
"ffmpeg": {
"options": {
"native_h264": [
@AdySan
AdySan / Home Network Topology
Last active June 13, 2017 19:28
Proposal for new home netwrok setup with Moca 2.0 and UniFi
+-------------+
| |
| UNIFI | +------+
TIME WARNER +--------------+ | AC-LITE | | WiFi |
CABLE +------------> MOCA 2.0 | | BEDROOM 1 | | IP |
BEDROOM 1 | +--+ | | | CAM |
| | | | | | |
+--------------+ | +------^------+ +---^--+
| |
+-+-----------+--+
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 / smallcam.user.js
Created August 1, 2016 22:53 — forked from jrr/smallcam.user.js
Nest Cam Enhancements
// ==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==
@AdySan
AdySan / Digispark_NeoPixel_NightLight.ino
Last active February 1, 2016 03:25
A simple 6 NeoPixel nightlight using a digispark and IKEA SOLVINDEN
#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 / HALP.lua
Created September 6, 2015 00:26
Recover NodeMCU when ini.lua is pointing to a buggy script
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 / arduino_digispark.sh
Created August 13, 2015 03:30
Fix Arduino 1.6.5 to work with Digispark
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