Skip to content

Instantly share code, notes, and snippets.

View slachiewicz's full-sized avatar

Sylwester Lachiewicz slachiewicz

View GitHub Profile
@slachiewicz
slachiewicz / TestnetEthereumNetwork.md
Created October 25, 2017 09:31
Setup testnet Ethereum network with Docker

Setup testnet Ethereum network with Docker

Ethereum is a decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of downtime, censorship, fraud or third party interference.

This is step-by-step guide, how to setup testnet Ethereum network.

We'll setup ethereum testnet node in the docker container and write ruby json-rpc client. The difference between ethereum(Frontier) and testnet ethereum(Ropsten) networks is that the testnet used for development. The genesis block on the testnet was set with a very low difficulty so anyone can do minning. The coins mained in the testnet have no values. You can request some coins on the facuet or trying to mine it.

@slachiewicz
slachiewicz / docker-compose.yml
Created October 5, 2017 09:17 — forked from huksley/docker-compose.yml
Launches fully configured Graylog 2.3.1 instance
#
# Launches configured Graylog 2.3.1 instance
#
# - Docker-compose 1.16 required
# - Please configure following according to your network:
# * gelf-address URL (for each container)
# * GRAYLOG_WEB_ENDPOINT_URI
# - After launch define GELF tcp and GELF udp inputs in graylog web ui
# - Containers send logging to the graylog itself
# - By default tuned to 30 days retention
@slachiewicz
slachiewicz / meraki_strongswan_notes.md
Created August 22, 2017 19:24 — forked from psanford/meraki_strongswan_notes.md
connect to meraki client vpn from strongswan (ubuntu 16.04 edition)

These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.

Install the following packages:

apt-get install -y strongswan xl2tpd

Configure strong swan

@slachiewicz
slachiewicz / pr.md
Created July 25, 2017 16:05 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@slachiewicz
slachiewicz / svn-to-git.md
Created July 13, 2017 20:32 — forked from barrysteyn/svn-to-git.md
Migrate From SVN To GIT
@slachiewicz
slachiewicz / wildfly-install.sh
Last active February 24, 2017 22:50 — forked from freak0/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.1.final
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=10.1.0.Final
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
@slachiewicz
slachiewicz / split_tunneling.md
Created December 29, 2016 22:02 — forked from jagtesh/split_tunneling.md
Split Tunneling tutorial - with openconnect (tested, works with Cisco AnyConnect VPN) Source: http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2009-February/002990.html

Table of Contents

  1. DISCLAIMER 2. Status 3. Introduction 4. Security issues 5. DNS
@slachiewicz
slachiewicz / ConfigurationService.java
Created December 11, 2016 19:08 — forked from ajjain/ConfigurationService.java
Activiti custom serialization of process variables.
public class ConfigurationService {
/**
* The process engine configuration impl.
**/
private ProcessEngineConfigurationImpl processEngineConfigurationImpl;
/**
* The Custom vars.
*/
private List<CustomVariableType> CustomVars;
/**
@slachiewicz
slachiewicz / JsonVariableType.java
Created December 11, 2016 19:07 — forked from ajjain/JsonVariableType.java
Represents JSON variable type in Activiti. This supports serializing process variables as JSON strings as byte arrays. JSON serialization/deserialization uses Jackson APIs to transform.
import org.activiti.engine.ActivitiException;
import org.activiti.engine.impl.context.Context;
import org.activiti.engine.impl.persistence.entity.VariableInstanceEntity;
import org.activiti.engine.impl.variable.ByteArrayType;
import org.activiti.engine.impl.variable.ValueFields;
import org.codehaus.jackson.map.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**