Skip to content

Instantly share code, notes, and snippets.

Avatar

Bryce Jenkins thechainercygnus

View GitHub Profile
@thechainercygnus
thechainercygnus / StopServicebyIP.ps1
Created Jun 30, 2021
Simple script to check IP Address against a target IP and stop a service if there is a match.
View StopServicebyIP.ps1
# Set these to match your needs
$ServiceTarget = Get-Service -Name ""
$MatchTarget = "10","15","86"
# This big Foreach is just looping through every interface on the machine looking for names like "Ethernet"
# If you need to prioritize a different interface, or change interface names on systems, update the -Like string accordingly.
foreach ($Interface in (Get-NetIPAddress -AddressFamily IPv4 | Where-Object {$_.InterfaceAlias -like "Ethernet*"})) {
# Because we're working with numbers, convert each octet to an int and stick it in an array.
$IPArray = ($Interface.IPAddress).Split(".") | ForEach-Object {[int]$_}
View keybase.md

Keybase proof

I hereby claim:

  • I am thechainercygnus on github.
  • I am thebjenkins (https://keybase.io/thebjenkins) on keybase.
  • I have a public key ASDzmPU5qRmN0Vr_dHqVuwRDd_Eor7hIBQSiNbf98sifEgo

To claim this, I am signing this object:

@thechainercygnus
thechainercygnus / test.css
Created Jul 30, 2015
CSS Grid Overlay for Map
View test.css
.framing {
height: 1050px;
width: 2050px;
position: relative;
background-color: gray;
}
.image {
position: absolute;
margin-top: 25px;
View function.js
var main = function(){
$('.icon-menu').click(function() {
$('.menu').animate({
left: '0px'
}, 200);
$('body').animate({
left: '285px'
}, 200);
});