Skip to content

Instantly share code, notes, and snippets.

View Sidneys1's full-sized avatar
🐇
Knock knock, Neo...

Sidneys1 Sidneys1

🐇
Knock knock, Neo...
View GitHub Profile
@Sidneys1
Sidneys1 / Win10PrefechDecompress.cs
Created June 14, 2016 11:13 — forked from EricZimmerman/Win10PrefechDecompress.cs
pinvoke for RtlDecompressBufferEx in c#
using System.Runtime.InteropServices;
namespace Prefetch.XpressStream
{
public class Xpress2
{
// const ushort COMPRESSION_FORMAT_LZNT1 = 2;
// const ushort COMPRESSION_FORMAT_XPRESS = 3;
const ushort CompressionFormatXpressHuff = 4;
@Sidneys1
Sidneys1 / Update-Git.ps1
Last active February 23, 2016 16:07
Point at a root directory and run `Update-Git`. Will recursively search subdirectories and fetch/pull all branches that don't start with `local`
function Write-Color($string,[switch]$nonewline) {
# Reference:
# 0 = Black
# 1 = DarkBlue
# 2 = DarkGreen
# 3 = DarkCyan
# 4 = DarkRed
# 5 = DarkMagenta
# 6 = DarkYellow
# 7 = Gray

Syntax

All target selectors start with @. The following character is the selector type. For example, @p means 'closest player'.

Target selectors may have additional, optional arguments. You can specify these in [ ], using the syntax a=0. For example, @p[a=0,b=5,c=-500].

There is a special short syntax for just specifying x, y, z and r arguments; simply list their values separated by a comma, without x=. For example: @p[100,64,-100,5] for 5 range, x=100, y=64 and z=-100. Each of these are optional and skippable by leaving them empty. For example, to just specify y coordinate: @p[,64].

Global Arguments:

(Case sensitive)

  • x - X coordinate for search center. Default is senders coordinate, or 0.