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
| - !host policyidtest | |
| - !policy | |
| id: pita | |
| owner: !host policyidtest | |
| body: | |
| - !policy | |
| id: pitb | |
| owner: !host policyidtest | |
| body: |
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
| $Creds = Get-Credential | |
| $PVWAUri = "https://pvwa/" | |
| $AccountSafe = "MySafe" | |
| $AccountUsername = "example-rest" | |
| $AccountAddress = "server.example.com" | |
| $AccountPlatformID = "WinDomain" | |
| Import-Module psPAS | |
| New-PASSession -BaseURI $PVWAUri -Credential $Creds -type LDAP |
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 needed, first: Install-Module psPAS | |
| Import-Module psPAS | |
| function Connect-PSMRDP { | |
| param( | |
| [parameter(Mandatory=$false)]$Credential, | |
| [parameter(Mandatory=$true, Position=0)]$TargetAddress | |
| ) |
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
| # Modify these values to match the account settings in PVWA | |
| $Address = "example.com" | |
| $User = "myuser" | |
| $Password = "mypassword" | |
| $Database = "mydatabasename" | |
| # Modify this to match the Connection String under Platform -> Additional Policy Settings | |
| # Don't put your username, password, etc in here, put them above | |
| $ConnectionString = 'Driver={SQL Server};Server=%ADDRESS%;Database=%DATABASE%;Uid=%USER%;Pwd=%LOGONPASSWORD%;' |
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
| # Modify these values to match the account settings in PVWA | |
| $Address = "example.com" | |
| $User = "myuser" | |
| $Password = "mypassword" | |
| # Also known as Service Name in Oracle | |
| $Database = "mydatabasename" | |
| # Default for Oracle: 1521 | |
| $Port = 1521 |
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
| [Unit] | |
| Description=py-kms | |
| After=network.target | |
| Wants=network-online.target | |
| [Service] | |
| # Have to use unbuffer otherwie py-kms tries to launch GUI | |
| ExecStart=/usr/bin/unbuffer /opt/py-kms/env/bin/python3 /opt/py-kms/py-kms/py-kms/pykms_Server.py 0.0.0.0 1688 --logfile /var/log/py-kms.log -V DEBUG | |
| Restart=always | |
| KillMode=process |
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
| [Unit] | |
| Description=py-kms | |
| After=network.target | |
| Wants=network-online.target | |
| [Service] | |
| # Have to use unbuffer otherwie py-kms tries to launch GUI | |
| ExecStart=/usr/bin/unbuffer /opt/py-kms/env/bin/python3 /opt/py-kms/py-kms/py-kms/pykms_Server.py 0.0.0.0 1688 --logfile /var/log/py-kms.log -V DEBUG | |
| Restart=always | |
| KillMode=process |
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
| # | |
| # DownloadsArchive.ps1 | |
| # By Michael West | |
| # | |
| # Moves files from your Downloads folder to another specified folder, archived by week number. | |
| # Can be run weekly, daily, or whenever. | |
| # | |
| # ------------------------------------------------ | |
| # Config | |
| # ------------------------------------------------ |
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
| /* ************************** | |
| WE DON'T NEED NO STINKIN | |
| BADGES | |
| * ************************** */ | |
| // Define Pins | |
| /* NOTE that not all RGB LEDs have the same color pinout | |
| so you need to adjust these definitions based on | |
| the specific LEDs you use. | |
| */ |
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
| # /etc/systemd/system/dnsmasq.service | |
| # Overrides Debian dnasmasq service with a webproc wrapped version to allow easy editing/log viewing from the web | |
| # Uses webproc from https://github.com/jpillora/webproc | |
| # Install webproc to /usr/local/bin | |
| [Service] | |
| Type=simple | |
| # Gets passed to init.d script to run without forking | |
| # Also log to stderr so we can view it in webproc |
NewerOlder