Skip to content

Instantly share code, notes, and snippets.

View jmoody's full-sized avatar

Joshua Moody jmoody

  • Germany
View GitHub Profile
@jmoody
jmoody / crashdump.md
Created October 9, 2024 06:53
golangci-lint crash report macOS
Incident Identifier: 713DD27B-41EA-448C-B31A-A04D45A830C3
CrashReporter Key:   FF40DB60-5617-B003-17F4-81E82DED1853
Hardware Model:      MacBookPro18,2
Process:             golangci-lint [88290]
Path:                /Volumes/VOLUME/*/golangci-lint
Identifier:          golangci-lint
Version:             ???
Code Type:           ARM-64 (Native)
Role:                Unspecified
@jmoody
jmoody / debug.log
Created January 28, 2020 14:37
vagrant vmware_desktop macOS RubyEncoder .bundles are not signed
```
INFO manager: Loading plugin `vagrant-vmware-desktop` with default require: `vagrant-vmware-desktop`
could not load /opt/vagrant/embedded/rgloader/rgloader24.darwin: dlopen(/opt/vagrant/embedded/rgloader/rgloader24.darwin.bundle, 9): no suitable image found. Did find:
/opt/vagrant/embedded/rgloader/rgloader24.darwin.bundle: code signature in (/opt/vagrant/embedded/rgloader/rgloader24.darwin.bundle) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. - /opt/vagrant/embedded/rgloader/rgloader24.darwin.bundle
INFO manager: Loading plugin `vagrant-vmware-desktop` with slash require: `vagrant/vmware/desktop`
ERROR manager: Plugin loading error: LoadError - cannot load such file -- vagrant/vmware/desktop
ERROR vagrant: /opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/plugin/manager.rb:342:in `rescue in load_plugins'
/opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/plugin/manager.rb
@jmoody
jmoody / Screenshotter.m
Last active December 5, 2019 14:16
Add a step and a screenshot to your Test Cloud report
#import <XCTest/XCTest.h>
#import "Screenshotter.h"
@implementation Screenshotter
+ (void)screenshotWithTitle:(NSString *)format, ... {
NSString *title = nil;
va_list args;
va_start(args, format);
@jmoody
jmoody / contents.md
Created August 10, 2017 13:43
NSLog output can cause apps to become unresponsive during testing

2. NSLog output can cause apps to become unresponsive during testing.

If your app becomes unresponsive during testing, check your device or simulator logs for an unusual or a high volume of NSLog output.

It has been demonstrated that a spike in NSLog output can cause the UIAutomation API to become unresponsive. This has been reproduced using the Instruments.app with applications that are not linked with the calabash.framework. This is an Apple bug.

Viewing Simulator Logs

@jmoody
jmoody / rbenv-install-with-options.sh
Last active October 26, 2016 13:38
Script for compiling a ruby with readline and OpenSSL support using rbenv and homebrew
#!/usr/bin/env bash
# Do not name this file 'rbenv-install' - that is an rbenv terminal command.
# Put this file in your PATH (e.g. ~/bin/)
#
# Usage:
# rbenv-install-with-options.sh 2.3.1
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" \
rbenv install "${1}"
@jmoody
jmoody / permissions.rb
Created September 19, 2016 14:51
Wait for photo rollo
When(/^I touch the Photos row$/) do
expect_action_label_ready_for_next_alert
tap_row("photos")
end
Then(/^I see the Photos alert$/) do
if uia_available?
# Impossible to wait for the alert because it is automatically dismissed
else
# With DeviceAgent, we can wait for the alert. It is the next query or
@jmoody
jmoody / .bashrc
Created January 20, 2016 08:25
Jenkins LaunchAgent and scripts for El Capitan
# Can be more or less complicated depending on your CLI needs.
export HISTCONTROL=erasedups
export HISTSIZE=5000
shopt -s histappend
export VISUAL=less
export EDITOR=vim
export GIT_EDITOR="${EDITOR}"
@jmoody
jmoody / README.md
Last active June 24, 2023 10:13
diffing binary plists and mobileprovisions

~/.gitatrributes

*.plist diff=plist
*.mobileprovision diff=mobileprovision

~/.gitconfig

got 8 from server
@jmoody
jmoody / bundle-id.sh
Created October 15, 2015 11:08
Bash script for extracting CFBundleIdentifier from .app or .ipa (MacOS only)
#!/usr/bin/env bash
function error {
echo "$(tput setaf 1)ERROR: $1$(tput sgr0)"
}
function usage {
echo "Usage: bundle-id.sh /path/to/App.{ipa | app}"
}