Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

gromanev gromanev

🏠
Working from home
Block or report user

Report or block gromanev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gromanev
gromanev / InstallEnvironment
Created Mar 21, 2019 — forked from inyutin-maxim/InstallEnvironment
Настройка рабочего окружения
View InstallEnvironment
Для настройки рабочего окружения выполните в Powershell следующие команды:
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n allowGlobalConfirmation
# Development
cinst dotnetcore-sdk dotnetfx git tortoisegit docker-for-windows docker-compose nuget.commandline nugetpackageexplorer vscode nodejs postman docfx heidisql
@gromanev
gromanev / launch.json
Created Sep 30, 2018
medium_sample_4
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Nest Framework",
"args": ["${workspaceFolder}/src/main.ts"],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"sourceMaps": true,
View configEnv.service.ts
import { Injectable } from '@nestjs/common';
// импортируем библиотеку
import * as nconf from 'nconf';
@Injectable()
export class ConfigEnvService {
public get(): any {
// указываем префикс, по которому будет выборка и извлечение
const prefixFlag = 'MYENV';
@gromanev
gromanev / sample.js
Last active Sep 30, 2018
medium_sample_2
View sample.js
{
DbSettings: {
User: "test",
Password: "Pass567"
}
}
@gromanev
gromanev / test.env
Last active Sep 30, 2018
medium_sample_1
View test.env
MYENV__DbSettings__User=test
MYENV__DbSettings__Password=Pass567
You can’t perform that action at this time.