Skip to content

Instantly share code, notes, and snippets.

@AlexSen
AlexSen / Runbook VM-ShutDown.ps1
Last active October 16, 2018 17:46
Azure PowerShell Runbook script which iterates through Virtual Machines in all Automation Accounts and performs Stop-VM based in case if VM is not active for predefined amount of time
<#
.SYNOPSIS
TBD
.DESCRIPTION
TBD
.URL https://gist.github.com/Forket/39c966cc2576c65e6373721fd345657a
#>
@positron96
positron96 / gist:7269466
Last active July 23, 2023 12:03 — forked from chrismeyersfsu/oscilloscope.c
Supports panning and vertical scaling
/*
* Oscilloscope
* Gives a visual rendering of analog pin 0 in realtime.
*
* This project is part of Accrochages
* See http://accrochages.drone.ws
*
* (c) 2008 Sofian Audry (info@sofianaudry.com)
*
* This program is free software: you can redistribute it and/or modify
@chrismeyersfsu
chrismeyersfsu / oscilloscope.c
Last active January 7, 2024 14:15
Arduino Poor man's oscilloscope processing code
/*
* Oscilloscope
* Gives a visual rendering of analog pin 0 in realtime.
*
* This project is part of Accrochages
* See http://accrochages.drone.ws
*
* (c) 2008 Sofian Audry (info@sofianaudry.com)
*
* This program is free software: you can redistribute it and/or modify
@chrismeyersfsu
chrismeyersfsu / gist:3270358
Created August 6, 2012 04:22
Arduino Poor man's oscilloscope
#define ANALOG_IN 0
void setup() {
Serial.begin(9600);
//Serial.begin(115200);
}
void loop() {
int val = analogRead(ANALOG_IN);
Serial.write( 0xff );