This file contains 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
{ | |
"Id": "5fc03a6a-8713-4b95-8e5a-38eeb00d4248", | |
"Name": "Octopus - Log OctopusParameters", | |
"Description": "Writes the $OctopusParameters Dictionary to the Log.\nFor debugging purposes.", | |
"ActionType": "Octopus.Script", | |
"Version": 1, | |
"Author": "https://github.com/ByronScottJones", | |
"Properties": { | |
"Octopus.Action.RunOnServer": "true", | |
"Octopus.Action.Script.ScriptSource": "Inline", |
This file contains 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
#Run the following commands on server: | |
Enable-PSRemoting | |
Enable-WSManCredSSP -Role server | |
Enable-NetFirewallRule -DisplayGroup “Windows Remote Management” | |
Enable-NetFirewallRule -DisplayGroup “Remote Event Log Management” | |
Enable-NetFirewallRule -DisplayGroup “Remote Volume Management” | |
Set-Service VDS -StartupType Automatic | |
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'client_hostname' -Concatenate | |
#Reboot the server (select #12 from Hyper-V Core Menu) |
This file contains 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
Days | Folder | |
---|---|---|
1 | FolderPath |
This file contains 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 3.0 | |
# Configure a Windows host for remote management with Ansible | |
# ----------------------------------------------------------- | |
# | |
# This script checks the current WinRM (PS Remoting) configuration and makes | |
# the necessary changes to allow Ansible to connect, authenticate and | |
# execute PowerShell commands. | |
# | |
# All events are logged to the Windows EventLog, useful for unattended runs. |
This file contains 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
<%@ WebHandler Language="C#" Class="MyNamespace.iCalendar" %> | |
using System; | |
using System.Web; | |
namespace MyNamespace | |
{ | |
public class iCalendar: IHttpHandler | |
{ | |
public bool IsReusable | |
{ |
This file contains 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-DeepClone | |
{ | |
[cmdletbinding()] | |
param( | |
$InputObject | |
) | |
process | |
{ | |
if($InputObject -is [hashtable]) { | |
$clone = @{} |
This file contains 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
#include <TFT_eSPI.h> | |
#include <SPI.h> | |
#include "qrcode.h" | |
TFT_eSPI tft = TFT_eSPI(); // Invoke custom library | |
This file contains 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 Select-CaptureGroup { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] | |
[ValidateNotNullOrEmpty()] | |
[Microsoft.PowerShell.Commands.MatchInfo[]]$InputObject | |
) | |
begin {} |
This file contains 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 | |
# Version 1.2.9 | |
$Secrets = get-content -raw -path ~/.secrets/secrets.json | cnvertfrom-json | |
# check if newer version | |
#$gistUrl = "https://api.github.com/gists/......." | |
gistUrl = $Secrets.PowershellProfile.gistUrl | |
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version') |
This file contains 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
clear-host | |
Echo "Keep-Alive with Scroll Lock..." | |
$WShell = New-Object -ComObject WScript.Shell | |
while ($true) { | |
$WShell.sendkeys("{SCROLLLOCK}") | |
start-sleep -milliseconds 100 | |
$WShell.sendkeys("{SCROLLLOCK}") | |
Start-Sleep -seconds 240 | |
} |
OlderNewer