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
| Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object Name, Manufacturer, Model | |
| wmic bios get serialnumber |
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
| # A.I. assisted with the creation of this code. | |
| import sys | |
| import os | |
| import re | |
| import random | |
| import string | |
| from pykml import parser | |
| import pandas as pd | |
| # Patterns to match |
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
| # Demonstrate how to use PowerShell in Python to get a full path to a specific file under the current user. | |
| import subprocess | |
| #Functions | |
| def RunCommand(Command): | |
| process = subprocess.Popen(["powershell", Command], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) | |
| output = process.stdout.readlines() | |
| return output | |
| def get_Path(path): | |
| cleanPath = RunCommand(path) |
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
| /* | |
| AmmoCounterTest | |
| Turns an LED on for as long as the IR sensor is crossed. | |
| modified 8 June 2018 | |
| by Stephen Morrison | |
| GNU GENERAL PUBLIC LICENSE |
NewerOlder