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'

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:

using System;
using UnityEngine;
// ReSharper disable once CheckNamespace
namespace MotherTruckers.Vehicle
{
[Serializable]
public class Axle
{
public WheelCollider LeftWheel;
{
"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
protected void PlaneSplit1() {
Mesh mesh = this.GetMesh();
Vector3[] vertices = mesh.vertices;
for (int pass = 0; pass < this.Passes; pass++) {
// Pick a random point in the Sphere
Vector3 splitVector = Random.insideUnitSphere;
for (int i = 0; i < mesh.vertices.Length; i++) {
// Get the DOT product of that random point
@predominant
predominant / drone.log
Created August 17, 2015 05:49
Drone error when deleting repo
2015/08/17 01:55:16 http: panic serving 10.68.10.81:64815: runtime error: invalid memory address or nil pointer dereference
goroutine 26 [running]:
net/http.func·011()
/usr/local/go/src/pkg/net/http/server.go:1100 +0xb7
runtime.panic(0xb3b7a0, 0x11ae913)
/usr/local/go/src/pkg/runtime/panic.c:248 +0x18d
github.com/drone/drone/plugin/remote/github.DeleteKey(0xc2080457c0, 0xc20816cb78, 0x4, 0xc20816cb90, 0x7, 0xc208172460, 0x1b, 0xc2080aa780, 0x17d, 0x0, ...)
/var/cache/drone/src/github.com/drone/drone/plugin/remote/github/helper.go:250 +0xfe
github.com/drone/drone/plugin/remote/github.(*GitHub).Deactivate(0xc2080265b0, 0xc208042c60, 0xc208056e00, 0xc208160310, 0x64, 0x0, 0x0)
/var/cache/drone/src/github.com/drone/drone/plugin/remote/github/github.go:207 +0x164