I hereby claim:
- I am roamingthings on github.
- I am roamingthings (https://keybase.io/roamingthings) on keybase.
- I have a public key ASAawKM2O7ow_3ehmmspBsxnGw84HsRPZr73UaUSVwRCYwo
To claim this, I am signing this object:
@SpringBootTest | |
@TestPropertySource(properties = ["logging.config=classpath:logback-other.xml"]) | |
@ContextConfiguration(initializers = [LoggingSystemReinitializer::class]) | |
class LoggingMaskingDecoratorTest { | |
private val standardOut = System.out | |
private val outputStreamCaptor: ByteArrayOutputStream = ByteArrayOutputStream() | |
companion object { | |
@AfterAll |
describe('Chain calls to an api', () => { | |
it('should perform all requests subsequentially', done => { | |
request(app) | |
.get('/api/first') | |
.expect(200) | |
.end((err: any, res: Response) => { | |
if (err) return done(err); | |
const action = res.text | |
request(app).get('/api/second') | |
.query({ action }) |
import org.gradle.api.JavaVersion.VERSION_1_8 | |
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL | |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType | |
import java.time.Year | |
import kotlin.properties.ReadOnlyProperty | |
import kotlin.reflect.KProperty | |
plugins { | |
`java-library` |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
plugins { | |
id("org.springframework.boot") version "2.1.8.RELEASE" | |
id("io.spring.dependency-management") version "1.0.8.RELEASE" | |
kotlin("jvm") version "1.3.50" | |
kotlin("plugin.spring") version "1.3.50" | |
} | |
group = "de.roamingthings" |
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
# Author: Alexander Sparkowsky | |
# Email: [email protected] | |
# License: MIT | |
# Usage: ./init_postgres.sh _project_name_ _db_password_ _[host_path_db_data]_ _[pg_docker_image_name]_ | |
PROJECT_NAME=$1 | |
DB_NAME="$PROJECT_NAME" | |
HOST_PATH_DB_DATA=${3:-"/tmp/postgres/data/$DB_NAME"} |
ObjectMapper objectMapper = new ObjectMapper() | |
// Find and register modules e.g. for serialization or JAXB annotation processing | |
.findAndRegisterModules() | |
// Order map entries by key | |
.enable(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS) | |
// Don't fail on empty beans | |
.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS) | |
// Write date values as timestamp instead of ms since epoch | |
.enable(SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS) | |
// Don't include default view / non @JsonView annotaded values |
@Entity | |
public class MyEntity { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; | |
@Column | |
private LocalDate date; |
#!/usr/bin/env ruby -wKU | |
# Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/) | |
# Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/) | |
# Changes: – create only one Evernote note per (Multi)Markdown input passed (instead of one per line) | |
# – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript) | |
# – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script) | |
# – make smart typography processing optional (set SMARTY to 'false' to bypass processing; | |
# note smart typography cannot be disabled in MMD 3.0 and 3.0.1 | |
# – handle both smart typography processing scripts (ie. SmartyPants.pl) |