Skip to content

Instantly share code, notes, and snippets.

View 0xdevalias's full-sized avatar
👀
Open to opportunities

Glenn 'devalias' Grant 0xdevalias

👀
Open to opportunities
View GitHub Profile
@0xdevalias
0xdevalias / play-framework-stuff.md
Last active August 29, 2015 14:05
Play framework libraries, etc
  • Play Framework - Play Framework makes it easy to build web applications with Java & Scala.
  • Akka - Akka is a toolkit and runtime for building highly concurrent, distributed, and fault tolerant event-driven applications on the JVM.

Authentication/Authorisation

Authorisation

  • Deadbolt - Deadbolt is a powerful, comprehensive authorization module for the Play framework.

Authentication

@0xdevalias
0xdevalias / octopress_github.html.diff
Created August 17, 2014 01:50
Slight modifications to Octopress GitHub Aside to not try and show repo's when configured to show 0
diff --git a/source/_includes/asides/github.html b/source/_includes/asides/github.html
index bdc970f..8675623 100644
--- a/source/_includes/asides/github.html
+++ b/source/_includes/asides/github.html
@@ -1,12 +1,15 @@
{% if site.github_user %}
<section>
<h1>GitHub</h1>
+ {% if site.github_repo_count > 0 %}
<ul id="gh_repos">
@0xdevalias
0xdevalias / reactiveMongoVersionedModel.scala
Last active August 29, 2015 14:05
Basic example of how a 'versioned' model might be implementable with ReactiveMongo
// Expanding on basic case from 'Use Readers to deserialize documents automatically' http://reactivemongo.org/releases/0.10/documentation/tutorial/find-documents.html
case class Person(id: BSONObjectID, firstName: String, lastName: String, age: Int)
object Person {
implicit object PersonReader extends BSONDocumentReader[Person] {
def read(doc: BSONDocument): Person = {
// Common fields
val id = doc.getAs[BSONObjectID]("_id").get
val version = doc.getAs[Int]("_version").get
@0xdevalias
0xdevalias / scala-cake-cbdi.md
Last active August 29, 2015 14:06
Scala CAKE / Component Based Dependency Injection
@0xdevalias
0xdevalias / my-opinionated-typesafe-stack.md
Last active August 29, 2015 14:10
My Opinionated Typesafe Stack
@0xdevalias
0xdevalias / kiwicon-2014-notes.md
Created December 15, 2014 03:04
My random notes from Kiwicon 8 (2014)
@0xdevalias
0xdevalias / new-server-notes.md
Last active August 29, 2015 14:11
Random new server type notes
@0xdevalias
0xdevalias / un-xecryption.py
Created January 12, 2015 12:38
Somewhat manual, pretty hacky 'toolkit' for breaking XECryption
# Somewhat manual, pretty hacky 'toolkit' for breaking XECryption
with open ("enc.txt", "r") as encfile:
encdata=encfile.read().replace('\n', '')
encsplit = encdata.split(".")
#print encsplit
encsplitlen = len(encsplit)
print "Total numbers: {}".format(encsplitlen)
@0xdevalias
0xdevalias / places-to-work.md
Last active September 25, 2018 01:36
Places it would be cool to work
@0xdevalias
0xdevalias / hshact.md
Last active August 29, 2015 14:19
Snippets for HS.HACT 2015