Skip to content

Instantly share code, notes, and snippets.

# directories
**/bin/
**/obj/
**/out/
# files
Dockerfile*
FROM microsoft/dotnet:2.2-sdk AS build
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out
ENTRYPOINT ["dotnet", "out/heartbeat.dll"]
FROM microsoft/dotnet:2.2-sdk AS build
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out
ENTRYPOINT ["dotnet", "out/heartbeat.dll"]
{
"version": "2.0.0",
"tasks": [
{
"label": "cleanweb",
"command": "dotnet",
"type": "process",
"args": [
"clean",
"${workspaceFolder}/serviceflow.web/serviceflow.web.csproj"
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web-api)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "buildapi",
"program": "${workspaceFolder}/serviceflow.api/bin/Debug/netcoreapp2.2/serviceflow.api.dll",
"args": [],
@unrealnerd
unrealnerd / launch.json
Last active January 12, 2019 16:35
2 apps launch.json for Visual Studio Code
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web-api)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/serviceflow.api/bin/Debug/netcoreapp2.2/serviceflow.api.dll",
"args": [],
start /REALTIME java -jar ApacheJMeter.jar -n -t [your file].jmx -l results1.jtl -j log1.log
@unrealnerd
unrealnerd / gitcommands.md
Last active May 28, 2021 05:40
git commands

GIT NOTES

Use Command
Save Stash git stash save <nameofstash>
Clone New git clone http://myrepo.com/repo/proj.git
Clone Recursive Submodule git clone --recurse-submodules http://myrepo.com/repo/proj.git
Recursive Pull Submodule git pull --recurse-submodules
List Stash git stash list
Backup stash git stash show -p > stash.diff
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Arjun subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Business" title="Business">
<outline type="rss" text="Entrepreneur: Latest Articles" title="Entrepreneur: Latest Articles" xmlUrl="http://feeds.feedburner.com/entrepreneur/latest" htmlUrl="https://www.entrepreneur.com/latest?utm_source=Feedly&amp;utm_medium=related&amp;utm_campaign=syndication"/>
</outline>
#Requires -RunAsAdministrator
param([string]$arg1 = "env")
$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'"
if($arg1 -eq "SIT1")
{
$wmi.SetDNSServerSearchOrder(@("10.160.226.63","10.160.226.64"))
}
elseif($arg1 -eq "SIT2")
{