Skip to content

Instantly share code, notes, and snippets.

View TimMoore's full-sized avatar

Tim Marcus Moore TimMoore

View GitHub Profile
@TimMoore
TimMoore / trace-log.txt
Created October 19, 2022 07:00
cmake --trace-expand -G Xcode ..
This file has been truncated, but you can view the full file.
Last login: Wed Oct 19 13:47:06 on ttys005
tmoore@Tims-MBP build % cmake --trace-expand -G Xcode ..
Running with expanded trace output on.
/Users/tmoore/Projects/wavefile/CMakeLists.txt(1): cmake_minimum_required(VERSION 3.19 )
/Users/tmoore/Projects/wavefile/CMakeLists.txt(3): set(CMAKE_OSX_ARCHITECTURES x86_64;arm64 )
/Users/tmoore/Projects/wavefile/CMakeLists.txt(5): string(REGEX REPLACE (.*)/ THIS_FOLDER_NAME /Users/tmoore/Projects/wavefile )
/Users/tmoore/Projects/wavefile/CMakeLists.txt(6): project(wavefile )
/opt/homebrew/Cellar/cmake/3.24.2/share/cmake/Modules/CMakeDetermineSystem.cmake(35): if(CMAKE_HOST_UNIX )
/opt/homebrew/Cellar/cmake/3.24.2/share/cmake/Modules/CMakeDetermineSystem.cmake(36): find_program(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
/opt/homebrew/Cellar/cmake/3.24.2/share/cmake/Modules/CMakeDetermineSystem.cmake(37): if(CMAKE_UNAME )
@TimMoore
TimMoore / build-log.txt
Created October 19, 2022 06:22
build from max-package-template generating x86_64 external object on arm64 machine
tmoore@Tims-MBP build % cmake -G Xcode ..
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
@TimMoore
TimMoore / wavecuepoint.c
Last active May 2, 2023 23:20 — forked from dhilowitz/wavecuepoint.c
This code reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line) and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
// wavecuepoint.c
// Created by Jim McGowan on 29/11/12.
// Turned into command-line utility by David Hilowitz on 19/11/16.
// jim@bleepsandpops.com
// jim@malkinware.com
//
// This function reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line)
// and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
[17:17:07] ~/Projects/lightbend-markdown (master=) $ sbt "release cross"
[info] Loading settings for project global-plugins from build.sbt ...
[info] Loading global plugins from /Users/tmoore/.sbt/1.0/plugins
[info] Loading settings for project lightbend-markdown-build from plugins.sbt ...
[info] Loading project definition from /Users/tmoore/Projects/lightbend-markdown/project
[info] Loading settings for project lightbend-markdown from version.sbt,build.sbt ...
[info] Set current project to lightbend-markdown (in build file:/Users/tmoore/Projects/lightbend-markdown/)
[WARN] [10/25/2019 17:17:25.293] [main] [ManifestInfo(akka://sbt-web)] Detected possible incompatible versions on the classpath. Please note that a given Akka version MUST be the same across all modules of Akka that you are using, e.g. if you use [2.5.17] all other modules that are released together MUST be of the same version. Make sure you're using a compatible set of libraries.Possibly conflicting versions [2.5.4, 2.5.17] in libraries [akka-pe
@TimMoore
TimMoore / gist:34c6fcd9795b4904602b
Last active March 15, 2016 06:51
Reproduction script for: 1.12.0.rc: cannot install omniauth-google-oauth2 0.4.1 using new index
$ mkdir bundle-omniauth-google-oauth2
$ cd bundle-omniauth-google-oauth2/
$ bundle --version
Bundler version 1.11.2
$ bundle init
Writing new Gemfile to /Users/tim/src/bundle-omniauth-google-oauth2/Gemfile
$ bundle inject omniauth-google-oauth2 0.4.1
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
ERROR: Failed to build gem native extension.
/Users/198103/.rbenv/versions/2.1.0/bin/ruby extconf.rb
/Users/198103/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
/Users/198103/.rbenv/versions/2.1.0/bin/ruby extconf.rb
/Users/198103/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
/Users/198103/.rbenv/versions/2.1.0/bin/ruby extconf.rb
/Users/198103/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
@TimMoore
TimMoore / keybase.md
Last active February 2, 2017 16:40
keybase.md

Keybase proof

I hereby claim:

  • I am timmoore on github.
  • I am tmoore (https://keybase.io/tmoore) on keybase.
  • I have a public key ASAb51Shr5h7C7RE4u07RvECiH5T9Ev9iIeVyijD0z2KEgo

To claim this, I am signing this object:

@TimMoore
TimMoore / gist:cafc6da5d3b3f9e9ca58
Created December 8, 2014 03:45
brew install fontforge
$ brew update
Already up-to-date.
$ brew install fontforge
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/fontforge-2014-1.yosemite.bottle.tar.gz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 9cb3881adf612eae21aa4c70eb17907a96f05d8d
Actual: 0a0417452ac6cbd601b5f2f1509b69936bbdece6
Archive: /Library/Caches/Homebrew/fontforge-2014-1.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
$ rubocop -R -d
For /Users/timm/projects/sol: configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/default.yml
Inheriting configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/enabled.yml
Inheriting configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/disabled.yml
Inspecting 39 files
Scanning /Users/timm/projects/sol/app/controllers/application_controller.rb
.Scanning /Users/timm/projects/sol/app/controllers/pois_controller.rb
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/controllers/pois_controller.rb.
undefined method `children' for nil:NilClass
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:68:in `delegate?'
@TimMoore
TimMoore / gist:10080042
Created April 8, 2014 01:16
gem-installing-prerelease-dependency
ubuntu@ip-10-63-20-40:~$ gem --version
2.2.2
ubuntu@ip-10-63-20-40:~$ sudo gem install --verbose aws-sdk
sudo: unable to resolve host ip-10-63-20-40
GET https://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET https://api.rubygems.org/quick/Marshal.4.8/aws-sdk-1.38.0.gemspec.rz
302 Moved Temporarily