Skip to content

Instantly share code, notes, and snippets.

View billy-idle's full-sized avatar

Billy Idle billy-idle

View GitHub Profile

Calibre-web on FreeNAS

Creating the Jail

  • Step 1 - Name Jail and Choose FreeBSD Release

    • Name: calibre-jail
    • Jail Type: Default(Clone Jail)
    • Release: 11.3-RELEASE
@billy-idle
billy-idle / MVCPush.java
Created November 26, 2018 03:20
MVC "Push" Pattern.
package mvc.java.push;
import java.util.Observable;
import java.util.Observer;
import java.util.Random;
public class MVCPush {
public static void main(String[] args) {
// The Model doesn't know anything about the controller neither the view
@billy-idle
billy-idle / MVCPull.java
Created November 26, 2018 01:19
MVC "Pull" Pattern.
package mvc.java.pull;
import java.util.Observable;
import java.util.Observer;
import java.util.Random;
public class MVCPull {
public static void main(String[] args) {
// The Model doesn't know anything about the controller neither the view
@billy-idle
billy-idle / MVCPushFromScratch.java
Last active November 30, 2018 06:27
MVC "Push" Pattern from scratch.
package mvc.from.scratch.push;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
interface Observer<T> {
void update(T t);
}
@billy-idle
billy-idle / MVCPullFromScratch.java
Last active November 30, 2018 06:50
MVC "Pull" Pattern from scratch.
package mvc.from.scratch.pull;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
interface Observer {
void update();
}