Skip to content

Instantly share code, notes, and snippets.

View ahane's full-sized avatar

Alec Hanefeld ahane

  • Berlin, Germany
View GitHub Profile
@ahane
ahane / ssh_tunnels.sh
Created May 10, 2021 07:20 — forked from billautomata/ssh_tunnels.sh
ssh port forwarding cheatsheet
# local port forwarding
# the target host 192.168.0.100 is running a service on port 8888
# and you want that service available on the localhost port 7777
ssh -L 7777:localhost:8888 [email protected]
# remote port forwarding
# you are running a service on localhost port 9999
# and you want that service available on the target host 192.168.0.100 port 12340
@ahane
ahane / plink-plonk.js
Created March 7, 2020 20:08 — forked from tomhicks/plink-plonk.js
Listen to your web pages
object GaussianDemo {
def main(args: Array[String]): Unit = {
implicit val model = DirectedModel()
implicit val random = new scala.util.Random(0)
val mean = new DoubleVariable(10)
val variance = new DoubleVariable(1.0)
val data = for (i <- 1 to 1000) yield new DoubleVariable :~ Gaussian(mean, variance)
// data.take(50).foreach(println(_))
@ahane
ahane / _.md
Created April 24, 2013 06:01
Reusable Bar Char
@ahane
ahane / _.md
Created April 24, 2013 06:01
Reusable Bar Char
@ahane
ahane / _.md
Created April 24, 2013 06:00
Reusable Bar Char
@ahane
ahane / _.md
Created April 24, 2013 02:53
Tributary inlet
@ahane
ahane / _.md
Created February 22, 2013 00:14
INFO247 / Lab 5 / #1