Skip to content

Instantly share code, notes, and snippets.

Victor Alenkov BorzdeG

Block or report user

Report or block BorzdeG

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@BorzdeG
BorzdeG / # pebble-sdk - 2018-08-20_10-54-17.txt
Created Aug 20, 2018
pebble-sdk (pebble/pebble-sdk/pebble-sdk) on macOS 10.13.6 - Homebrew build logs
View # pebble-sdk - 2018-08-20_10-54-17.txt
Homebrew build logs for pebble/pebble-sdk/pebble-sdk on macOS 10.13.6
Build date: 2018-08-20 10:54:17
View brew_install.sh
#!/usr/bin/env bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap buo/cask-upgrade
brew tap caskroom/fonts
brew tap caskroom/versions
brew tap homebrew/boneyard
brew tap homebrew/services
@BorzdeG
BorzdeG / docker.update_jdk.bash
Last active Feb 16, 2017
download docker image and unpack jdk
View docker.update_jdk.bash
#!/usr/bin/env bash
JDK_TAG=8_jdk-dcevm_unlimited
DOCKER_IMAGE='anapsix/alpine-java:'$JDK_TAG
JDK_HOME=~/bin/$JDK_TAG
docker pull ${DOCKER_IMAGE}
update_jdk() {
echo 'update JDK version...'
@BorzdeG
BorzdeG / Dockerfile
Last active Sep 21, 2016
docker-custom-oracle-jvm
View Dockerfile
FROM buildpack-deps:jessie-curl
ENV JAVA_DOWNLOAD http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz
ENV JAVA_DIR_ROOT /usr/lib/jvm/
ENV JAVA_HOME $JAVA_DIR_ROOT/jdk1.7.0_79
RUN set -x \
&& mkdir -p $JAVA_DIR_ROOT \
&& wget -c -O $JAVA_DIR_ROOT/jdk.tar.gz --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "$JAVA_DOWNLOAD" \
&& cd $JAVA_DIR_ROOT \
@BorzdeG
BorzdeG / docker_gc.bash
Created Aug 12, 2016
docker garbage images
View docker_gc.bash
docker_gc(){
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null
}
View checkstyle-configuration.xml
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="charset" value="UTF-8" />
<property name="severity" value="error" />
<!--Filters: http://checkstyle.sourceforge.net/config_filters.html -->
<module name="SuppressWarningsFilter" />
View CamelCaseTests.java
package demo;
import org.apache.commons.lang3.text.WordUtils;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class CamelCaseTests {
@DataProvider(name = "data")
public static Object[][] data() {
@BorzdeG
BorzdeG / ApplicationContextProvider.java
Created Sep 25, 2015
get Application Context in not spring beans
View ApplicationContextProvider.java
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Component;
@Component
public class ApplicationContextProvider implements ApplicationContextAware {
@BorzdeG
BorzdeG / Spring.Boot.Server.Random.Port.java
Created Sep 15, 2015
Spring Boot :: set random server port
View Spring.Boot.Server.Random.Port.java
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.context.annotation.Configuration;
import java.io.IOException;
import java.net.ServerSocket;
@Configuration
@BorzdeG
BorzdeG / ~\.IntelliJIdeaNN\config\templates.xml
Last active Feb 8, 2016
Live template: field LOG for Slf4J
View ~\.IntelliJIdeaNN\config\templates.xml
<templateSet group="user">
<template name="log" value="@SuppressWarnings(&quot;unused&quot;) private static final transient Logger LOG = LoggerFactory.getLogger($CLASS$.class.getName());" description="field LOG for Slf4J" toReformat="false" toShortenFQNames="true">
<variable name="CLASS" expression="className()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_CODE" value="false" />
<option name="JAVA_STATEMENT" value="false" />
<option name="JAVA_EXPRESSION" value="false" />
<option name="JAVA_DECLARATION" value="true" />
<option name="JAVA_COMMENT" value="false" />
<option name="JAVA_STRING" value="false" />
You can’t perform that action at this time.