Skip to content

Instantly share code, notes, and snippets.

View mat-work's full-sized avatar

Matteo mat-work

View GitHub Profile
@mat-work
mat-work / Dockerfile
Created August 1, 2024 07:50 — forked from dbluhm/Dockerfile
Askar DB Provision Behavior test
FROM python:3.9-slim
WORKDIR /app
RUN pip install aries-askar
CMD ["python", "main.py"]
@mat-work
mat-work / deploy.sh
Last active July 23, 2024 17:14
Test Deployment
#!/bin/bash
# Variables
HELM=helm
KUBECTL=kubectl
CHART=oci://sicpa.jfrog.io/dts-charts/edison-core
VERSION=0.4.3
VALUES=swissign-poc.yaml
APPNAME=swissign-poc-app
NAMESPACE=swissign-poc
@mat-work
mat-work / code_flows.md
Created May 7, 2024 18:16 — forked from Riebart/code_flows.md
Thoughts on git branch workflows and microservice code organization

Comparing branching and workflow strategies

Summary of existing

There's several existing strategies for deploying and managing development work and release. They each have their own opinions, but roughly cover a few major situations:

  • Developing a new feature
  • Which branches should be, at all times, deployable, tested code
  • Under what conditions a code review or approval is required to merge code into a new branch
  • How many deployment environments (e.g. production only, or staging and production) you intend to have available, and to whom
@mat-work
mat-work / application.properties
Created February 1, 2023 20:01 — forked from lbroudoux/application.properties
SpringBoot Kafka producer scram-sha authentication #spring #kafka
# Kafka configuration properties for SCRAM-SHA-512 authentication and TLS transport.
spring.kafka.producer.bootstrap-servers=scram-cluster-kafka-bootstrap-kafka-test.apps.kubernetes.domain.com:443
spring.kafka.producer.properties.ssl.truststore.location=/Users/lbroudou/Development/kafka-test/scram-cluster-ca.p12
spring.kafka.producer.properties.ssl.truststore.password=LoUk0HtOd8tD
spring.kafka.producer.properties.ssl.truststore.type=PKCS12
spring.kafka.producer.properties.security.protocol=SASL_SSL
spring.kafka.producer.properties.sasl.mechanism=SCRAM-SHA-512
spring.kafka.producer.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="scram-user" password="tDtDCT3pYKE5";
@mat-work
mat-work / resign-ipa.md
Created January 26, 2023 21:29 — forked from ryantan/resign-ipa.md
How to resign an .ipa

How to Resign an iOS App

Let's say you receive an app (e.g. MyApp.ipa) from another developer, and you want to be able to install and run it on your devices (by using ideviceinstaller, for example).

Or your certificates and provision profiles have expired and you want to provide a new build to your clients without having to make a new build on the latest XCode or iOS SDK.

Prepare New Signing Assets

The first step is to attain a Provisioning Profile which includes all of the devices you wish to install and run on. Ensure that the profile contains a certificate that you have installed in your Keychain Access (e.g. iPhone Developer: Some Body (XXXXXXXXXX) ). Download the profile (MyProfile.mobileprovision) so you can replace the profile embedded in the app.

@mat-work
mat-work / authHandler.ts
Created September 1, 2022 16:30 — forked from Arvinje/authHandler.ts
Lambda Authorizer for AWS API Gateway in Typescript
import axios from 'axios'
import jwt from 'jsonwebtoken'
import jwkToPem from 'jwk-to-pem'
import { AuthResponse, CustomAuthorizerEvent, PolicyDocument } from 'aws-lambda'
import { AxiosError, AuthError, ValidationError } from '../../shared/errors'
// For AWS Cognito: https://cognito-idp.<region>.amazonaws.com/<user pool id>
// refer to: http://amzn.to/2fo77UI
const iss = process.env.ISS
@mat-work
mat-work / gist:1a2679d7d996c647b2728bb0a781652a
Created June 23, 2022 08:43 — forked from 480/gist:3b41f449686a089f34edb45d00672f28
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@mat-work
mat-work / iterm2-solarized.md
Created June 23, 2022 08:21 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

{
"openapi": "3.0.1",
"info": {
"title": "walt.id ESSIF API",
"description": "The walt.id public API documentation",
"contact": {
"name": "walt.id",
"url": "https://walt.id",
"email": "[email protected]"
},
package com.example.demo;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.producer.Producer;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.common.serialization.StringDeserializer;
import org.apache.kafka.common.serialization.StringSerializer;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;