Skip to content

Instantly share code, notes, and snippets.

View Blind-Striker's full-sized avatar

Deniz İrgin Blind-Striker

View GitHub Profile
@Blind-Striker
Blind-Striker / serverless.yml
Last active August 12, 2019 17:08
serverless.yml for localstack demo
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 October 17, 2019 18:26
LocalStack docker-compose file for Windows
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 July 18, 2018 20:30
armutcom/docker-dotnet-core-images travis.yml file
language: csharp
sudo: required
dist: trusty
mono: none
dotnet: 2.1.1
os:
- linux
branches:
only:
- master
@Blind-Striker
Blind-Striker / build.cake
Created July 18, 2018 20:13
armutcom/docker-dotnet-core-images build.cake file
#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 July 18, 2018 19:44
armutcom/docker-dotnet-core-images example manifest.json for Cake
{
"repos": [
{
"name": "armutcom/aspnet-core",
"readmePath": "README.md",
"images": [
{
"id": 2,
"name": "runtime",
"osType": "linux",
@Blind-Striker
Blind-Striker / appveyor.yml
Last active July 18, 2018 18:28
Example travis.yml and appveyor.yml for Cake Build
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 July 18, 2018 15:29
Cake.Electron.Net cake file
var target = Argument("target", "Default");
using System;
using System.Diagnostics;
// Variables
var configuration = "Release";
var fullFrameworkTarget = "net46";
var netCoreTarget = "netcoreapp2.0";
##########################################################################
# This is the Cake bootstrapper script for PowerShell.
# This file is based on https://github.com/cake-build/resources modified for Cake.CoreCLR
# Feel free to change this file to fit your needs.
##########################################################################
<#
.SYNOPSIS
This is a Powershell script to bootstrap a Cake build.
.DESCRIPTION
@Blind-Striker
Blind-Striker / build.cake
Created July 16, 2018 19:14
Example Cake File
#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// PREPARATION
@Blind-Striker
Blind-Striker / wasm.js
Created October 29, 2017 15:04
fact.js
var wasmModule = new WebAssembly.Module(wasmCode);
var wasmInstance = new WebAssembly.Instance(wasmModule, wasmImports);
log(wasmInstance.exports.factorial(10));