Skip to content

Instantly share code, notes, and snippets.

View alexeyzimarev's full-sized avatar
🎖️
Protecting common sense

Alexey Zimarev alexeyzimarev

🎖️
Protecting common sense
View GitHub Profile
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "ClassifiedAds"
},
"paths": {
"/ad": {
"post": {
"tags": [
<?xml version="1.0"?>
<doc>
<assembly>
<name>Marketplace</name>
</assembly>
<members>
<member name="M:Marketplace.Api.ClassifiedAdsCommandsApi.Post(Marketplace.Contracts.ClassifiedAds.V1.Create)">
<summary>
Create a new classified ad
</summary>
@alexeyzimarev
alexeyzimarev / JsonNetRestSharp.cs
Created December 30, 2018 21:08
Using Newtonsoft.Json with RestSharp v106.6
using Newtonsoft.Json;
using RestSharp;
using RestSharp.Serialization;
namespace JsonNetRestSharp
{
class Program
{
static void Main(string[] args)
{
// This file is based on the code from the ASP.NET Core repository
// https://github.com/aspnet/AspNetCore/tree/master/src/Middleware/SpaServices.Extensions/src
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
@alexeyzimarev
alexeyzimarev / VueDevelopmentServerMiddleware .cs
Created January 27, 2019 13:26
Perspective Vue CLI middleware that uses the generic npm middleware
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.SpaServices;
using Microsoft.AspNetCore.SpaServices.Npm;
namespace ASP.NETCoreWebApplication
{
/// <summary>
variables:
KUBERNETES_VERSION: 1.18.4
HELM_VERSION: 2.16.9
ROLLOUT_RESOURCE_TYPE: deployment
DOTNET_SDK_VERSION: 3.1.301-alpine3.12
DOTNET_RUNTIME_VERSION: 3.1.5-alpine3.12
.deployment:
image: registry.ubiquitous.no/gitlab/auto-deploy-image:latest
allow_failure: false