This corrects issues you might have with various VPN Clients having discrepancies with MTU size between WSL and the Windows Host.
Create a file /usr/local/sbin/mtu
and add the following:
#!/bin/bash
ip link set dev eth0 mtu 1400
<# | |
.NOTES | |
=========================================================================== | |
Created by: Marc Collins ([email protected]) | |
Organization: Qlik Professional Services | |
Filename: Convert-PemtoX509.ps1 | |
=========================================================================== | |
.DESCRIPTION | |
Converts PEM files to X509 Certificates | |
Can be used with QlikClient.pems |
You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
ssh-agent
from Windows Services:Services
in the Start Menu
or Win+R
and then type services.msc
to launch the Services window;OpenSSH Authentication Agent
in the list and double click on it;OpenSSH Authentication Agent Properties
window that appears, choose Automatic
from the Startup type:
dropdown and click Start
from Service status:
. Make sure it now says Service status: Running
.git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
function Get-ParameterValues { | |
<# | |
.Synopsis | |
Get the actual values of parameters which have manually set (non-null) default values or values passed in the call | |
.Description | |
Unlike $PSBoundParameters, the hashtable returned from Get-ParameterValues includes non-empty default parameter values. | |
NOTE: Default values that are the same as the implied values are ignored (e.g.: empty strings, zero numbers, nulls). | |
.Link | |
https://gist.github.com/Jaykul/72f30dce2cca55e8cd73e97670db0b09/ | |
.Link |
/// <summary> | |
/// Sets the step argument conversion infrasuructure as default for CreateSet and CreateInstance | |
/// </summary> | |
/// <remarks> | |
/// This method has to be called once, in a static ctor for example. Note: this way of setting is not | |
/// supported for parallel execution. | |
/// </remarks> | |
private static void SetupStepArgumentConverterValueRetriever() | |
{ | |
var assistService = TechTalk.SpecFlow.Assist.Service.Instance; |
npm install -g jspm@beta
jspm init
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate
function! RandomNumber(limit) | |
let components = split(reltimestr(reltime()), '\.') | |
let microseconds = components[-1] + 0 | |
return microseconds % a:limit | |
endfunction | |
function! RandomScheme() | |
let choices = [] | |
for fname in split(globpath(&runtimepath, 'colors/*.vim'), '\n') | |
let name = fnamemodify(fname, ':t:r') |
# Powershell HMAC SHA 256 | |
$message = 'Message' | |
$secret = 'secret' | |
$hmacsha = New-Object System.Security.Cryptography.HMACSHA256 | |
$hmacsha.key = [Text.Encoding]::ASCII.GetBytes($secret) | |
$signature = $hmacsha.ComputeHash([Text.Encoding]::ASCII.GetBytes($message)) | |
$signature = [Convert]::ToBase64String($signature) |