Skip to content

Instantly share code, notes, and snippets.

View Chirishman's full-sized avatar
⚔️
I guess statuses are a thing now

Chirishman

⚔️
I guess statuses are a thing now
View GitHub Profile
function Export-MFT {
<#
.SYNOPSIS
Extracts master file table from volume.
Version: 0.1
Author : Jesse Davis (@secabstraction)
License: BSD 3-Clause
.DESCRIPTION
<#
.SYNOPSIS
This Function is designed to RickRoll a specified target(s).
.DESCRIPTION
This Function will RickRoll a specified target(s) by doing the following:
1. Connect to the specified remote computer(s)
2. Use Get-CimInstance to return the logged on user
3. Create a file containing:
a. The RickRoll expression to be run
b. Code to remove teh script after run
@Chirishman
Chirishman / .block
Created August 30, 2018 23:04 — forked from mbostock/.block
Radial Tidy Tree
license: gpl-3.0
border: no
height: 1060
@Chirishman
Chirishman / index.html
Last active August 30, 2018 22:53 — forked from apcj/index.html
Radial Node-Link Tree in D3
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Node-Link Tree (Radial)</title>
<script type="text/javascript" src="https://github.com/d3/d3/raw/2c030290457a4eac0efe34b1c7a61a29997ac3ef/d3.js"></script>
<script type="text/javascript" src="https://github.com/d3/d3/raw/2c030290457a4eac0efe34b1c7a61a29997ac3ef/d3.layout.js"></script>
<style type="text/css">
circle.node {
Write-Verbose "Display Name: $Display"
$TruncatedBaseDisplay = (-join([char[]]$Display | select -first 15))
$FirstUnusedName = (
($TruncatedBaseDisplay.Length)..1 | %{
$ThisLength = $_;
$Digits = 15 - $ThisLength;
(-join([char[]]$Display | select -first $ThisLength)) | %{
$ThisName = $_
@Chirishman
Chirishman / Start-ProgressSleep.ps1
Last active April 27, 2018 01:40 — forked from evoelker/Start-Progress.ps1
Powershell sleep function, with progress bar.
function Start-ProgressSleep {
Param(
[Parameter(ParameterSetName='seconds',Mandatory=$true)]
[int]$seconds,
[Parameter(ParameterSetName='span',ValueFromPipeline,Mandatory=$true)]
[timespan]$timespan
)
<#
.SYNOPSIS
Function to Start-Sleep with a progress bar
Import-Module Get-ChildItemColor
if ( -not $env:ConEmuPID ) {
function global:prompt {
-join($(
if (test-isadmin) {"λ "}),"$($env:username.ToUpper()) ►► ")
}
}
else {
$ColorSuffix = 'm'