Skip to content

Instantly share code, notes, and snippets.

rlemon / autobin.js
Last active Aug 29, 2015
auto bin gifs.
View autobin.js
// ==UserScript==
// @name SO Chat room gif autobinner
// @author Robert Lemon
// @version 0.0.32
// @namespace
// @description make rooms not suffer gifs
// @include*
// ==/UserScript==
(function(global) {
"use strict";
View rafael.php
require 'vendor/autoload.php';
use MonadPHP\ListMonad;
use MonadPHP\Maybe;
function index($key) {
return function ($arr) use ($key) {
return isset($arr[$key]) ? $arr[$key] : null;
nikic /
Created Sep 12, 2012
The new Secure Password Hashing API in PHP 5.5

The new Secure Password Hashing API in PHP 5.5

The [RFC for a new simple to use password hashing API][rfc] has just been accepted for PHP 5.5. As the RFC itself is rather technical and most of the sample codes are something you should not use, I want to give a very quick overview of the new API:

Why do we need a new API?

Everybody knows that you should be hashing their passwords using bcrypt, but still a surprising number of developers uses insecure md5 or sha1 hashes (just look at the recent password leaks). One of the reasons for this is that the crypt() API is ridiculously hard to use and very prone to programming mistakes.

You can’t perform that action at this time.