Skip to content

Instantly share code, notes, and snippets.

View simerplaha's full-sized avatar

Simer simerplaha

View GitHub Profile
@simerplaha
simerplaha / linode-security.md
Created June 2, 2017 07:06 — forked from eliangcs/linode-security.md
Basic security setup for a brand new Linode

Basic Security Setup for a Brand New Linode

Why

When you start a clean Linode, it isn't secured in the following aspects:

  • Allows root SSH login
  • Uses password authentication on SSH
  • Doesn't have a firewall
@simerplaha
simerplaha / Snake.scala
Created March 11, 2017 08:44 — forked from densh/Snake.scala
Snake game in 200 lines of Scala Native and SDL2 as demoed during Scala Matsuri 2017
import scalanative.native._
import SDL._
import SDLExtra._
@extern
@link("SDL2")
object SDL {
type Window = CStruct0
type Renderer = CStruct0
@simerplaha
simerplaha / GCMSender.scala
Created November 1, 2015 12:42 — forked from anonymous/GCMSender.scala
Part of server with the old akka (akka-typed version: https://gist.github.com/anonymous/28accfa8e5f3fe187c4d)
package app.actors
import akka.actor.{Actor, ActorLogging}
import argonaut._, Argonaut._
import infrastructure.GCM
import launch.RTConfig
import spray.client.pipelining._
import spray.http._
import spray.httpx.marshalling.Marshaller
@simerplaha
simerplaha / GCMSender.scala
Created November 1, 2015 12:42 — forked from anonymous/GCMSender.scala
A part of game server with akka-typed
package app.actors
import akka.event.Logging
import akka.http.scaladsl._
import akka.http.scaladsl.model.HttpHeader.ParsingResult
import akka.http.scaladsl.model._
import akka.stream.ActorMaterializer
import akka.typed.ScalaDSL._
import akka.typed._
import argonaut.Argonaut._