Skip to content

Instantly share code, notes, and snippets.

View mmonti's full-sized avatar
🏠
Working from home

Mauro Monti mmonti

🏠
Working from home
View GitHub Profile
@mmonti
mmonti / pipeline
Created February 28, 2020 17:45
Pipeline Pattern in Kotlin
package com.sunrun.fi.ingestion.input
import java.io.ByteArrayOutputStream
import java.nio.file.Paths
import java.util.zip.ZipInputStream
interface Step<I, O> {
fun process(input : I) : O
}
Basic steps: https://die-antwort.eu/techblog/2017-12-setup-raspberry-pi-for-kiosk-mode/
/boot/cmdline.txt
```
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty3 quiet splash loglevel=0 logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles root=PARTUUID=45acf583-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
```
/boot/config.txt
```
@mmonti
mmonti / The Technical Interview Cheat Sheet.md
Created January 24, 2017 06:44 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@mmonti
mmonti / java-8-lambdas-streams
Created September 22, 2015 22:54
Oracle Massive Open Online Course: Java SE 8 Lambdas and Streams
Lesson 1: Lambda Expressions
This week covers the new lambda expressions feature added to Java SE 8. The lessons cover:
Why lambda expressions are needed in Java.
Why this feature was added to Java after twenty years.
The syntax of lambda expressions.
How to use lambda expressions and the rules that govern their use.
Examples of classes and methods that use lambda expressions like the new removeIf and replaceAll methods in the Collections API.
We provide video instruction along with written tutorials that guide you through the process. Please watch each video carefully to ensure that you have your system properly set up to complete this lesson. The videos and tutorials are listed sequentially, and we recommend that you use the instructional materials in that order.
@mmonti
mmonti / docker-remote-api
Last active November 6, 2015 09:39
Docker Remote API
http://www.campalus.com/enable-remote-tcp-connections-to-docker-host-running-ubuntu-15-04/
curl -X GET http://127.0.0.1:2375/images/json
@mmonti
mmonti / ConfigurableDelay.java
Last active August 29, 2015 14:19
Operation to "delay" item emission from a sequence using Observables.
/**
*
*/
public class ConfigurableDelay<T> implements Observable.Operator<T, T> {
private final Func1<T, TimeConfiguration> itemToTime;
private final Scheduler scheduler;
public ConfigurableDelay(final Func1<T, TimeConfiguration> itemToTime) {
this(itemToTime, Schedulers.computation());
@mmonti
mmonti / GitWorkflow.txt
Last active August 29, 2015 14:14
Git Workflow
https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
http://nvie.com/posts/a-successful-git-branching-model/