Skip to content

Instantly share code, notes, and snippets.

View deanc's full-sized avatar
☁️

Dean Clatworthy deanc

☁️
View GitHub Profile
@deanc
deanc / use-auth.jsx
Last active December 30, 2019 21:05 — forked from gragland/use-auth.jsx
React Hook recipe from https://usehooks.com
import React, { useState, useEffect, useContext, createContext } from "react";
import * as firebase from "firebase/app";
import "firebase/auth";
import firebaseConfig from "../config/firebase";
// Add your Firebase credentials
firebase.initializeApp(firebaseConfig);
const AuthContext = createContext();
@deanc
deanc / .block
Created February 20, 2019 13:31 — forked from Fil/.block
Stressed Cells 1
license: gpl-3.0
# memcached requires libevent
cd /usr/local/src
curl -O https://github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz
tar -xvzf libevent-2.0.17-stable.tar.gz
cd libevent-2.0.17-stable*
./configure
make
sudo make install
# Compile memcached utility