Skip to content

Instantly share code, notes, and snippets.

Working from home

Vasko Zdravevski vaskoz

Working from home
View GitHub Profile
View aws-lambda-python3.8.txt
docker run -it --rm lambci/lambda:build-python3.8 /bin/bash 10:59:44
bash-4.2# pip list
Package Version
------------------- ----------
arrow 0.15.5
attrs 19.3.0
aws-lambda-builders 0.6.0
aws-sam-cli 0.40.0
aws-sam-translator 1.19.1
awscli 1.16.314
View gitea_latest_wirev2.txt
./gitea web 16:02:33 ☁ master ☀
2019/09/27 16:02:35 ...dules/setting/git.go:87:newGit() [I] Git Version: 2.23.0, Wire Protocol Version 2 Enabled
2019/09/27 16:02:35 routers/init.go:72:GlobalInit() [T] AppPath: /Users/vzdravevski/code/gitea/gitea
2019/09/27 16:02:35 routers/init.go:73:GlobalInit() [T] AppWorkPath: /Users/vzdravevski/code/gitea
2019/09/27 16:02:35 routers/init.go:74:GlobalInit() [T] Custom path: /Users/vzdravevski/code/gitea/custom
2019/09/27 16:02:35 routers/init.go:75:GlobalInit() [T] Log path: /Users/vzdravevski/code/gitea/log
2019/09/27 16:02:35 ...dules/setting/log.go:226:newLogService() [I] Gitea v1.9.0-dev built with go1.13
2019/09/27 16:02:35 ...dules/setting/log.go:269:newLogService() [I] Gitea Log Mode: Console(Console:info)
2019/09/27 16:02:35 ...les/setting/cache.go:45:newCacheService() [I] Cache Service Enabled
2019/09/27 16:02:35 ...s/setting/session.go:44:newSessionService() [I] Session Servic
public class Switch {
public static void main(String... args) {
var s = args[0];
int result = switch (s) {
case "Foo" -> 1;
case "Bar" -> 2;
default -> 0;
String msg2 = """
The quick brown fox\040\040
vaskoz /
Last active Jun 28, 2018
JDK11 new GCs
public class Http {
public static void main(String[] args) throws Exception {
var httpClient = HttpClient.newBuilder().build();
var response = httpClient.send(HttpRequest.newBuilder(URI.create("")).build(),
vaskoz /
Created Jun 17, 2018 — forked from leonardofed/
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.

View cloudwatch_logs_lambda_cpp.txt
Hi there from a C++ program
2018/01/22 05:09:25 <nil>
START RequestId: 6a2e5b39-ff32-11e7-805a-630e62a1c78b Version: $LATEST
Hi there from a C++ program
2018/01/22 05:09:25 <nil>
END RequestId: 6a2e5b39-ff32-11e7-805a-630e62a1c78b
REPORT RequestId: 6a2e5b39-ff32-11e7-805a-630e62a1c78b Duration: 179.64 ms Billed Duration: 200 ms Memory Size: 128 MB Max Memory Used: 14 MB
RequestId: 6a2e5b39-ff32-11e7-805a-630e62a1c78b Process exited before completing request
View conn_cache.go
package main
import (
type Connection interface {
Send([]byte) error
View output.txt
go test -parallel=1 -race -v parallel_test.go
=== RUN TestOne
=== PAUSE TestOne
=== RUN TestTwo
=== PAUSE TestTwo
=== CONT TestTwo
=== CONT TestOne
--- PASS: TestTwo (0.00s)
--- PASS: TestOne (0.00s)
View aws_spot_main.go
package main
import (
vaskoz /
Last active Sep 18, 2017
Be wary of dependencies
You can’t perform that action at this time.