Skip to content

Instantly share code, notes, and snippets.

View ericbeland's full-sized avatar

Eric Beland ericbeland

View GitHub Profile
@Birch-san
Birch-san / make_portable.sh
Last active September 12, 2024 12:09
Make a macOS executable binary or .dylib portable
#!/usr/bin/env bash
# Licensed by author Alex Birch under CC BY-SA 4.0
# https://creativecommons.org/licenses/by-sa/4.0/
# Example input:
# ./make_portable.sh mycoolbinary
# where mycoolbinary is a mach-o object file
# (for example an executable binary or a .dylib)
#
@vbatts
vbatts / ruby-openssl-build.sh
Created July 11, 2012 14:58
building ruby with a specific openssl
#!/bin/sh
t_dir="$HOME/tmp"
mkdir -p ${t_dir}
pushd ${t_dir}
for url in \
ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.9.3-p194.tar.bz2 \
http://openssl.org/source/openssl-1.0.1c.tar.gz