Python chip-circuit-board

Blink LED script using python

0

#!/usr/bin/env python import RPi.GPIO as GPIO import time LedPin = 11 GPIO.setmode(GPIO.BOARD) GPIO.setup(LedPin, GPIO.OUT) GPIO.output(LedPin,…

PowerShell

PowerShell function to replace a string in a given text file

0

function Replace-StringInFile { param( [System.String]$file, [System.String]$searchString, [System.String]$replaceString ) [System.IO.File]::WriteAllText($file, [System.IO.File]::ReadAllText($file).Replace($searchString, $replaceString)) } Function usage: Replace-StringInFile…

1 2 3 4 6