Skip to content

Instantly share code, notes, and snippets.

Mauro Scomparin scompo

Block or report user

Report or block scompo

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
@scompo
scompo / hostname
Created Sep 19, 2016
Edited /etc/hostname
View hostname
ubuntu-docker
@scompo
scompo / hostname
Last active Sep 19, 2016
Original /etc/hostname
View hostname
ubuntu-base-vm
@scompo
scompo / hosts
Created Sep 19, 2016
Edited /etc/hosts
View hosts
127.0.0.1 localhost
127.0.1.1 ubuntu-docker
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
@scompo
scompo / hosts
Created Sep 19, 2016
Original /etc/hosts
View hosts
127.0.0.1 localhost
127.0.1.1 ubuntu-base-vm
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
@scompo
scompo / rc.local
Created Sep 18, 2016
Original /etc/rc.local
View rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@scompo
scompo / rc.local
Created Sep 18, 2016
Add IP address on login prompt
View rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@scompo
scompo / build.gradle
Created Apr 19, 2016
build.gradle coveralls (part 2)
View build.gradle
plugins {
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.6.3'
}
apply plugin: 'java'
compileJava{
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
@scompo
scompo / .travis.yml
Created Apr 19, 2016
.travis.yml for coveralls (part 2)
View .travis.yml
language: java
before_install:
- chmod +x ./gradlew
after_success:
- ./gradlew jacocoTestReport coveralls
jdk:
- oraclejdk8
@scompo
scompo / ApplicationTest.java
Created Apr 19, 2016
ApplicationTest without failingTest (part 2)
View ApplicationTest.java
package com.github.scompo.walkstats;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class ApplicationTest {
@Test
public void passingTest() {
@scompo
scompo / .travis.yml
Created Apr 19, 2016
Broken .travis.yml (part 2)
View .travis.yml
language: java
jdk:
- oraclejdk8
You can’t perform that action at this time.