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
| const int LEDPin1 = 10; //red led | |
| const int LEDPin2 = 9; // yellow led | |
| const int LEDPin3 = 8; // green led | |
| const int solenoidPin = 7; | |
| const int buttonPin = 5; | |
| bool started = false; | |
| void setup() { | |
| Serial.begin(9600); // Start serial communication |
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 ROBOCOPY backup script written by Todd DeBlieck | |
| # Date: 1/31/2020 | |
| # Version: 0.1 1/31/2020 | |
| $user = [Environment]::UserName | |
| Write-Host -ForegroundColor DarkCyan "File Migration Utility in PowerShell by Todd DeBlieck" | |
| Write-Host "Hello" $user "Today is" (Get-Date).tostring("MM-dd-yy") "lets get started :)" | |
| Write-Host -ForegroundColor Cyan "Initiating....." | |
| Add-Type -AssemblyName System.Windows.Forms |
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
| import requests | |
| import csv | |
| url = "{yoururl/}" | |
| #obtain files from CSV | |
| with open('archived_files.csv') as csvfile: | |
| readCSV = csv.reader(csvfile) | |
| for row in readCSV: | |
| filename = row[0] |
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
| import requests | |
| import csv | |
| url = "https://s3.amazonaws.com/files.leagueathletics.com/Images/Club/22395/" | |
| chunk_size = 1024 | |
| bytes_transferred = 0 | |
| with open('archived_files.csv') as csvfile: | |
| readCSV = csv.reader(csvfile, delimiter=',') | |
| for row in readCSV: | |
| filename = row[0] |
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
| if ($Host.Version.Major -lt 4) { | |
| $architecture = (Get-WmiObject Win32_OperatingSystem -computername $env:COMPUTERNAME).OSArchitecture | |
| [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
| [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
| $objForm = New-Object System.Windows.Forms.Form | |
| $objForm.Text = "Data Entry Form" | |
| $objForm.Size = New-Object System.Drawing.Size(400,300) | |
| $objForm.StartPosition = "CenterScreen" |