Skip to content

Instantly share code, notes, and snippets.

Deniz İrgin Blind-Striker

Block or report user

Report or block Blind-Striker

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
@Blind-Striker
Blind-Striker / serverless.yml
Created Aug 14, 2019
Sample for LocalStack article
View serverless.yml
service: profile
plugins:
- serverless-localstack
custom:
localstack:
host: http://${env:LOCAL_STACK_HOST}
stages:
- local
@Blind-Striker
Blind-Striker / Handler.cs
Last active Aug 13, 2019
Sample for LocalStack article
View Handler.cs
public async Task<APIGatewayProxyResponse> CreateProfileAsync(APIGatewayProxyRequest request, ILambdaContext context)
{
WriteVariables(context);
string requestBody = request.Body;
context.Logger.LogLine($"Request Body\n {requestBody}");
AddProfileModel addProfileModel = JsonConvert.DeserializeObject<AddProfileModel>(requestBody);
context.Logger.LogLine($"Decoding Base64 image");
@Blind-Striker
Blind-Striker / Handler.cs
Created Aug 13, 2019
Sample for LocalStack article
View Handler.cs
public Handler()
{
ISession session = SessionStandalone
.Init()
.WithSessionOptions(AwsAccessKeyId, AwsAccessKey, AwsSessionToken, RegionName)
.WithConfig(LocalStackHost)
.Create();
_awsS3Client = session.CreateClient<AmazonS3Client>();
_awsDynamoDbClient = session.CreateClient<AmazonDynamoDBClient>();
@Blind-Striker
Blind-Striker / serverless.yml
Last active Aug 12, 2019
serverless.yml for localstack demo
View serverless.yml
service: profile
plugins:
- serverless-localstack
custom:
localstack:
host: http://${env:LOCAL_STACK_HOST}
stages:
- local
@Blind-Striker
Blind-Striker / docker-compose-localstack.yml
Last active Oct 17, 2019
LocalStack docker-compose file for Windows
View docker-compose-localstack.yml
version: '2.1'
services:
localstack:
privileged: true
image: localstack/localstack:0.10.1.2
ports:
- '4567-4585:4567-4585'
- '4590-4593:4590-4593'
- '${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}'
@Blind-Striker
Blind-Striker / .travis.yml
Created Jul 18, 2018
armutcom/docker-dotnet-core-images travis.yml file
View .travis.yml
language: csharp
sudo: required
dist: trusty
mono: none
dotnet: 2.1.1
os:
- linux
branches:
only:
- master
@Blind-Striker
Blind-Striker / build.cake
Created Jul 18, 2018
armutcom/docker-dotnet-core-images build.cake file
View build.cake
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Json&version=3.0.1"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Docker&version=0.9.3"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Http&version=0.5.0"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Newtonsoft.Json&version=11.0.2"
#addin "nuget:https://api.nuget.org/v3/index.json?package=System.Net.Http&version=4.3.3"
using Cake.Json;
using Cake.Docker;
using Newtonsoft.Json;
using System.Net.Http;
@Blind-Striker
Blind-Striker / manifest.json
Created Jul 18, 2018
armutcom/docker-dotnet-core-images example manifest.json for Cake
View manifest.json
{
"repos": [
{
"name": "armutcom/aspnet-core",
"readmePath": "README.md",
"images": [
{
"id": 2,
"name": "runtime",
"osType": "linux",
@Blind-Striker
Blind-Striker / appveyor.yml
Last active Jul 18, 2018
Example travis.yml and appveyor.yml for Cake Build
View appveyor.yml
image: Visual Studio 2017
branches:
only:
- master
init:
- cmd: git config --global core.autocrlf true
build_script:
- ps: . ./build.ps1
deploy: off
@Blind-Striker
Blind-Striker / build.cake
Created Jul 18, 2018
Cake.Electron.Net cake file
View build.cake
var target = Argument("target", "Default");
using System;
using System.Diagnostics;
// Variables
var configuration = "Release";
var fullFrameworkTarget = "net46";
var netCoreTarget = "netcoreapp2.0";
You can’t perform that action at this time.