Skip to content

Instantly share code, notes, and snippets.

View torinnguyen's full-sized avatar

Torin Nguyen torinnguyen

View GitHub Profile
Dec 15 22:42:50 My-iPhone kernel[0] <Debug>: launchd[161] Container: /private/var/mobile/Applications/A085EBF0-3C58-493E-8CCF-AC5027F9EC3E (sandbox)
Dec 15 22:42:50 My-iPhone networkd[82] <Warning>: Analytics Engine: double ON for app: net.whatsapp.WhatsApp
Dec 15 22:42:51 My-iPhone ReportCrash[162] <Notice>: ReportCrash acting against PID 161
Dec 15 22:42:51 My-iPhone ReportCrash[162] <Notice>: Formulating crash report for process WhatsApp[161]
Dec 15 22:42:51 My-iPhone com.apple.launchd[1] (UIKitApplication:net.whatsapp.WhatsApp[0x34a4][161]) <Warning>: (UIKitApplication:net.whatsapp.WhatsApp[0x34a4]) Job appears to have crashed: Illegal instruction: 4
Dec 15 22:42:51 My-iPhone com.apple.launchd[1] (UIKitApplication:net.whatsapp.WhatsApp[0x34a4]) <Notice>: (UIKitApplication:net.whatsapp.WhatsApp[0x34a4]) Throttling respawn: Will start in 2147483647 seconds
Dec 15 22:42:51 My-iPhone backboardd[28] <Warning>: Application 'UIKitApplication:net.whatsapp.WhatsApp[0x34a4]' exited abnormally with signal 4: Illegal
@torinnguyen
torinnguyen / Broadlink MP1 control with Python
Last active January 20, 2018 23:10
Use Python script to control all/any buttons on Broadlink MP1 smart socket. This data was captured with Wireshark on an iPhone connected to USB port (rvi0 interface)
@torinnguyen
torinnguyen / iOS jailbreak detection
Created January 11, 2017 09:29
iOS jailbreak detection
/* return true if phone is jail broken */
+ (BOOL) checkJailbreak
{
#if (TARGET_OS_SIMULATOR)
return NO;
#endif
/* checking fork */
pid_t child = fork();
if (child > 0) {
@torinnguyen
torinnguyen / gist:207ce9240cc2f59aec0aa302f7d55452
Created December 15, 2017 10:06
NodeRED flow for displaying 8 different live crypto prices from Bitfinex
[{"id":"f2d4dc37.a9597","type":"tab","label":"Crypto Dashboard","disabled":false,"info":""},{"id":"825738b.9384dc8","type":"inject","z":"f2d4dc37.a9597","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"15","crontab":"","once":true,"x":110,"y":160,"wires":[["16b87a0f.7f5016"]]},{"id":"3890a4b6.16590c","type":"comment","z":"f2d4dc37.a9597","name":"BTC Bitfinex","info":"","x":130,"y":120,"wires":[]},{"id":"16b87a0f.7f5016","type":"http request","z":"f2d4dc37.a9597","name":"","method":"GET","ret":"obj","url":"https://api.bitfinex.com/v2/ticker/tBTCUSD","tls":"","x":260,"y":160,"wires":[["427f4698.6ff638"]]},{"id":"427f4698.6ff638","type":"function","z":"f2d4dc37.a9597","name":"","func":"var btcusd = Math.round(msg.payload[6] * 10) / 10;\nif (isNaN(btcusd) || btcusd <= 0)\n return;\nvar string = btcusd;\nmsg.payload = string;\nreturn msg;","outputs":1,"noerr":0,"x":410,"y":160,"wires":[["404b32a0.90834c","d35ac010.6d64a"]]},{"id":"404b32a0.90834c","type":"function","z":"f2d4dc37.a9597","name
//
// NSString+Additions.m
//
// Created by Daud Abas on 24/2/12.
// Copyright (c) 2012 MyCompany. All rights reserved.
//
#import <time.h>
#import "NSString+Additions.h"
#import <CommonCrypto/CommonDigest.h>