Skip to content

Instantly share code, notes, and snippets.

View shouse's full-sized avatar

Steven shouse

  • SIVCI
  • Kansas City, MO
View GitHub Profile
@neverunlucky
neverunlucky / idsl-filter.sh
Last active February 4, 2021 16:42
idevicesyslog target filter shell script
#!/bin/bash
#name: idevicesyslog target filter shell script
#author: SerKo <https://github.com/serkoape>
#usage: idevicesyslog | ./idsl-filter.sh "<target name>"
#idevicesyslog | ./idsl-filter.sh "SpringBoard"
#idevicesyslog | ./idsl-filter.sh "SpringBoard(Custom.dylib)"
#idevicesyslog | sudo sh ./idsl-filter.sh "SpringBoard(Custom.dylib)"
@hansemannn
hansemannn / titanium-auth-session.js
Last active February 13, 2018 20:07
Use Axway Hyperloop to perform OAuth-sessions with the iOS 11+ API "SFAuthenticationSession"
const SFAuthenticationSession = require('SafariServices/SFAuthenticationSession');
const NSURL = require('Foundation/NSURL');
const session = SFAuthenticationSession.alloc().initWithURLCallbackURLSchemeCompletionHandler(
NSURL.alloc().initWithString('https://github.com/login/oauth/authorize?scope=repo&client_id=XXXXX'),
'appcgithub://',
function(url, error) {
if (error != null) {
Ti.API.error('Error performing OAuth: ' + error.localizedDescription);
cb({ success: false, error: 'Error performing OAuth: ' + error.localizedDescription });
@f0ster
f0ster / slack_history.py
Last active November 8, 2019 01:25
slack history downloader (pub and priv) with rate limit retry :)
#https://gist.github.com/Chandler/fb7a070f52883849de35 SEE HERE
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@ddunbar
ddunbar / xcbuild-debugging-tricks.md
Last active May 7, 2025 03:45
Xcode new build system debugging tricks

New Build System Tricks

Command Line

alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole  # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]
@hansemannn
hansemannn / ti.es6.js
Last active November 16, 2017 20:16
Use ES6 in Appcelerator Titanium 6.2.0+
class Application {
constructor(cb) {
this.window = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var btn = Ti.UI.createButton({
title: 'Trigger'
});
@hansemannn
hansemannn / avaudioplayer.js
Last active November 13, 2017 15:56
Use the AVAudioPlayer with Hyperloop.
var AVAudioEngine = require('AVFoundation/AVAudioEngine');
var AVAudioPlayerNode = require('AVFoundation/AVAudioPlayerNode');
var AVAudioFile = require('AVFoundation/AVAudioFile');
var NSBundle = require('Foundation/NSBundle');
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var btn = Ti.UI.createButton({
@rpiwetz
rpiwetz / index.js
Last active November 13, 2017 15:50
Hyperloop NSArray sample
var MTBBarcodeScanner = require('MTBBarcodeScanner/MTBBarcodeScanner');
var scanner = MTBBarcodeScanner.alloc().initWithPreviewView($.window);
MTBBarcodeScanner.requestCameraPermissionWithSuccess(function(success) {
if(success) {
Ti.API.log("success received");
scanner.startScanningWithResultBlock(function(codes) {
for (var i = 0; i < codes.count; i++) {
Ti.API.log(codes.objectAtIndex(i).stringValue);
@ColCh
ColCh / app.js
Created February 24, 2017 13:25
catch errors and send 'em to Crashlytics in React Native
// WARNING: SIDE-EFFECTS. ONLY FOR PROD VERSION
if (!__DEV__) {
require('./utils/log.js');
}
// SIDE-EFFECTS END
var FBSDKShareLinkContent = require("FBSDKShareKit/FBSDKShareLinkContent"),
FBSDKShareDialog = require("FBSDKShareKit/FBSDKShareDialog"),
NSURL = require("Foundation/NSURL");
var win = Ti.UI.createWindow({
backgroundColor: "#fff"
});
var btn = Ti.UI.createButton({
title: "Trigger Share Dialog"