Skip to content

Instantly share code, notes, and snippets.

View arm-clfs-tree.txt
$ tree
|-- bin
| |-- ash -> busybox
| |-- base64 -> busybox
| |-- busybox
| |-- cat -> busybox
| |-- catv -> busybox
| |-- chattr -> busybox
| |-- chgrp -> busybox
| |-- chmod -> busybox
View gcc-6.2.0-update-1.patch
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'
View keybase.md

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:

View Axle.cs
using System;
using UnityEngine;
// ReSharper disable once CheckNamespace
namespace MotherTruckers.Vehicle
{
[Serializable]
public class Axle
{
public WheelCollider LeftWheel;
View gist:aef2090d77a6cde7f917
{
"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 }}'"
}
},
View gist:c38add95a33f8fc7cf3b
😄 ~ 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>
View gist:3716dfe08b92339ee36c
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
View planetslice.cs
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 Aug 17, 2015
Drone error when deleting repo
View drone.log
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
View gist:d5ca124d6e9324d2cceb
search("users", "*:*").each do |user_data|
user user_data['id'] do
comment user_data['comment']
uid user_data['uid']
gid user_data['gid']
home user_data['home']
shell user_data['shell']
end
end