Skip to content

Instantly share code, notes, and snippets.

View BrynM's full-sized avatar

Bryn Mosher BrynM

View GitHub Profile
@briankassouf
briankassouf / main.go
Created January 25, 2015 00:01
Imgur-esque hash generator written in Go
package main
import (
"crypto/rand"
"fmt"
"log"
)
func main() {
hashGetter := make(chan string)
@JulianRamirez
JulianRamirez / gist:a76e41c2691ee00f3851
Last active August 29, 2015 14:11 — forked from jazzychad/gist:07c0c6da5709202e8106
In light of git having a security vulnerability it is time to update git. This gist will do just that if you're running on a mac and prefer to use the default git installation.
cd /tmp
curl -o git-2.2.1.tar.gz "https://www.kernel.org/pub/software/scm/git/git-2.2.1.tar.gz"
curl -o git-2.2.1.tar.sign "https://www.kernel.org/pub/software/scm/git/git-2.2.1.tar.sign"
# if you want to verify the tar signature
gpg --keyserver hkp://keys.gnupg.net --recv-keys 6092693E
gunzip git-2.2.1.tar.gz
gpg --verify git-2.2.1.tar.sign
# look for "Good signature"
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 4, 2024 21:33
A badass list of frontend development resources I collected over time.
@slevithan
slevithan / xregexp-lookbehind2.js
Created April 14, 2012 21:06
Simulating lookbehind in JavaScript (take 2)
// Simulating infinite-length leading lookbehind in JavaScript. Uses XRegExp.
// Captures within lookbehind are not included in match results. Lazy
// repetition in lookbehind may lead to unexpected results.
(function (XRegExp) {
function prepareLb(lb) {
// Allow mode modifier before lookbehind
var parts = /^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*)\)$/.exec(lb);
return {
@ziadoz
ziadoz / awesome-php.md
Last active April 17, 2024 21:06
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@moshen
moshen / nyan.pl
Created December 1, 2011 16:29
Terminal Nyancat 256 color
#!/usr/bin/env perl
use warnings;
use strict;
# Animation frames...
# Color ASCII escape sequences, gzipped and base64 encoded, because
# I thought 300 lines of animation frames was a little much.
my @frames = ( q(
H4sIAHywIU8AA+1d23XkOA797xT8oxBst+11z4QyMVQO+7ExbIAbydrdVXqCeJOEKNQZnzMURIq4
BEAU6jb19M/b59/vfz/fnv78z8uvj9u0+zz98yUFrrI6PG473nX8wA/68cSYI+fze/hlNkvz9fWV
@tessro
tessro / redis-server
Created December 16, 2009 14:20
A CentOS initscript for Redis
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid