Skip to content

Instantly share code, notes, and snippets.

View robert-skarzycki's full-sized avatar

Robert Skarżycki robert-skarzycki

View GitHub Profile

Privacy Policy

Robert Skarżycki built the Handy Home Budget app as a free app. This SERVICE is provided by Robert Skarżycki at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

Information Collection and Use

@robert-skarzycki
robert-skarzycki / how-to-deploy-dotnet-on-heroku.md
Created July 1, 2019 19:51
How to deploy dotnet on heroku
var entity1 = new Car
{
Id = Guid.NewGuid(),
Name = "car-1",
Attributes = new Dictionary<string, AttributeValue>{
{"petrol",
new AttributeValue{
Id = Guid.NewGuid(),
Value="diesel",
}},
public class Car
{
public Guid Id { get; set; }
public string Name { get; set; }
public Dictionary<string, AttributeValue> Attributes { get; set; }
}
public class AttributeValue
{
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install docker-ce
sudo docker run hello-world

How install docker on bare Ubuntu

1.Run following commands

sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install docker-ce
@robert-skarzycki
robert-skarzycki / azure-snippets-tips.md
Created February 26, 2019 08:16
Azure snippets & tips

To run Linux-hosted dotnet web app in Azure App Service

Set command in "Startup File" input on "Application settings" pane of app service:

dotnet /home/site/wwwroot/{yourDLLName}.dll

https://stackoverflow.com/a/48145960/2017882

@robert-skarzycki
robert-skarzycki / docker-commands.md
Last active February 22, 2019 09:39
Cheat sheet for docker commands

Build image

docker build -t <template_name> .

Run build image & redirect port

docker run -p <port_on_host>:<port_in_container> <image_name>

List of running container instances

docker ps

Log into running instance bash

using (var session = _store.LightweightSession())
{
var product1 = new Root
{
Id = Guid.NewGuid(),
Name = "root-1",
ChildsLevel1 = new[]{
new ChildLevel1{
Id = Guid.NewGuid(),