Skip to content

Instantly share code, notes, and snippets.

@manosv
manosv / .bashrc
Created Apr 29, 2020 — forked from 21isenough/.bashrc
Broadcast raw hex transaction over blockstreams TOR API
View .bashrc
TorThisTx() {
# Rename "TorThisTx() to whatever you want the command to be
# Broadcast raw hex transaction over blockstreams TOR API with curl
curl --socks5-hostname localhost:9050 -d $1 -X POST http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/tx
}
@manosv
manosv / mqtt_example.c
Created Oct 1, 2017 — forked from evgeny-boger/mqtt_example.c
libmosquitto MQTT example
View mqtt_example.c
#include <signal.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <mosquitto.h>
#define mqtt_host "localhost"
#define mqtt_port 1883
@manosv
manosv / mqtt_example.c
Created Oct 1, 2017 — forked from evgeny-boger/mqtt_example.c
libmosquitto MQTT example
View mqtt_example.c
#include <signal.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <mosquitto.h>
#define mqtt_host "localhost"
#define mqtt_port 1883
@manosv
manosv / YTChanViewCounter.ino
Created Jun 26, 2017 — forked from PhirePhly/YTChanViewCounter.ino
YouTube API to MAX7219 display Widget
View YTChanViewCounter.ino
// YouTube Channel View Counter
// Kenneth Finnegan, 2017
//
// Given a WiFi SSID + password, and YouTube API key + channel ID, displays the
// current total views count on an attached MAX7219 eight digit display
#include <YoutubeApi.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
View Windows and Office ISO Download Links
@manosv
manosv / ColorWavesWithPalettes.ino
Created Dec 17, 2016 — forked from kriegsman/ColorWavesWithPalettes.ino
ColorWavesWithPalettes - demo of using cpt-city palettes in FastLED code
View ColorWavesWithPalettes.ino
#include "FastLED.h"
// ColorWavesWithPalettes
// Animated shifting color waves, with several cross-fading color palettes.
// by Mark Kriegsman, August 2015
//
// Color palettes courtesy of cpt-city and its contributors:
// http://soliton.vm.bytemark.co.uk/pub/cpt-city/
//
// Color palettes converted for FastLED using "PaletteKnife" v1:
View gist:1da595c94d5a508273a8c567410d6612
const char firmware_name[] = "ESP_OTA_Button";
const char firmware_version[] = "0.0.3";
const char source_filename[] = __FILE__;
const char compile_date[] = __DATE__ " " __TIME__;
// WIFI, WIFI configuration and OTA
#include <ESP8266httpUpdate.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
View Tiny_Tachometer.c
/*******************************************************************************
TINY TACHOMETER
TACOMETRO C/ PIC12F675 E LCD (M�TODO LPLEX - 3 FIOS)
METODO: LEITURA DO PERIODO
View NeoPixel Ripple
#include <Adafruit_NeoPixel.h>
#define PIN 2
#define Pixels 24
#define BG 1
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino 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)
View NeoPixel Color Twinkle
#include <Adafruit_NeoPixel.h>
#define PIN 2
#define Pixels 25
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino 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)