Skip to content

Instantly share code, notes, and snippets.

@papertigers
papertigers / xcode-build-bump.sh
Created January 29, 2017 04:11 — forked from sekati/xcode-build-bump.sh
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@papertigers
papertigers / trunk-images.md
Created January 3, 2019 23:25 — forked from jperkin/trunk-images.md
Test pkgsrc trunk bootstraps and images

pkgsrc trunk packages and images

Now that pkgin has refresh support and the macOS trunk builds have proven that a rolling trunk release works well, I am happy to make SmartOS/illumos trunk packages and images available again for testing.

These are rolling builds of pkgsrc trunk every day (or so), providing the latest packages without having to upgrade across quarterly releases. Just install once then pkgin full-upgrade to keep up-to-date.

This is primarily of interest to:

  • Users who just want the latest software.
  • Users who don't want to bother with having to upgrade releases every quarter.
@papertigers
papertigers / playground.rs
Created April 8, 2019 14:36 — forked from rust-play/playground.rs
Code shared from the Rust Playground
use std::net::{self, AddrParseError, IpAddr, SocketAddr};
use std::str::FromStr;
#[derive(Debug)]
struct Endpoint {
addr: SocketAddr,
}
impl Endpoint {
fn new<S: Into<SocketAddr>>(s: S) -> Self {
@papertigers
papertigers / README.md
Created May 5, 2020 03:45 — forked from mgerdts/README.md
Install windows with bhyve

These are bare-bones instructions for creating a Windows image for bhyve on SmartOS. You will need a platform image that has the fix for OS-7117. Platform images that I've used in testing are here: iso tgz usb

Create a volume that will be the disk.

zfs create -o volblocksize=4k -V 16g -s zones/hdd-windows

This script will be used for booting from the CD.