Date Voltage
---- -------
4/29/2022 9:49:47 AM 119.5
4/29/2022 10:10:20 AM 123.6
4/29/2022 10:10:26 AM 120.7
4/29/2022 11:10:49 AM 113.9
4/29/2022 11:10:55 AM 119.5
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
| // Approach Example.nolol | |
| // PID settings | |
| start> | |
| KP=0.3 //Some value you need to come up (see tuning section below) | |
| KI=0.01 //Some value you need to come up (see tuning section below), not always needed leave at 1 if not used | |
| KD=4 //Some value you need to come up (see tuning section below), not always needed leave at 1 if not used | |
| bias=0 | |
| desired_value=10 // Set to what you want your desired value to be, AKA Set Point | |
| IterationTime=0.2*2 // 0.2*number of line in compiled yolol code |
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
| #Requires -Version 5 | |
| # License: MIT | |
| class PID { | |
| # Adapted to PowerShell from: https://github.com/tommallama/CSharp-PID/blob/master/PID_Controller/PID.cs | |
| #region Public Variables | |
| # Upper output limit of the controller. | |
| # This should obviously be a numerically greater value than the lower output limit. |
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
| #!/usr/bin/env bash | |
| # Check if user is root | |
| if [ "$(id -u)" -ne 0 ]; then | |
| echo "Please run as root" | |
| exit | |
| fi | |
| Use_Package_Manager=0 | |
| Help_Message=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
| #!/usr/bin/pwsh | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter()] | |
| [string] | |
| $ReleaseName = "focal", | |
| [Parameter()] | |
| [string] | |
| $Architecture = "amd64", | |
| [Parameter()] |
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
| #Requires -Version 7 | |
| # Deletes all posts from $LogFile | |
| [CmdletBinding()] | |
| param ( | |
| # Log file of all requests | |
| [string] | |
| $LogFile = "C:\temp\pictshare_posts.json" | |
| ) |
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
| function Get-PolicyDefinition { | |
| [CmdletBinding( | |
| ConfirmImpact = 'None', | |
| RemotingCapability = [System.Management.Automation.RemotingCapability]::PowerShell | |
| )] | |
| [OutputType([PSObject[]])] | |
| param( | |
| [Parameter(Mandatory = $false)] | |
| [string[]] | |
| $Name, |
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
| #Requires -Version 2.0 | |
| <# | |
| .SYNOPSIS | |
| Returns the version of PowerShell installed and updates a custom field in NinjaRMM | |
| .DESCRIPTION | |
| Returns the version of PowerShell installed and updates a custom field in NinjaRMM if the Ninja Agent is installed. | |
| .PARAMETER CustomField | |
| Sets what custom field to update. | |
| Defaults to "PowerShell" if not used. |
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
| $ErrorActionPreference = 'SilentlyContinue' | |
| #Region Settings | |
| # IP address of our server | |
| $IpAddress = "127.0.0.1" | |
| # The public key for our server | |
| $PublicKeyString = "12345678" | |
| # The temporary folder where we will store and run the installer | |
| $TempFolder = "C:\Temp\" | |
| #EndRegion Settings |
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
| class IP { | |
| IP([string]$Address) { | |
| $this._IPAddress = $Address | |
| } | |
| hidden [Version] $_IPAddress = $($this | Add-Member ScriptProperty 'Address' { | |
| # get | |
| [PSCustomObject]@{ | |
| First = $this._IPAddress.Major | |
| Second = $this._IPAddress.Minor | |
| Third = $this._IPAddress.Build |