Skip to content

Instantly share code, notes, and snippets.

@siracusa
siracusa / gist:f2e9cc3d19acff5f1f0afeb9033bffa0
Created June 14, 2019 16:22
Catalina Beta installer failure
Jun 14 12:18:00 … osinstallersetupd[8829]: seedingInfoDict ->
Jun 14 12:18:00 … osinstallersetupd[8829]: result : Success
Jun 14 12:18:00 … osinstallersetupd[8829]: seedProgramSource : Xattr
Jun 14 12:18:00 … osinstallersetupd[8829]: seedProgram : DeveloperSeed
Jun 14 12:18:00 … osinstallersetupd[8829]: catalogURLString : https://swscan.apple.com/content/catalogs/others/index-10.15seed-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
Jun 14 12:18:00 … osinstallersetupd[8829]: fileName : /Applications/Install macOS 10.15 Beta.app
Jun 14 12:18:00 … osinstallersetupd[8829]: error : No error
Jun 14 12:18:00 … osinstallersetupd[8829]: Build phase is Beta. Target Seed Program will be set to DeveloperSeed (Source:Xattr). Recorded into the mutable product.
Jun 14 12:18:00 … osishelperd[8843]: +[IA_IASBlessUtilities setEFIBackupBootDevice]: Booted volume: disk1s1
sil_stage canonical
import Builtin
import Swift
import SwiftShims
// SILDemo.identity <A>(A) -> A
sil @_TF7SILDemo8identityU__FQ_Q_ : $@thin <T> (@out T, @in T) -> () {
bb0(%0 : $*T, %1 : $*T):
copy_addr [take] %1 to [initialization] %0 : $*T // id: %2
sil_stage canonical
import Builtin
import Swift
import SwiftShims
// SILDemo.identity <A>(A) -> A
sil @_TF7SILDemo8identityU__FQ_Q_ : $@thin <T> (@out T, @in T) -> () {
bb0(%0 : $*T, %1 : $*T):
debug_value_addr %1 : $*T // let x // id: %2
extension Int {
func bottlesOfBeer() {
let bottles = "\(self) bottle" + (self == 1 ? "" : "s")
let what = " of beer on the wall"
println("\(bottles + what), \(bottles) of beer.")
print("Take one down, pass it around, ")
if self == 1 {
println("no more bottles\(what).")
@siracusa
siracusa / rename.pl
Created August 16, 2014 16:29
Larry Wall's file renamer, slightly modified
#!/usr/bin/perl
use strict;
use warnings;
die "Usage: rename <expression> <files>\n" unless (@ARGV >= 2);
my $op = eval 'sub { ' . shift . ' }'; # crazily dangerous - type carefully!
die $@ if $@;

Keybase proof

I hereby claim:

  • I am siracusa on github.
  • I am siracusa (https://keybase.io/siracusa) on keybase.
  • I have a public key whose fingerprint is B415 1A00 A658 2692 421F B06A 3FD2 A44C 40A8 0298

To claim this, I am signing this object:

@siracusa
siracusa / gist:5005268
Created February 21, 2013 15:03
Error when attempting to compile scribe on OS X 10.8.2.
% make
make all-recursive
Making all in .
make[2]: Nothing to be done for `all-am'.
Making all in src
/usr/local/bin/thrift -o . -I /usr/local/share/ --gen cpp:pure_enums --gen py --gen php --gen java ../if/scribe.thrift
/usr/local/bin/thrift -o . -I /usr/local/share/ --gen cpp:pure_enums --gen py --gen php --gen java ../if/bucketupdater.thrift
make all-am
g++ -DPACKAGE_NAME=\"scribe\" -DPACKAGE_TARNAME=\"scribe\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"scribe\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"scribe\" -DVERSION=\"1.5.0\" -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_FILESYSTEM=/\*\*/ -I. -I.. -I/usr/local/include -I/usr/local/include/thrift -I/usr/local/include/thrift -I/usr/local/include/thrift/fb303 -I/usr/local/include -I/usr/local/include -Wall -O3 -MT scribe.o -MD -MP -MF .deps/scribe.Tpo -c -o scribe.o `test -f 'gen-cpp/scribe.cpp' || echo './'`gen-cpp/scribe.cpp
mv -f .deps/scribe.Tpo .deps/scribe.Po