Skip to content

Instantly share code, notes, and snippets.

View Vad1mo's full-sized avatar
💭
🎱 ⚙️

Vadim Bauer Vad1mo

💭
🎱 ⚙️
View GitHub Profile
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ical.marudot.com//iCal Event Maker
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Asia/Shanghai
LAST-MODIFIED:20230407T050750Z
TZURL:https://www.tzurl.org/zoneinfo-outlook/Asia/Shanghai
X-LIC-LOCATION:Asia/Shanghai
BEGIN:STANDARD
@Vad1mo
Vad1mo / pom.xml
Last active June 12, 2019 23:53
Spring Boot Hello World POM
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.5.RELEASE</version>
</parent>
<groupId>com.example</groupId>
@Vad1mo
Vad1mo / docker-private-registries
Last active July 19, 2017 06:19 — forked from salex89/docker-private-registries
List of private docker repositories (self-hosted and SaaS) other than Docker Hub
Portus - http://port.us.org/
Quay - https://quay.io/
Harbor - https://vmware.github.io/harbor/
Atomic Registry - http://www.projectatomic.io/registry/
Nexus Repository Manager OSS 3.xx - https://www.sonatype.com/nexus-repository-oss
"Official" Docker Registry 2.0 - https://docs.docker.com/registry/
"Registry For Enterprises" - https://private-docker-registry.com/
@Vad1mo
Vad1mo / README.md
Created April 13, 2017 20:23 — forked from omidraha/README.md
Authentication and Authorization Concepts for MicroServices

auth with microservices

Authorization and Authentication are hard. when you only have to implement them once (as you do within a monolith) instead of over and over again, it makes the developer happy :-), and maybe leads to less implementation failures.

When you have a bunch of microservices, this is something that has to be considered.

Implement it once or in every microservice, or something in between?

@Vad1mo
Vad1mo / jquery.
Created February 17, 2017 07:15
Display Hello jquery
jQuery(function($) {
$(document).ready(function() {
let params = new URL(window.location).searchParams;
let fn = params.get('first_name');
if (fn) {
$("h1.av-special-heading-tag").text("Splendit "+fn+"!");
}
});
});

Keybase proof

I hereby claim:

  • I am vad1mo on github.
  • I am vad1mo (https://keybase.io/vad1mo) on keybase.
  • I have a public key ASDUx116uUTYHoLP4kOJzq1xanNdeSe8w1xwYv7fpSlg8go

To claim this, I am signing this object:

@Vad1mo
Vad1mo / example
Last active February 15, 2016 16:46
Working with Docker images quick and dirty
# build Image
docker build -t custom-slave https://gist.github.com/Vad1mo/53eb8850d27b5e3d5c97(RAW)
# create container and run to verify the results
docker run -ti --rm custom-slave /bin/bash
@Vad1mo
Vad1mo / Dockerfile
Last active February 15, 2016 16:33
Docker Buildfile for custom Jenkins slave.
# This Dockerfile is used to build an image containing basic stuff to be used as a Jenkins slave build node.
FROM java:8-jdk
MAINTAINER Vadim Bauer <hello@8gears.com>
# Install and configure a basic SSH server
RUN apt-get update &&\
apt-get install -y openssh-server &&\
apt-get clean -y && rm -rf /var/lib/apt/lists/* &&\
sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd &&\
mkdir -p /var/run/sshd
@Vad1mo
Vad1mo / COSStreamEncodingDecoding.java
Created September 20, 2015 13:39
PDFBox Test Case for error "Cannot read while there is an open stream writer"
package org.apache.pdfbox.regression;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.transform.TransformerException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDDocumentCatalog;
{
"document":{
"id":"568a3586-b30a-4f2d-b32d-cba89f0b780b",
"invoice":{
"context":{
"test":true,
"guideline":{
"namespace":"urn:ferd:CrossIndustryDocument:invoice:",
"version":"V1P0",
"conformanceLevel":"BASIC"