Skip to content

Instantly share code, notes, and snippets.

View nanomad's full-sized avatar

Giovanni Condello nanomad

View GitHub Profile
@nanomad
nanomad / xxtestme
Created May 18, 2014 09:54
Welcome document
<h1 id="welcome">Welcome to StackEdit! </h1>
<p>Hello, I am your first Markdown document within <strong>StackEdit</strong><a href="#fn:stackedit" id="fnref:stackedit" title="See footnote" class="footnote">1</a>. Don’t delete me, I can be helpful. I can be recovered anyway in the <code>Utils</code> tab of the <i class="icon-cog"></i> <code>Settings</code> dialog.</p>
<hr>
<h2 id="documents">Documents</h2>
<p><strong>StackEdit</strong> stores your documents in your browser, which means all your documents are automatically saved locally and are accessible <strong>offline!</strong></p>
@nanomad
nanomad / gist:48d6b105c7f940ee873c
Created October 16, 2014 07:45
How to build openjdk ArchLinux packages on OBS
How to build openjdk ArchLinux packages on OBS
==============================================
Set-up a project
----------------
- Create an account on https://build.opensuse.org/
- Create a new project (defaults to home:user) with relevant title and description
@nanomad
nanomad / obs-arch-openjdk-howto.md
Created October 16, 2014 07:46
How to build openjdk ArchLinux packages on OBS

How to build openjdk ArchLinux packages on OBS

Set-up a projectHow to build openjdk ArchLinux packages on OBS

Set-up a project

@nanomad
nanomad / PKGBUILD
Created March 29, 2015 09:38
lua-messagepack 0.3.2 PKGBUILD
# Maintainer: Florian Hahn <flo@fhahn.com>
# Edited by: Giovanni Condello <condellog@gmail.com>
pkgname=lua-messagepack
pkgdesc='A pure Lua implementation of msgpack.org.'
license=('MIT')
pkgver=0.3.2
pkgrel=1
depends=('lua')
provides=('lua-messagepack')
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
@nanomad
nanomad / JGroupsDemo.java
Created May 28, 2017 14:22
A simple JGroups demo
package it.tgi.demos;
import org.jgroups.*;
import static it.tgi.demos.JGroupsDemo.Role.MASTER;
import static it.tgi.demos.JGroupsDemo.Role.SLAVE;
/**
* Created by nanomad on 28/05/2017.
*/
PS C:\WINDOWS\system32> $env:HYPERV_VIRTUAL_SWITCH="BridgeEth"
PS C:\WINDOWS\system32> minishift start --show-libmachine-logs -v 9
Starting local OpenShift cluster using 'hyperv' hypervisor...
Found binary path at C:\tools\minishift\minishift.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:56525
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
package it.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
public class FixMe {
public static void main(String[] args) {
Integer[] integers = new Integer[]{1, 2, 2, 4, 5, -1, -2, 23, 42, -1};
[package]
name = "testing"
version = "0.1.0"
authors = ["xx xx <xxxx@nowhere.org>"]
[dependencies]
tokio-mqtt = {git = "https://github.com/proman21/tokio-mqtt"}
@nanomad
nanomad / pom.xml
Last active October 31, 2017 09:19
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<source>${java.version}</source>
<target>${java.version}</target>
<showWarnings>true</showWarnings>
<compilerArgs>