Skip to content

Instantly share code, notes, and snippets.

View benbristow's full-sized avatar

Ben Bristow benbristow

View GitHub Profile
-----> uname: Linux dokku 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 1993 407 737 1 848 1397
Swap: 0 0 0
-----> docker version:
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Verifying my Blockstack ID is secured with the address 1J97m2GJHkLwr6WSHhmKaPd24uNZP4N4dT https://explorer.blockstack.org/address/1J97m2GJHkLwr6WSHhmKaPd24uNZP4N4dT
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: samdb
-- ------------------------------------------------------
-- Server version 5.0.45-community-nt
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@benbristow
benbristow / stash.php
Created November 20, 2017 16:27
Implementation of 'Rails.cache.fetch' using Stash PHP Library
<?php
use Stash\Driver\Redis;
use Stash\Pool;
class Cache {
public static function fetch(String $namespace, String $key, $expiresAfter, $callback) {
$pool = new Pool(new Redis());
$item = $pool->getItem($namespace . '/' . hash('sha256', $key));
$data = $item->get();
### Keybase proof
I hereby claim:
* I am benbristow on github.
* I am benbristow (https://keybase.io/benbristow) on keybase.
* I have a public key ASCApn9yp6zyU59A6P7jDlSkaWkEkxWBDo3Zg7JpZVoupAo
To claim this, I am signing this object:
mail:
image: "analogic/poste.io"
container_name: "mail"
ports:
- "25:25"
- "110:110"
- "143:143"
- "465:465"
- "587:587"
- "993:993"
Cheap ass games:
==========================
Digital:
http://store.steampowered.com/
http://www.greenmangaming.com/
http://getgamesgo.com/
http://store.indiegala.com/index.php/
https://www.humblebundle.com/store
http://www.shopto.net/product/search/platform/download
@benbristow
benbristow / gist:8280690
Created January 6, 2014 10:09
Labpunch Userstyle
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("lab.facepunch.com") {
body {
background-image:url('http://facepunch.com/fp/bg.png');
}
.col-md-8 {
background-color:#FFF;
}
#!/bin/bash
_kernver=$(uname -r | cut -d- -f 1)
_basever=$(uname -r | cut -d. -f -2)
[ -e "linux-${_basever}.tar.xz" ] || wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-${_basever}.tar.xz
[ -e "patch-${_kernver}.xz" ] || wget https://www.kernel.org/pub/linux/kernel/v3.x/patch-${_kernver}.xz
[ -e "xonar-01.patch" ] || wget https://gist.github.com/ipha/7831385/raw/69e172eb9336f9371a8fab6300ff2cbeaf622851/xonar-01.patch
[ -e "xonar-02.patch" ] || wget https://gist.github.com/ipha/7831385/raw/c23e88245d8ee3ea09fe5607496ee2d833aa3053/xonar-02.patch