This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_NeoPixel.h> | |
#define PIN 1 | |
#define STRIPSIZE 80 // Limited by max 256 bytes ram. At 3 bytes/LED you get max ~85 pixels | |
// Parameter 1 = number of pixels in strip | |
// Parameter 2 = pin number (most are valid) | |
// Parameter 3 = pixel type flags, add together as needed: | |
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) | |
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN D4 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#include "SSD1306.h" | |
#define SET_BIT_HIGH(__mem, __x, __y) \ | |
__mem[x + (y >> 3)*128] |= _BV( y - ((y >> 3) << 3) ) | |
static const uint8_t sinustable[ 0x100 ] = { | |
0x80, 0x7d, 0x7a, 0x77, 0x74, 0x70, 0x6d, 0x6a, | |
0x67, 0x64, 0x61, 0x5e, 0x5b, 0x58, 0x55, 0x52, | |
0x4f, 0x4d, 0x4a, 0x47, 0x44, 0x41, 0x3f, 0x3c, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in *.mp4; do | |
duration=$(ffmpeg -i "$f" 2>&1 | grep "Duration"| cut -d ' ' -f 4 | sed s/,//) | |
length=$(echo "$duration" | awk '{ split($1, A, ":"); print 3600*A[1] + 60*A[2] + A[3] }' ) | |
trim_start=0 | |
trim_end=$(echo "$length" - 18 - "$trim_start" | bc) | |
ffmpeg -ss "$trim_start" -i "$f" -c copy -map 0 -t "$trim_end" "${f%.mp4}-trimmed.mp4" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer