POWERSHELL: (Admin)
Install-WindowsFeature Hyper-V
Install-WindowsFeature Containers
mkdir "$Env:ProgramFiles\Docker"
cd "$Env:ProgramFiles\Docker"
import { Docker } from "docker-cli-js"; | |
import path from "path"; | |
import shell from "shelljs"; | |
import mkdirp from "mkdirp"; | |
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
const isWin = process.platform === "win32"; | |
const docker = new Docker(); | |
const exec = str => { |
import os from 'os'; | |
import path from 'path'; | |
const COMPANY = 'companydir'; | |
const APP = 'appdir'; | |
export const getDefaultDataPath = (env = process.env, useOS = os.platform()) => { | |
switch (useOS) { | |
case 'win32': | |
return path.join(env.PROGRAMDATA || 'C:/ProgramData', `${COMPANY}/${APP}/`); |
import changeObjectCase from 'change-object-case'; | |
import base from '../../base'; | |
import HttpStatus from 'http-status-codes'; | |
const serverCase = input => | |
changeObjectCase.pascalKeys(input, { recursive: true, arrayRecursive: true }); | |
export const headRequest = async route => { | |
const token = sessionStorage.getItem('token'); | |
const headers = { |
import crypto from 'crypto'; | |
import fetch from 'node-fetch'; | |
const PREFIX_LENGTH = 5; | |
export function hash(passphrase) { | |
const shaSum = crypto.createHash('sha1'); | |
shaSum.update(String(passphrase).normalize('NFKC')); | |
return shaSum.digest('hex'); | |
} |
POWERSHELL: (Admin)
Install-WindowsFeature Hyper-V
Install-WindowsFeature Containers
mkdir "$Env:ProgramFiles\Docker"
cd "$Env:ProgramFiles\Docker"
import React, { Component } from 'react'; | |
import { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
import * as Actions from './action'; | |
const mapStateToProps = ({ loaded, loading, error, data }) = ({ loaded, loading, error, data }); | |
const mapDispatchToProps = dispatch => ({ action: bindActionCreators(Actions, dispatch) }); | |
export class MyComponent extends Component { | |
load = _ => this.props.action.load(this.props.id); |
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs | |
# All files | |
[*] | |
end_of_line = lf | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 | |
# Xml files |
.Net Core Tools | |
Add jsdoc comments | |
ASP.Net Core Snippets | |
ASP.Net core VS Code Extension Pack | |
ASP.Net Helper | |
AutoHotkey | |
Beautify | |
Better Comments | |
C# | |
C# Extensions |
curl https://raw.githubusercontent.com/cleanbrowsing/dnsperftest/master/dnstest.sh | bash | sort -k 22 -n |
pre-tab behaviors