apt install bbswitch
-
To run bbswitch without bumblebeed on system startup, do not forget to add bbswitch to /etc/modules-load.d.
/etc/modprobe.d/bbswitch.conf options bbswitch load_state=0 unload_state=1
nano /etc/modules-load.d bbswitch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import org.springframework.boot.web.client.RestTemplateBuilder; | |
import org.springframework.cloud.client.loadbalancer.LoadBalanced; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.hateoas.MediaTypes; | |
import org.springframework.hateoas.hal.Jackson2HalModule; | |
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; | |
import org.springframework.web.client.RestTemplate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.function.BooleanSupplier; | |
import java.util.function.Consumer; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import com.jcraft.jsch.JSch; | |
/** | |
* Demonstrates enabling and routing JSch (http://www.jcraft.com/jsch/) logging | |
* into SLF4J (http://www.slf4j.org/) logging using Java 8 |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.googlecode.catchexception.MyException; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.InjectMocks; | |
import org.mockito.Mock; | |
import org.mockito.junit.MockitoJUnitRunner; | |
import static com.googlecode.catchexception.apis.BDDCatchException.caughtException; | |
import static com.googlecode.catchexception.apis.BDDCatchException.when; | |
import static org.assertj.core.api.BDDAssertions.then; |