Skip to content

Instantly share code, notes, and snippets.

View atla's full-sized avatar
:octocat:
happy coding

Marcus Körner atla

:octocat:
happy coding
View GitHub Profile
@IObert
IObert / mta.yaml
Created January 23, 2020 12:12
Sample project descriptor which generates tiny mtar archives
_schema-version: 2.0.0
ID: bookshop
version: 1.0.0
parameters:
enable-parallel-deployments: true
modules:
- name: bookshop-db
type: hdb
path: db
@songtianyi
songtianyi / go_stream_like_java.go
Last active January 29, 2023 02:35
program golang slices like java Stream API
package main
import (
"fmt"
"reflect"
)
type Data struct {
foo string
bar string
@jahe
jahe / spring-boot-cheatsheet.java
Last active December 25, 2023 21:35
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}
@willurd
willurd / web-servers.md
Last active April 28, 2024 21:38
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000