This file contains hidden or 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
// ARDUINO as ASYNCHRONOUS PULSE COUNTER | |
// | |
// Pulses are counted asynchronously using Timer1 circuit as counter. Interrupt is | |
// triggered once counter reaches the set level. | |
// | |
// Pulse source should be connected to pin D5 (alternative function T1 - Timer1) | |
// Make sure to install pull-down resitor on pulse input pin to avoid ghost inputs. | |
// Also make sure to debounce pulse source, e.g. in case of using mechanical button | |
// | |
// For more information see ATmega328P DataSheet section 15. 16-bit Timer1/Counter with PWM |
This file contains hidden or 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
<# | |
This is a simple script does delta backup of specified folders and uploads | |
them to Amazon S3 bucket. | |
Prerequisites | |
============= | |
1) installed 7zip archiver (https://www.7-zip.org/) | |
Installation | |
============ |
This file contains hidden or 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
@echo off | |
rem set following to point to addr2line executable | |
set addr2linecmd=xtensa-lx106-elf-addr2line.exe | |
rem set following to point to executable you would like to debug | |
rem executable has to be compiled with -ggdb option in order to include debug info | |
set exename=c:\.......\.pioenvs\nodemcu\firmware.elf | |
rem set following to point to filecontaining stacktrace - only addresses | |
set stacktracefile=stack.txt | |
for /F "tokens=2,3,4,5" %%i in (%stacktracefile%) do ( |
This file contains hidden or 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
/* | |
* Simple sketch controlling RGB LED panel 32x16 scan rate 1/8 | |
* Panel needs to be continuosly redrawn in order to power LEDs. | |
* | |
* Pins: | |
* R1,R2 - red led for upper & lower half | |
* G1,G2 - green led for upper & lower half | |
* B1,B2 - blue led for upper & lower half | |
* | |
* A,B,C - row selector = 2^3 = 8 rows (upper & lower halves x 8 = 16 rows) |
This file contains hidden or 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
param ( | |
# if parameter "-i" Input Path was not specified, folder from which script has been invoked will be used | |
[string]$i = "#", | |
# if parameter "-f" Include File was not specified, all files/folders will be processed | |
[string]$f = "#", | |
# parameter "-o" Output Folder is required | |
[string]$o = "#", | |
# parameter "-a" specifying archiver command | |
[string]$a = 'c:\Program Files\7-zip\7z.exe' | |
) |
This file contains hidden or 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
## PAGE SPECIFIC DECORATOR | |
## Here the context is the page. Modes are 'view', 'edit', 'edit-preview', 'view-information', and 'view-attachments'. | |
#set ($helper = $params.get("helper")) | |
#set ($mode = $params.get("mode")) | |
#set ($context = $params.get("context")) | |
#set ($confPage = $helper.page) | |
#infoPanelInitFromParams() | |
## GENERAL PAGE DECORATING BEGINS |
This file contains hidden or 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 | |
############################################### | |
# | |
# Script creates system user account, configures it for SSH access | |
# and gives it "root" access via SUDO. | |
# Intention is to pass it as "user-data" to Amazon AWS instance, which will | |
# execute it during its start-up. | |
# | |
# Copyright (c) 2010 by Jozef Sovcik, http://www.vanilladesk.com | |
# Feel free to modify it as necessary. |
This file contains hidden or 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 | |
############################################### | |
# | |
# Script for switching identities while working with Amazon AWS. | |
# Sets environment variables used by AWS tools. | |
# | |
# Copyright (c) 2010 by Jozef Sovcik, http://www.vanilladesk.com | |
# | |
#--------------------------------------------- | |
# How to use: |