1. Install Ruby that is greater or equal to 2.4.0, this will install "DevKit" that developers refer to:
https://rubyinstaller.org/downloads/
*** If you come across any issues and search online, be mindful that when recommended to '$ ruby dk.rb init' they are referring to an older version of Ruby than 2.4.0 ***
2. As of this writing there is bug in ridk ( https://github.com/oneclick/rubyinstaller2/issues/101 ). So after Ruby install, restart CLI and execute:
$ ridk exec pacman -Syu --needed --noconfirm --ask 20
$ ridk install 2 3
3. Unable to run Jekyll following GitHub instructions ( bundle exec jekyll _3.3.0_ new NEW-JEKYLL-SITE-REPOSITORY-NAME ), so use the following instead:
This file contains 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
<# | |
.SYNOPSIS | |
Lists all available functions for a module, with the synopsis of the functions. | |
.DESCRIPTION | |
Lists all available functions of a module using Get-Command and Get-Help. | |
.PARAMETERS | |
Name <String> The name of the module installed. |
This file contains 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
<# | |
.SYNOPSIS | |
Outputs a file's bytes in decimal and/or binary notation | |
.DESCRIPTION | |
Initially created to compare files prior to UTF encoding. | |
.PARAMETER Path | |
Path to file. |
This file contains 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
<# | |
.SYNOPSIS | |
Returns a valid path from a parent of one of its children which overlaps that parent's path. | |
.DESCRIPTION | |
In set-theory this will be considered a relative complement. That is the directories | |
in ChildPath that are not in Path. | |
A diagram to illustrate what is mentioned above: | |
A = C:\Windows\diagnostics\system |
This file contains 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
<# | |
.SYNOPSIS | |
Similarly to Get-ChildItem, this function can recurse the -Path parameter parent or parents | |
for a file or folder | |
.DESCRIPTION | |
Long description | |
.PARAMETER Path | |
The path to start |
This file contains 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
Describe "Test Update-ModuleManifest" { | |
BeforeAll { | |
$ManifestContentString = @" | |
@{ | |
# Script module or binary module file associated with this manifest. | |
RootModule = 'MockModule.psm1' | |
# Version number of this module. | |
ModuleVersion = '0.0.1' |
This file contains 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
<# | |
.SYNOPSIS | |
Calls a REST endpoint to retrieve your IPv4 address along with other information about ISP and geo-location | |
.DESCRIPTION | |
Long description | |
.PARAMETER Uri | |
The REST service providing the ISP information from your request. Defaults to 'http://ipinfo.io/json' |
This file contains 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
$PackageName = "yarn-example-no$(Get-Random -Maximum 1000)" | |
New-Item -Value @" | |
{ | |
"name": "$PackageName", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"private": true | |
} | |
"@ -Name package.json -Path $PackageName -Force | Out-Null |
This file contains 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
:: this batch script is intended to get the value of a symlink, so that when the script is executed | |
:: it will resolve the value of the symlink, assigned to '_convertedresult'. this is my first batch | |
:: script coded, so this is probably rubbish to some and unstable too. also very slow in parsing the | |
:: final var, '_convertedresult', i've developed this on Windows 10. also this doesn't rely on any | |
:: additional executables that may or may not be on the computer executing this script. | |
:: | |
:: source: https://gist.github.com/marckassay/42c3e37d799fab7519e00400d7164526 | |
@ECHO OFF | |
@SETLOCAL |
This file contains 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
<# | |
.SYNOPSIS | |
"This sample provides a script for IT pro or windows customers to quickly batch associated file extensions with application | |
on Windows by PowerShell." | |
.DESCRIPTION | |
"The most efficient way to change file associations is by selecting a default program. This tells Windows that you want a | |
certain program to be associated with all the file types it can handle. IT pro or windows customers want to have some kinds | |
of batch method to automatically associate a selection of file extensions. This sample script will help to quickly batch | |
the associated file extensions with application on Windows." |
OlderNewer