Skip to content

Instantly share code, notes, and snippets.

@scompo
scompo / bumpme
Last active October 15, 2019 09:11
Tue Oct 15 09:11:12 UTC 2019
@scompo
scompo / hostname
Created September 19, 2016 17:20
Edited /etc/hostname
ubuntu-docker
@scompo
scompo / hostname
Last active September 19, 2016 17:21
Original /etc/hostname
ubuntu-base-vm
@scompo
scompo / hosts
Created September 19, 2016 17:10
Edited /etc/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 September 19, 2016 17:06
Original /etc/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 September 18, 2016 19:12
Original /etc/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 September 18, 2016 13:57
Add IP address on login prompt
#!/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 April 19, 2016 21:58
build.gradle coveralls (part 2)
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 April 19, 2016 21:56
.travis.yml for coveralls (part 2)
language: java
before_install:
- chmod +x ./gradlew
after_success:
- ./gradlew jacocoTestReport coveralls
jdk:
- oraclejdk8
@scompo
scompo / ApplicationTest.java
Created April 19, 2016 21:32
ApplicationTest without failingTest (part 2)
package com.github.scompo.walkstats;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class ApplicationTest {
@Test
public void passingTest() {