Skip to content

Instantly share code, notes, and snippets.

View vaskoz's full-sized avatar
🏠
Working from home

Vasko Zdravevski vaskoz

🏠
Working from home
View GitHub Profile
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
./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
vaskoz / Http.java
Last active June 28, 2018 20:40
JDK11 new GCs
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Http {
public static void main(String[] args) throws Exception {
var httpClient = HttpClient.newBuilder().build();
var response = httpClient.send(HttpRequest.newBuilder(URI.create("https://www.google.com/")).build(),
HttpResponse.BodyHandlers.ofString());
@vaskoz
vaskoz / README.md
Created June 17, 2018 16:33 — forked from leonardofed/README.md
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.


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
package main
import (
"fmt"
"sync"
)
type Connection interface {
Send([]byte) error
Release()
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)
PASS
package main
import (
"context"
"log"
"math/rand"
"os"
"runtime/trace"
"sync"
"time"
@vaskoz
vaskoz / dependencies.md
Last active September 18, 2017 15:58
Be wary of dependencies