###add patch
get the script from https://get.docker.com/ubuntu/, the script is:
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
apt-get update
apt-get install -y apt-transport-https
fi
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
// /File/Stream | |
public FileStreamResult Stream() | |
{ | |
var fileContent = new byte[] { Ascii.one, Ascii.Comma, Ascii.two, Ascii.Comma, Ascii.three }; | |
var stream = new MemoryStream(fileContent); | |
var fileStreamResult = new FileStreamResult(stream, mimeType); | |
fileStreamResult.FileDownloadName = "FileStreamExample.csv"; | |
return fileStreamResult; | |
} |
###add patch
get the script from https://get.docker.com/ubuntu/, the script is:
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
apt-get update
apt-get install -y apt-transport-https
fi
<Query Kind="Program"> | |
<NuGetReference Prerelease="true">Microsoft.Diagnostics.Runtime</NuGetReference> | |
<Namespace>Microsoft.Diagnostics.Runtime</Namespace> | |
<Namespace>System</Namespace> | |
<Namespace>System.IO</Namespace> | |
<Namespace>System.Linq</Namespace> | |
<Namespace>System.Text</Namespace> | |
<Namespace>Microsoft.Diagnostics.Runtime.Utilities</Namespace> | |
</Query> |
public static List<T> Query<T>(this DataContext db, string sql, object param = null, int? commandTimeout = null, IDbTransaction transaction = null, [CallerFilePath]string fromFile = null, [CallerLineNumber]int onLine = 0, string comment = null) | |
{ | |
using (db.Connection.EnsureOpen()) | |
{ | |
try | |
{ | |
return db.Connection.Query<T>(MarkSqlString(sql, fromFile, onLine, comment), param, transaction ?? db.Transaction, true, commandTimeout).AsDapperList(); | |
} | |
catch (SqlException ex) when (ex.Is(SqlErrorCode.DatabaseReadOnly_3906)) | |
{ |
Setup:
# set CONTRIBUTORS file to mailmap to remove duplicate emails for the same name
# see: https://git-scm.com/docs/git-shortlog#_mapping_authors
$ git config mailmap.file CONTRIBUTORS
Top 10 contributors (all):
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco install 7zip /y | |
choco install docker-for-windows /y | |
choco install dotpeek /y | |
choco install git /y | |
choco install git-desktop /y | |
choco install googlechrome /y | |
choco install brave /y | |
choco install mousewithoutborders /y |
package json; | |
import com.amazonaws.services.dynamodbv2.model.OperationType; | |
import com.amazonaws.services.dynamodbv2.model.StreamViewType; | |
import com.amazonaws.services.lambda.runtime.events.DynamodbEvent; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.PropertyNamingStrategy; |
Install WSL : https://docs.microsoft.com/en-us/windows/wsl/install-win10
Install VcXsrv : https://sourceforge.net/projects/vcxsrv/
Sweet icon/launcher trick source : https://blog.ropnop.com/configuring-a-pretty-and-usable-terminal-emulator-for-wsl/
Install Visual Studio Code : https://code.visualstudio.com/docs/setup/linux