Skip to content

Instantly share code, notes, and snippets.

View predominant's full-sized avatar
🦄

Graham Weldon predominant

🦄
View GitHub Profile
04c6d35cecc09c976e653916cdc2f46422d3358908756faf6cf582ad32cbf4c94d2a8fd36a4aaaffe25e0203077bea718e0e5c12d6f610f7a1506a46940f25129b
$ tree
|-- bin
| |-- ash -> busybox
| |-- base64 -> busybox
| |-- busybox
| |-- cat -> busybox
| |-- catv -> busybox
| |-- chattr -> busybox
| |-- chgrp -> busybox
| |-- chmod -> busybox
diff --git a/gcc/ubsan.c b/gcc/ubsan.c
index 5cbc98d..d3bd8e3 100644
--- a/gcc/ubsan.c
+++ b/gcc/ubsan.c
@@ -1469,7 +1469,7 @@ ubsan_use_new_style_p (location_t loc)
expanded_location xloc = expand_location (loc);
if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
- || xloc.file == '\0' || xloc.file[0] == '\xff'
+ || xloc.file[0] == '\0' || xloc.file[0] == '\xff'
@predominant
predominant / changelog-cakephp.php
Created November 1, 2010 15:23
Automatically generate changelogs for CakePHP
<?php
$options = array(
'repo' => '/Users/predominant/Projects/cakephp/2.0/.git',
'titleOrder' => array(
'dev', 'alpha', 'beta', 'rc',
),
'regex' => '/(?<version>[\d\.]+)(?:-(?<title>[a-zA-Z]+)(?:(?<iteration>\d)?))?/',
'formats' => array(
'plaintext' => '| awk \'{print "Commit: ["$1"]\n"; $1=""; print "-"$0"\n"}\'',
'lighthouse' => '| awk \'{print "#### Commit: ["$1"](http://github.com/cakephp/cakephp/commit/"$1")\n"; $1=""; print $0"\n"}\'',
@predominant
predominant / gist:4006133
Created November 3, 2012 05:16
Database Structure for CakePHP Workshop at PHP Matsuri 2012
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` char(36) NOT NULL,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`)
using System;
using UnityEngine;
// ReSharper disable once CheckNamespace
namespace MotherTruckers.Vehicle
{
[Serializable]
public class Axle
{
public WheelCollider LeftWheel;

Keybase proof

I hereby claim:

  • I am predominant on github.
  • I am predominant (https://keybase.io/predominant) on keybase.
  • I have a public key ASCk6IFDCOj7HfIe5f9kDUDZD9sf67PN20O9qzxrSJzAGAo

To claim this, I am signing this object:

{
"type": "chef-solo",
"skip_install": true,
"prevent_sudo": false,
"execute_command": "echo 'vagrant' | {{ if .Sudo }}sudo -H -S -E{{ end }} chef-solo --no-color -c '{{ .ConfigPath }}' -j '{{ .JsonPath }}'",
"override": {
"generic-vmware": {
"execute_command": "echo 'ubuntu' | {{ if .Sudo }}sudo -H -S -E{{ end }} chef-solo --no-color -c '{{ .ConfigPath }}' -j '{{ .JsonPath }}'"
}
},
@predominant
predominant / gist:c38add95a33f8fc7cf3b
Created January 9, 2016 05:49
Chef-Server cookbook fail
😄 ~ cd chef-repo/cookbooks/r-chef-server/
😄 r-chef-server git:(feature/os-updates) ✗ kitchen list
Instance Driver Provisioner Verifier Transport Last Action
default-ubuntu-1404 Vagrant ChefZero Busser Ssh <Not Created>
default-ubuntu-1204 Vagrant ChefZero Busser Ssh <Not Created>
default-centos-71 Vagrant ChefZero Busser Ssh <Not Created>
default-centos-67 Vagrant ChefZero Busser Ssh <Not Created>
make deps gen
go get -u golang.org/x/tools/cmd/cover
go get -u golang.org/x/tools/cmd/vet
go get -u github.com/kr/vexp
go get -u github.com/eknkc/amber/...
go get -u github.com/eknkc/amber
go get -u github.com/jteeuwen/go-bindata/...
go get -u github.com/elazarl/go-bindata-assetfs/...
go get -u github.com/dchest/jsmin
go get -u github.com/franela/goblin