Skip to content

Instantly share code, notes, and snippets.

@lexcilius
lexcilius / quick-ref-jekyll-markdown.md
Created August 7, 2018 05:29 — forked from roachhd/quick-ref-jekyll-markdown.md
Jekyll Markdown Quick Reference

#Jekyll Markdown Quick Reference

####Write in simply awesome markdown

layout: post
title: Markdown Style Guide
---
@lexcilius
lexcilius / oi.js
Created July 19, 2018 03:15 — forked from PaulCapestany/oi.js
Dan Kaminsky's DefCon RNG challenge
// TLDR: Oi, Barnes. We'll miss ya. Here's a grimy RNG in your honor.
// node oi.js or paste the below into your favorite browser's JS console.
// DEFCON CHALLENGE: Break this!
function millis() { return Date.now(); }
function flip_coin() { n=0; then = millis()+1; while(millis()<=then) { n=!n; } return n; }
function get_fair_bit() { while(1) { a=flip_coin(); if(a!=flip_coin()) { return(a); } } }
function get_random_byte(){ n=0; bits=8; while(bits--){ n<<=1; n|=get_fair_bit(); } return n; }
report_console = function() { while(1) { console.log(get_random_byte()); }}
<?php
use Illuminate\Auth\UserProviderInterface as UserProvider;
use Illuminate\Auth\UserInterface as UserInterface;
class LdapProvider implements UserProvider{
public function __construct(){}
/**