Skip to content

Instantly share code, notes, and snippets.

View rdfx1's full-sized avatar

rdfx1 rdfx1

  • Czech republic
View GitHub Profile
@rdfx1
rdfx1 / JS-LINQ.js
Created November 9, 2018 08:43 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }
@rdfx1
rdfx1 / Get-Shares.ps1
Last active February 11, 2017 15:48
Get shares list from computer list
#
# Get-Shares.ps1
#
param([string]$srvlist = "./list.txt")
# read file content
$srvListContent = Get-Content $srvlist -ErrorAction Stop
Write-Output "Host,Name,LocalPath,RemotePath"