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
<# | |
.SYNOPSIS | |
Looks for installed applications with a search string to be found in either its | |
name or the publisher name and uninstalls them. | |
.DESCRIPTION | |
It takes a search string (-SearchString) that it uses to look through the names | |
and publishers for the search string, and uninstalls them. |
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
<# | |
.SYNOPSIS | |
This script gets MAC address tables from Cisco routers/switches running IOS using the SSH protocol. | |
.DESCRIPTION | |
There's a newer version of this here: https://github.com/supercheetah/winsysadmintools | |
The script uses the Plink (command line version of PuTTY, http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) | |
to get the output of the command "show mac address-table" and put into a object array (i.e. table) that is outputted to | |
Out-GridView, and can optionally be saved to a CSV file. |
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
# this installs it system wide into Program Files | |
$webclient = New-Object System.Net.WebClient | |
$url = "https://github.com/darkoperator/Posh-SSH/archive/master.zip" | |
Write-Host "Downloading latest version of Posh-SSH from $url" -ForegroundColor Cyan | |
$file = "$($env:TEMP)\Posh-SSH.zip" | |
$webclient.DownloadFile($url,$file) | |
Write-Host "File saved to $file" -ForegroundColor Green | |
$targetondisk = "$($env:ProgramFiles)\WindowsPowerShell\Modules" | |
New-Item -ItemType Directory -Force -Path $targetondisk | out-null | |
$shell_app=new-object -com shell.application |
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 Browse-AD() | |
{ | |
# original inspiration: https://itmicah.wordpress.com/2013/10/29/active-directory-ou-picker-in-powershell/ | |
# author: Rene Horn [email protected] | |
<# | |
Copyright (c) 2015, Rene Horn | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: |
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
<# | |
.SYNOPSIS | |
Gets the CDP information from a computer. | |
.DESCRIPTION | |
Attempts to get the CDP information from a computer. It automatically downloads tcpdump.exe if it's not already on a computer. | |
.PARAMETER DeviceNumber | |
Alias: dn |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Break up lines</title> | |
<script> | |
function replace_lines() | |
{ | |
var raw_input = document.getElementById("inputted_lines").value.split('\n'); | |
var sep = document.getElementById("separator").value; |
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
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.uix.label import Label | |
from kivy.uix.floatlayout import FloatLayout | |
import logging | |
class MyPaintWidget(FloatLayout): | |
def on_touch_down(self, touch): | |
# if this is called, this will not exit on close, but instead |