Skip to content

Instantly share code, notes, and snippets.

View mattfarina's full-sized avatar
┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻

Matt Farina mattfarina

┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻
View GitHub Profile
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'YOUR CODE HERE';
var disqus_url = 'http://example.com/{{ page.url }}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
server:
@@jekyll --server
render:
@@echo "Building the site..."
@@jekyll --no-future
minify:
@@echo "Minifying the CSS..."
@@java -jar _build/yuicompressor.jar --verbose --type css -o _site/path/to/style.css _site/path/to/style.css
@mattfarina
mattfarina / gist:6933353
Last active December 25, 2015 06:39
Looking at Composer for ideas in Go package management.

Summary: This document looks at composer from PHP for ideas around Go package management.

Composer is a command line tool for PHP to manage dependent packages. It can manage packages from a central registry, other registries, or from a list of projects themselves. Packages and versions are described in a composer.json file at the root of a project. For example:

{
  "name": "namespace/name",
  "description": "foo bar baz",
  "require": {
    "foo/bar": "1.*",

"bar/qux": "dev-master"

<?php
use OpenStack/OpenStack;
$options = array(
'endpoint' => 'https://example.identity.com/v2.0/',
'username' => 'awesomesauce',
'password' => 'cakeplease',
);

Keybase proof

I hereby claim:

  • I am mattfarina on github.
  • I am mattfarina (https://keybase.io/mattfarina) on keybase.
  • I have a public key whose fingerprint is D65A 0E4F 7836 7744 2D69 3D55 DC66 5B26 7D74 FD99

To claim this, I am signing this object:

// Provide credentials
$settings = array(
'username' => USERNAME,
'password' => PASSWORD,
'tenantid' => YOUR_TENANT_ID,
'endpoint' => IDENTITY_SERVICES_URL,
'transport' => '\HPCloud\Transport\PHPStreamTransport',
);
Bootstrap::setConfiguration($settings);

Projects not source controlled on Github

This is a short list (not difinitive) just to be used as an example set.

  • OpenStack
  • Linux kernel
  • Drupal (including thousands of contributed modules)
  • Wordpress
  • Ubuntu
  • PHP
  • Python
package main
import (
"errors"
"github.com/codegangsta/cli"
)
var e error
@mattfarina
mattfarina / orgs.md
Last active December 22, 2015 16:58
Organizations Using Glide
± GOOS=linux glide up
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for github.com/codegangsta/cli.
[INFO] Fetching updates for github.com/Masterminds/semver.
[INFO] Fetching updates for gopkg.in/yaml.v2.
[INFO] Fetching updates for code.google.com/p/goprotobuf.
[INFO] Fetching updates for k8s.io/kubernetes.
[INFO] Fetching updates for github.com/deis/pkg.
[INFO] Fetching updates for golang.org/x/crypto.
[INFO] Fetching updates for github.com/Masterminds/vcs.