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
function Get-Submodules { | |
function lookup($key, $defaultValue = "") { | |
$value = git config --file $gitmodules --get "$key" 2>&1 | |
if($LASTEXITCODE -ne 0) { $defaultValue } else { $value } | |
} | |
function all { | |
(git config --file $gitmodules --list) -split "\n" | |
} |
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
function Create-Verification { | |
param([string] $Path = ".", [string] $Verify = "", [string] $Filter = "*.*") | |
$Output = "$($Path | Split-Path -Leaf).sha2" | |
$Table = | |
Get-ChildItem -Path $Path | | |
Where-Object { $_.Name -like $Filter -and $_.Name -ne $Output } | #Don't inculde the .sha2 file | |
Sort-Object -Property Name | | |
Get-FileHash -Algorithm SHA256 | |
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
typedef struct pb_union_s | |
{ | |
const uint32_t tag; | |
const pb_msgdesc_t* submsg_desc; | |
pb_istream_t stream; | |
} pb_union_t; | |
const pb_union_t getUnionType(uint8_t buffer[], size_t size) | |
{ | |
pb_istream_t stream = pb_istream_from_buffer(buffer, size); |
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 ConfigParser | |
open System | |
open System.IO | |
type ConfigSection = { Name: string; Subsection: string; Values: Map<string,string> } | |
(* | |
Ref: https://git-scm.com/docs/git-config#_syntax | |
Sample: |
NewerOlder