Skip to content

Instantly share code, notes, and snippets.

View archenroot's full-sized avatar
🏠
Working from home

Ladislav Zitka archenroot

🏠
Working from home
View GitHub Profile
docker network ls
docker network create --driver bridge isolated_network ## create ~ create custom network, bridge ~ use a bridge network, isolated_network ~ name of the custom network
docker network isolated_network
docker network inspect isolated_network
docker run -d --net=isolated_network --name nodeapp -p 3000:3000 abhinavkorpal/node ## net ~ run container in network, mongodb ~ link to this containe by name
@archenroot
archenroot / mysqld
Created August 10, 2017 10:41 — forked from inouetakuya/mysqld
/etc/logrotate.d/mysqld
# cat /etc/logrotate.d/mysqld
# This logname can be set in /etc/my.cnf
# by setting the variable "err-log"
# in the [safe_mysqld] section as follows:
#
# [safe_mysqld]
# err-log=/var/log/mysqld.log
#
# If the root user has a password you have to create a
@archenroot
archenroot / sourceforge.to.github.impor.markdown
Created August 20, 2017 10:35 — forked from binarytemple/sourceforge.to.github.impor.markdown
import a sourceforge project (with full history) to github

In order to clone the TVN application from sourceforge to github I performed the following steps.

rsync -av rsync://tnv.cvs.sourceforge.net/cvsroot/tnv/* .
svn export --username=guest http://cvs2svn.tigris.org/svn/cvs2svn/trunk cvs2svn-trunk
cp ./cvs2svn-trunk/cvs2git-example.options ./cvs2git.options
vim cvs2git.options
cvs2svn-trunk/cvs2git --options=cvs2git.options --fallback-encoding utf-8
git@github.com:binarytemple/tnv.git tnv-github
git clone git@github.com:binarytemple/tnv.git tnv-github
@archenroot
archenroot / README.md
Created August 21, 2017 20:52 — forked from jmruc/README.md
Generating pom.xml from gradle

To generate a pom.xml file just run gradle writeNewPom

If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")

@archenroot
archenroot / Application.java
Last active October 17, 2017 00:38
Springboot JPA with enum
package org.archenroot.integration.commons.archive_service.app;
import org.archenroot.integration.commons.archive_service.app.security.SecurityConfig;
import org.archenroot.integration.commons.archive_service.backend.domain.entity.GlobalConfiguration;
import org.archenroot.integration.commons.archive_service.backend.service.UserAccountService;
import org.archenroot.integration.commons.archive_service.backend.util.LocalDateJpaConverter;
import org.archenroot.integration.commons.archive_service.ui.AppUI;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
@archenroot
archenroot / terraform-code-failing.tf
Last active November 6, 2019 11:17
Terraform AWS Provider Issue with ECS Service Tagging
resource "aws_ecs_service" "ignore_changes_task_definition" {
count = var.enabled && var.ignore_changes_task_definition ? 1 : 0
name = module.default_label.id
task_definition = "${join("", aws_ecs_task_definition.default.*.family)}:${join("", aws_ecs_task_definition.default.*.revision)}"
desired_count = var.desired_count
deployment_maximum_percent = var.deployment_maximum_percent
deployment_minimum_healthy_percent = var.deployment_minimum_healthy_percent
health_check_grace_period_seconds = var.health_check_grace_period_seconds
launch_type = var.launch_type
platform_version = var.launch_type == "FARGATE" ? var.platform_version : null