It's great for beginners. Then it turns into a mess.
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
To the tune of Lady Gaga - Bad Romance | |
http://www.youtube.com/watch?v=qrO4YZeyl0I | |
Oh, caught in a bad request | |
Oh, caught in a bad request | |
Rah, rah, oh, oh, oh | |
Roma, roma, ma | |
Gaga, ooh, la, la | |
Received a bad request |
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
#include "hemicube.h" | |
#define PACK_HEMICUBES 1 | |
static void get_hemicube_face_normal(int index, Vector3 *forward, Vector3 *left, Vector3 *up) { | |
// Unwrapped hemicube with positive-Z in the middle. | |
switch (index) { | |
case 0: *forward = Vector3(+1, 0, 0); *left = Vector3( 0, 1, 0); break; |
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
val hotswapAgentJarPath = Def.settingKey[Option[String]]("Path to hotswap-agent.jar, enables DCEVM in run and reStart") | |
// set hotswapAgentJarPath := Some("/Users/lbedubourg/local/hotswap-agent.jar") | |
hotswapAgentJarPath := sys.env.get("HOTSWAP_AGENT_JAR") | |
def hotswapJavaOptions(path: Option[String]) = path match { | |
case None => Seq() | |
case Some(p) => Seq("-XXaltjvm=dcevm", s"-javaagent:${p}=autoHotswap=true") | |
} |
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
def waitJitpack(group, module, hash) { | |
preBuild.dependsOn(tasks.create(name: "waitJitpack-${module}-${hash}") { thisTask -> | |
def url = "https://jitpack.io/${group.replace('.', '/')}/${module}/${hash}/${module}-${hash}.pom" | |
def backoffLimit = 7 | |
for (def backoffCount : (0..backoffLimit)) { | |
def connection = new URL(url).openConnection() as HttpURLConnection | |
def timeout = (2**backoffCount) * 5 * 1000; // exponential timeout | |
connection.setConnectTimeout(timeout) |
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 monix.execution.{Ack, Cancelable, Scheduler} | |
import monix.reactive.observers.Subscriber | |
import monix.reactive.{Observable, Observer} | |
import monix.reactive.subjects.PublishSubject | |
import scala.concurrent.Future | |
trait IncStore[State, InAction, OutAction] { self => | |
def initialState: State |
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
nix-build --attr system "./nixos.nix" -o result-closure | |
readlink -f result-closure > closure-nix-store-path.txt | |
rm -r system | |
mkdir system | |
nix copy ./result-closure --to file://./system |
After looking for alternatves to the suggested Router from Telekom (AVM FritzBox and HUawei Speedport), I've discovered the possibility of configuring my existing OpenWRT Router to act as gateway to the Telekom FTTH (Fiber To The Home) Magenta Zuhause package.
The WAN interface must be configured as follows (see your Telekom letter):
- Protocol:
PPPoE
- PAP/CHAP username: