Skip to content

Instantly share code, notes, and snippets.

View imod's full-sized avatar

Dominik Bartholdi imod

View GitHub Profile
{
"info": {
"_postman_id": "beeb7d0b-c27a-4747-ab39-84edfe14a576",
"name": "co-api",
"description": "version=1.0 - Provides a RESTful API for retrieving and mutating payment instrument properties and conjuncted data\n\nContact Support: \nEmail: [banking.cardone@swisscom.com](mailto:banking.cardone@swisscom.com)",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "orders",
@imod
imod / ScaniiService.java
Last active April 14, 2021 15:08
Scanii Client
class ScaniiService {
private final ScaniiClient client;
public ScaniiService(VirusScanConfig scaniiConfig) {
RequestConfig config = RequestConfig.custom()
.setConnectTimeout(45 * 1000)
.setConnectionRequestTimeout(45 * 1000)
.setSocketTimeout(45 * 1000)
.build();
Previewing update (tal-deployment.ci):
Type Name Plan Info
pulumi:pulumi:Stack tal-deployment-tal-deployment.ci running read pulumi:pulumi:StackReference tal
└─ azure-native:resources/v20200801:ResourceGroup tal-ci-rg [diff: ~provider]
├─ custom:azure:WebApplicationPlan web
+ │ └─ azure-native:web/v20200601:AppServicePlan tal-ci-web-plan create
├─ custom:azure:WebApplicationPlan batch
+ │ └─ azure-native:web/v20200601:AppServicePlan tal-ci-batch-plan create
├─ custom:azure:CloudflareCertificates
@imod
imod / CreateTableGeneratorMySqlRowFormatDynamic.java
Last active December 1, 2020 11:52
Liquibase extension to add `ROW_FORMAT=DYNAMIC` to each MySQL table create statement
package liquibase.sqlgenerator.ext.copy;
import liquibase.database.Database;
import liquibase.sql.Sql;
import liquibase.sql.UnparsedSql;
import liquibase.sqlgenerator.SqlGeneratorChain;
import liquibase.sqlgenerator.core.CreateTableGenerator;
import liquibase.statement.core.CreateTableStatement;
import liquibase.structure.DatabaseObject;
@imod
imod / shellCommand.ts
Created November 20, 2020 07:26
Pulumi resource to execute a shell command localy
import * as pulumi from "@pulumi/pulumi";
// Use like this:
// var command = "docker ps -a"
// const myResource = new ShellCommand("List Files", {command: command, env: {'FOO': 'bar'}, runAllways: false});
export interface ShellCommandArgs {
uniqueId?: pulumi.Input<string>;
command: pulumi.Input<string>;
env: object;
@imod
imod / custom_domain_with_managed_certificate.tf
Last active September 16, 2020 19:45
A terraform configuration generate a managed certificate and bind it to a custom domain on azure
resource "azurerm_app_service_custom_hostname_binding" "app_domain" {
hostname = "dummy.mydomain.com"
app_service_name = "my_app_name"
resource_group_name = "my_resource_group"
provisioner "local-exec" {
command = "./ensure_cert_for_domain.sh"
environment = {
RG_NAME = azurerm_app_service_custom_hostname_binding.app_domain.resource_group_name
APP_NAME = azurerm_app_service_custom_hostname_binding.app_domain.app_service_name
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters": {
"HostedZoneName": {
"Description": "The route53 HostedZoneName. For example, 'mydomain.org.' Don't forget the period at the end. (must exist!)",
"Default": "mydomain.net.",
"Type": "String"
},
"Subdomain": {
"Description": "The subdomain of the dns entry. For example, build -> jenkins.mydomain.org, 'build' is the subdomain.",
@imod
imod / Scdf2Application.java
Last active September 4, 2019 04:54
failing example of a custom Spring Cloud Dataflow Server
package ch.jobtool.scdf;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.session.SessionAutoConfiguration;
import org.springframework.cloud.common.security.CommonSecurityAutoConfiguration;
import org.springframework.cloud.dataflow.server.EnableDataFlowServer;
@SpringBootApplication(exclude = {
SessionAutoConfiguration.class,
@imod
imod / grid.css
Created November 10, 2017 07:08
column grid in css
.container {
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-gap: 5px;
}
.navigation {
grid-column: span 3;
}
Archive: yooture.admin.web.war
testing: META-INF/ OK
testing: META-INF/MANIFEST.MF OK
testing: css/ OK
testing: js/ OK
testing: WEB-INF/ OK
testing: WEB-INF/classes/ OK
testing: WEB-INF/classes/yooture/ OK
testing: WEB-INF/classes/yooture/admin/ OK
testing: WEB-INF/classes/yooture/admin/web/ OK