Skip to content

Instantly share code, notes, and snippets.

BA steakknife

Block or report user

Report or block steakknife

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Rust in Large Organizations

Initially taken by Niko Matsakis and lightly edited by Ryan Levick


  • Introductions
  • Cargo inside large build systems
  • FFI
  • Foundations and financial support
steakknife / afl-fuzz-for-ruby.rb
Created Sep 3, 2019
Homebrew formula for use with afl-ruby
View afl-fuzz-for-ruby.rb
class AflFuzzForRuby < Formula
desc "American fuzzy lop: Security-oriented fuzzer"
homepage ""
url ""
sha256 "43614b4b91c014d39ef086c5cc84ff5f068010c264c2c05bf199df60898ce045"
patch :p0 do
url ""
sha256 "14488f706ae2dd6d3de0a7962fc199446350c4eb5587dd76f08c0e193aebf538"
steakknife /
Created Aug 24, 2019
Dumb read/write trait requiring mutable self in Rust
pub trait Read<T> {
fn read(&mut self) -> T;
pub trait Write<T> {
fn write(&mut self, new_val: T);
pub trait ReadWrite<T>: Read<T> + Write<T> {}
steakknife / GNUmakefile
Last active Aug 24, 2019
GNU makefile for running rust playground on macOS locally
View GNUmakefile
### Prerequisite commands
# xcode-select --install
# /usr/bin/ruby -e "$(curl -fsSL"
# brew update
# brew install node@10 yarn rustup-init
# brew cask install docker
# open -a Docker
# rustup-init -y --default-toolchain stable
steakknife /
Created Aug 22, 2019
Rust upcasting and downcasting
use std::any::Any;
trait Upcast: Any {
fn as_any_ref(&self) -> &dyn Any;
struct Implementor {}
impl Implementor {
pub fn foo(&self) {
steakknife /
Created Aug 22, 2019
Demo of implementing common traits on built-in Rust types
///! See also:
trait Int: PartialEq + PartialOrd + Sized {
fn min_value() -> Self;
fn zero() -> Self;
macro_rules! impl_int {
($t:ty) => {
impl Int for $t {
steakknife / ver
Last active Jul 26, 2019
macOS: Get version of an app from the command-line
View ver
#!/usr/bin/env ruby
require "cfpropertylist" # gem install CFPropertyList
module MacOS
module Ver
def self.info_plist_file_for_app(app)
File.join("/", "Applications", "#{app}.app", "Contents", "Info.plist")
def self.info_plist_for_app(app)
View patches.list
View bzip2-pkg-config.patch
diff --git a/Makefile b/Makefile
index 11bc446..1b8f964 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,8 @@
# in the file LICENSE.
# ------------------------------------------------------------------
View bzip2-shared-make-install.patch
diff --git a/Makefile-libbz2_so b/Makefile-libbz2_so
index e58791b..1f0739b 100644
--- a/Makefile-libbz2_so
+++ b/Makefile-libbz2_so
@@ -26,6 +26,9 @@ CC=gcc
CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
+# Where you want it installed when you do 'make install'
You can’t perform that action at this time.