Skip to content

Instantly share code, notes, and snippets.

View justgook's full-sized avatar
:octocat:

Romāns Potašovs justgook

:octocat:
View GitHub Profile
/* Non-SSL is simply App() */
const rooms = new Map();
const { TextEncoder } = require("util");
const NewUser = 10;
const UserLeave = 11;
const RoomData = 12;
const YourAreMaster = 14;
const YourAreSlave = 15;
@justgook
justgook / proxy-ws
Created January 24, 2020 09:46
just bare ws proxy
/* Non-SSL is simply App() */
const rooms = new Map();
const { TextEncoder } = require("util");
const NewUser = 10;
const UserLeave = 11;
const RoomData = 12;
const YourAreMaster = 14;
const YourAreSlave = 15;
package protocols
import play.api.libs.json._
/**
* Created by Roman Potashow on 30.06.2016.
*/
//TODO rename to Schema...Builder
case class Settings(name: String, label: String, properties: List[Settings.Property])
package protocols
import play.api.libs.functional.syntax._
import play.api.libs.json.{Format, JsPath, Json}
/**
* Created by Roman Potashow on 30.06.2016.
*/
package actors
import actors.PrinterActor.{PrinterStateUpdate, Status => PrinterStatus}
import akka.actor.{Actor, ActorLogging, ActorRef, Props}
import play.api.Logger
import play.api.libs.json.Json
import protocols.Connection.Configuration
/**
package actors
/**
* Created by Roman Potashow on 17.06.2016.
*/
import actors.HardwareProtocolsSupportActor.Protocol
import akka.actor.{Actor, ActorLogging, ActorRef, Props}
import gnieh.diffson.playJson._
import play.api.Logger
package actors
/**
* Created by Roman Potashow on 17.06.2016.
*/
import actors.HardwareProtocolsSupportActor.Protocol
import akka.actor.{Actor, ActorLogging, ActorRef, Props}
import play.api.Logger
@justgook
justgook / get
Created December 11, 2012 10:57
List of Keybinds in gnome
for k in `gsettings list-keys org.gnome.desktop.wm.keybindings`; do echo $k = `gsettings get org.gnome.desktop.wm.keybindings $k`; done