Skip to content

Instantly share code, notes, and snippets.

Flutter Development Environment Setup (without Android Studio)
```
# https://docs.flutter.dev/get-started/install/windows#get-the-flutter-sdk
# download flutter_windows_3.3.6-stable.zip and unzip to c:\flutter
C:\flutter\bin\flutter.bat doctor
# https://developer.android.com/studio
# download commandlinetools-win-8512546_latest.zip and unzip to c:\android\cmdline-tools
$env:JAVA_HOME="C:\jdk-11\"
@tonginbox
tonginbox / Dockerfile
Created October 9, 2022 07:46 — forked from eSlider/Dockerfile
Build, make ready to run and dramatically shrink .net 5.0 lambda docker image size by using alpine
#FROM public.ecr.aws/lambda/dotnet:5.0
#
#WORKDIR /var/task
#
## This COPY command copies the .NET Lambda project's build artifacts from the host machine into the image.
## The source of the COPY should match where the .NET Lambda project publishes its build artifacts. If the Lambda function is being built
## with the AWS .NET Lambda Tooling, the `--docker-host-build-output-dir` switch controls where the .NET Lambda project
## will be built. The .NET Lambda project templates default to having `--docker-host-build-output-dir`
## set in the aws-lambda-tools-defaults.json file to "bin/Release/net5.0/linux-x64/publish".
##
@tonginbox
tonginbox / redis-plus-plus_build.cmd
Created February 20, 2022 00:45
Build redis plus plus Windows 10, MSVC
# this is not a batch file
# this step in command line terminal
# pay attention in path \user\user1\test, need to be changed to match your
cd hiredis
mkdir build
cd build
cmake ..
cmake --build . --Release
@tonginbox
tonginbox / c# Cognito Custom Trigger Model
Last active February 3, 2022 02:06
Model to working with AWS Cognito Custom Trigger Lambda
using System.Collections.Generic;
/*
usage:
lambda function handler
...
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
...
public object Handler(JsonElement input, ILambdaContext context)