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
Import-Module SMLets | |
$IRClass = Get-SCSMClass -Name System.WorkItem.Incident | |
$ASClass = Get-SCSMRelationshipClass -Name System.WorkItemAssignedToUser$ | |
$AFClass = Get-SCSMRelationshipClass -Name System.WorkItemAffectedUser$ | |
$IR = Get-SCSMObject -Class $IRClass | Select -Property ` | |
@{Label="Queue";Expression={$_.TierQueue.displayname}}, ` | |
Id, ` | |
Title, ` |
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 () { | |
$('#login').submit(function (e) { | |
e.preventDefault(); | |
var formData = { | |
'grant_type': 'password', | |
'username': $('#username').val(), | |
'password': $('#password').val(), | |
'client_id': 'unknown', | |
'client_secret': 'unknown' |
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
#!/usr/bin/env bash | |
# | |
# Very simple shell script that removes a line from a file | |
# using sed. | |
# | |
# Usage: removeline 13 /path/to/file | |
# | |
nParams=$# |
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
### ALIASES ### | |
alias ls="ls -GF" | |
### END ALIASES ### | |
## COLORS ## | |
DULL=0 | |
BRIGHT=1 | |
FG_BLACK=30 | |
FG_RED=31 |
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
#!/usr/bin/env perl | |
use strict; | |
# Breakdown | |
# ([^?:]+):?([0-9]+)?\??([^#]+)?(#.*)? | |
# ([^?:]+) Matches the file path. | |
# :?([0-9]+)? Matches the port number (optional). | |
# \??([^#]+)? Matches the query string minus the ? (optional). | |
# (#.*)? Matches the anchor (optional). |
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
<%@ Import Namespace="System" %> | |
<%@ Import Namespace="System.Text.RegularExpressions" %> | |
<%@ Import Namespace="System.DirectoryServices" %> | |
<%@ Import Namespace="System.Web" %> | |
<%@ Page Language="C#" %> | |
<script language="c#" runat="server"> | |
// Constants | |
const string AD_SERVER = "10.0.0.0"; | |
const string AD_DOMAIN = "AD"; |
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
tell me | |
# Focus the windows we are about to make | |
activate | |
# | |
# Ask the user what device they would like to use. | |
# | |
set strSerialDevices to (do shell script "ls /dev/tty.*") | |
set listDevices to (paragraphs of strSerialDevices) as list | |
set strDevice to (choose from list listDevices with prompt "Select Device:") |
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 | |
Safely restores DHCP Server scopes using the specified directory. | |
.DESCRIPTION | |
Performs a backup of the currently running DHCP Server to the given | |
directory. Pulls a reference backup from another location locally | |
and performs a restore operation. | |
Version: 0.0.1 |
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 | |
Safely restores NPS server configuration using the specified directory. | |
.DESCRIPTION | |
Performs a backup of the currently running NPS server and restores the | |
database from a remote location. | |
Version: 0.0.1 | |
Author: Justin "4sak3n 0ne" Jahn |
OlderNewer