Skip to content

Instantly share code, notes, and snippets.

@sinm
sinm / illegal-instruction-4.md
Last active April 15, 2020 09:05
Patched Mojave Illegal instruction problem

If crashed binary was installed via Homebrew you should patch /usr/local/Homebrew/Library/Homebrew/extend/os/mac/hardware.rb replacing instruction set with :core2 for mojave case and rebuild package from sources using brew reinstall --build-from-source package.

Known affected:

  • icu4c : uprv_strnicmp_64
  • node : v8::internal::compiler::CodeGenerator::AssembleConstructFrame()
@sinm
sinm / video-cli-tools.md
Last active April 15, 2020 09:13
VIDEO CLI tools

Play raw video file

mplayer file.yuv -demuxer rawvideo -rawvideo w=1024:h=768:fps=30:format=i420

Show RTSP video stream

Doesn't work without -cache option as of MPlayer 1.1-4.2.1. -v forces openRTSP to send stream to stdout.

@sinm
sinm / howto-resign-ipa.md
Created February 5, 2013 11:21
HOWTO resign IPA
IPA="/path/to/file.ipa" 
PROVISION="/path/to/file.mobileprovision" 
CERTIFICATE="Name of certificate: To sign with" # must be in keychain 
# unzip the ipa 
unzip -q "$IPA"