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
s (51 sloc) 2.49 KB | |
RawBlameHistory | |
use AppleScript version "2.5" | |
use scripting additions | |
use framework "Foundation" | |
property |NSURL| : a reference to current application's |NSURL| | |
property NSString : a reference to current application's NSString | |
property NSURLSession : a reference to current application's NSURLSession |
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
[HKEY_LOCAL_MACHINE\SOFTWARE\FSLogix\Profiles] |
This file has been truncated, but you can view the full file.
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
module.exports = function(modules) { | |
var installedModules = {}; | |
function __webpack_require__(moduleId) { | |
if (installedModules[moduleId]) return installedModules[moduleId].exports; | |
var module = installedModules[moduleId] = { | |
i: moduleId, | |
l: !1, | |
exports: {} | |
}; |
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
#!/usr/bin/env pwsh | |
#Requires -Version 5.0 | |
#Requires -Module Pester, Microsoft.PowerShell.Management, Microsoft.PowerShell.Utility | |
using namespace System; | |
using namespace System.IO; | |
[CmdletBinding()] | |
param( |
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
#!/usr/bin/env pwsh | |
using namespace System; | |
[CmdletBinding()] | |
param( | |
[string] $ModuleName = $env:MODULE_NAME, | |
[string[]] $RequiredModules = $env:REQUIRED_MODULES, | |
[string] $BuildVersion = $env:BUILD_VERSION | |
); |
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
#!/usr/bin/env pwsh | |
#Requires -Version 7 | |
param([string] $path); | |
Push-Location -Path $path; | |
function order([string] $Path) { | |
[Collections.Stack] $stack = [Collections.Stack]::new(); | |
foreach ($file in (Get-ChildItem -Path $Path -Filter '*.txt')) { | |
[void] $stack.Push($file.Name); | |
$file | Get-Content | ForEach-Object { | |
[string]::IsNullOrEmpty($_) ? (&{return}) : (order($_)); |
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 -ComputerName $ComputerName -Namespace 'root/cimv2' -QueryDialect 'WQL' -Query "associators of {Win32_Group.Domain='$($ComputerName)',Name='Administrators'} where Role=GroupComponent"; |
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
Code: | |
init: | |
#NoEnv | |
#SingleInstance, Force | |
#Persistent | |
#InstallKeybdHook | |
#UseHook | |
#KeyHistory, 0 | |
#HotKeyInterval 1 | |
#MaxHotkeysPerInterval 127 |
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-ChildItem -Path './src' -Filter '*.ps1' -File -Recurse | ForEach-Object { | |
$functions = (Get-Command $_.FullName).ScriptBlock.Ast.FindAll( { $args[0] -is [System.Management.Automation.Language.FunctionDefinitionAst] }, $false); | |
foreach ($func in $functions) { | |
[ScriptBlock] $code = [ScriptBlock]::Create("function tmp-$($func.Name) $($func.Body)"); | |
New-Module -Name 'tmp-mod' -ScriptBlock $code | Out-Null; | |
[PSCustomObject] @{ | |
File = $_.Name; | |
Function = $func.Name; | |
Attributes = (Get-Command -Name "tmp-$($func.Name)").ScriptBlock.Attributes | % { ${PSItem}?.TypeId?.Name } | |
}; |
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
<wsdl:definitions | |
targetNamespace="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" | |
xmlns:cfg="http://schemas.microsoft.com/wbem/wsman/1/config" | |
xmlns:wsmanfault="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" | |
xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" | |
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" | |
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/09/transfer" | |
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" | |
xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" | |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" |