Skip to content

Instantly share code, notes, and snippets.

@todbot
todbot / blink1-tool-custom-flashing.md
Last active April 24, 2018 08:49
Using blink1-tool to make a blink(1) customized flashing pattern

Create the pattern with a custom color:

This pattern has only two lines: a color and off.
The result if played on repeat is a flashing.

echo "making pattern"
blink1-tool -m 500 --rgb ff00ff --setpattline 0
blink1-tool -m 500 --rgb 000000 --setpattline 1

Try it out, make sure to only play those two lines

The --play commands takes three args: play/stop (1/0), start position, end position.

@jhaddix
jhaddix / Testing_Checklist.md
Last active April 12, 2025 15:04 — forked from amotmot/WAHH_Task_Checklist.md
Fast Simple Appsec Testing Checklist
@atuline
atuline / time_sawtooth.ino
Last active April 24, 2018 08:51
Time_Sawtooth
/* Time_Sawtooth
*
* By: Andrew Tuline
*
* Date: February, 2018
*
* Creating a sawtooth pattern using millis and bpm.
*
*
*/
/* Simple dot
*
* By: Andrew Tuline
*
* Date: July, 2015
*
* Similar to dots by John Burroughs, but uses the FastLED beatsin8() function instead.
*
*/
@projetsdiy
projetsdiy / micropython i2c scanner
Last active May 3, 2024 19:45
Micropython i2c scanner
# Scanner i2c en MicroPython | MicroPython i2c scanner
# Renvoi l'adresse en decimal et hexa de chaque device connecte sur le bus i2c
# Return decimal and hexa adress of each i2c device
# https://projetsdiy.fr - https://diyprojects.io (dec. 2017)
import machine
i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4))
print('Scan i2c bus...')
devices = i2c.scan()
/* Anmimation speed test program for FastLED.
*
* By: Andrew Tuline
*
* Date: October, 2017
*
* Problem:
*
* When you write a display routine, the performance of that routine may change as you add other elements to your program. How do we keep that display consistent?
*
@atuline
atuline / Fire2012WithAllPalettes
Created September 11, 2017 23:39
Mark Kriegsman's Fire2012WithPalettes has been modified to support multiple HSV's.
/* fire2012withhuepalettes
By: Mark Kriegsman
Modified by: Andrew Tuline
Date: July, 2015
This is fire2012withpalette that's been modifed to create hue based fire palettes.
@TheRemote
TheRemote / measurepi.sh
Last active November 29, 2024 12:31
Measure Raspberry Pi CPU / GPU / Core / SD clock speeds and check whether you are undervolted
#!/bin/bash
# This bash script outputs the status of your Pi and checks whether you are being throttled for undervoltage and gives you your temperature
# Article and discussion at https://jamesachambers.com/measure-raspberry-pi-undervoltage-true-clock-speeds/
# Author James A Chambers 6-6-17
# Output current configuration
vcgencmd get_config int | egrep "(arm|core|gpu|sdram)_freq|over_volt"
# Measure clock speeds
for src in arm core h264 isp v3d; do echo -e "$src:\t$(vcgencmd measure_clock $src)"; done
@atuline
atuline / inoise8_mover_array
Last active October 1, 2023 07:44
Using FastLED noise function to move pixels.
/* inoise8_mover_array
*
* By: Andrew Tuline
*
* Date: March, 2017
*
* We've used sine waves and counting to move pixels around a strand. In this case, I'm using FastLED Noise to move an array of pixels up and down the strand.
*
* The advantage is that it provides random natural movement without requiring lots of fancy math.
*
@rambabusaravanan
rambabusaravanan / detect-js-framework.js
Last active March 7, 2025 20:19
Detect JS Framework used in a Website
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I)
if(!!window.React ||
!!document.querySelector('[data-reactroot], [data-reactid]') ||
Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer')))
)
console.log('React.js');
if(!!document.querySelector('script[id=__NEXT_DATA__]'))
console.log('Next.js');