Skip to content

Instantly share code, notes, and snippets.

View triztian's full-sized avatar

Tristian A. triztian

View GitHub Profile
@triztian
triztian / TL Python3.sublime-build
Last active November 16, 2020 20:13
A Terminal Launch (TL) Sublime Text 3 Build System
{
"osx": {
"cmd": [
"osascript",
"-e", "tell application \"Terminal\" to activate",
"-e", "tell application \"Terminal\" \n do script \"python3 $file\"\n end tell"
]
},
"windows": {
"cmd": [
@triztian
triztian / run_uitests_parallel.sh
Last active September 14, 2020 09:31
A script to run clean parallel iOS UI Tests
#!/bin/zsh
# run_uitests_parallel.sh
# ParallelUITests
#
# Created by Tristian Azuara on 9/13/20.
set -e
device_name="CI UI Parallel"
echo "=> 1. Creating new device: '$device_name'"
@triztian
triztian / symbolicate_bitcode_ios.md
Last active June 6, 2020 01:25
Symbolication of Bitcode Crash Reports for iOS

When downloading the appDsyms file from the it often does not include symbols for Bitcode archives, you can manually symbolicate the crash report by doing the following:

  1. Obtain the dSYM files for your AppStore App Archive (*.xcarchive).
    In Organizer under Archives click Download dSYMs... for the relevant build.

  2. Find the UUID that matches the architecture reported in the crash. Run this command against the actual binary/framework you want to symbolicate:

    xcrun dwarfdump --uuid /path/to/MyApp.xcarchive/Products/Applications/MyApp.app/MyApp
    

An alternative way of doing it is to use otool and look for the uuid string (with the appropriate arch):

@triztian
triztian / atos & symbolicateCrash utility
Created June 2, 2020 18:33 — forked from venkatarao/atos & symbolicateCrash utility
Symbolicate iPhone app crash - Map hexadecimal addresses to valid function namespace (call stack)
1)...Preliminary
Create a folder 'temp' in ~/, path is '~/temp/'
Keep all files in '~/temp/' i.e. script, .ipa, .dsym and .crash (in fact .ipa is not needed)
2)...Go to '~/temp/'
3)...If there are two Xcode's in system or paths not being set
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/
export DEVELOPER_DIR=/Applications/Xcode.app
@triztian
triztian / symbolizing_osx_crash_logs.md
Created June 2, 2020 18:32 — forked from bmatcuk/symbolizing_osx_crash_logs.md
How to symbolize OSX crash logs

How to Symbolize OSX Crash Logs

Unfortunately, xcode does not yet have support for importing OSX crash logs and symbolizing them. Therefore, you must use the command line and a little bit of manual work.

  1. Find your dSYM file.
    1. Assuming you are using xcode's archive functionality, open the Organizer window from the Window menu.
    2. Click the Archives tab.
    3. Right click on the appropriate build and select Show in Finder.
    4. When Finder opens, right click on the selected archive and select Show Package Contents.
    5. Navigate to the dSYM directory and copy the appropriate dSYM file to a temporary directory.
  2. Then navigate to Products, then Applications, and copy the app file to the same temporary directory.
@triztian
triztian / quadratic_formula.c
Last active August 29, 2019 08:12
A very simple C program that uses the General Formula for quadratic polynomials (Ax^2 + Bx + C)
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/**
* Declare a helper boolean data type and then define
* some handy macros (true, false).
*
* Learn more about `typedef` here:
*
""
"""
set number
let mapleader = "\\"
set exrc
set secure
nnoremap <F10> :nohlsearch<cr>
@triztian
triztian / main.cpp
Last active May 29, 2018 04:50
A simple gist showing processing of a textfile
#include <set>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
struct user {
std::string name;
std::string email;
std::string password;
package main
import (
"database/sql"
"log"
"time"
_ "github.com/alexbrainman/odbc"
)
@triztian
triztian / pyramid.go
Created October 13, 2017 03:41
SDGophers Meetup 2017-10-12 Challenge
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"sort"
"strconv"
"strings"