Skip to content

Instantly share code, notes, and snippets.

View jaouahbi's full-sized avatar
🎯
Enjoying

Jorge Ouahbi jaouahbi

🎯
Enjoying
  • Madrid (Spain)
View GitHub Profile
@jaouahbi
jaouahbi / PdfAdapter.py
Created December 26, 2023 07:35 — forked from vinovator/PdfAdapter.py
Reusable library to extract text from pdf file
# Python 2.7.6
# PdfAdapter.py
""" Reusable library to extract text from pdf file
Uses pdfminer library; For Python 3.x use pdfminer3k module
Below links have useful information on components of the program
https://euske.github.io/pdfminer/programming.html
http://denis.papathanasiou.org/posts/2010.08.04.post.html
"""
@jaouahbi
jaouahbi / FindCrashSymbol.md
Last active November 19, 2020 19:56
Find Crash Symbol in release iOS application

Find Crash Symbol

Pre

  • Get atos : xcrun -find -sdk iphoneos atos
  • Get the UUID and arch from : xcrun dwarfdump --uuid XXX.app/[Content/MacOS]XXX
  • Get the crash log (.ips...)
  • Find the slide, for example, from the next lines from the crash, the slide is 0x1002e0000

Binary Images: 0x1002e0000 - 0x10069bfff XXX arm64 /var/containers/Bundle/Application/15813B39-9D93-447B-A6BE-118118FF314B/XXX.appXXX.app/[Content/MacOS]XXX

@jaouahbi
jaouahbi / gist:c7183b06081e0978815a5bb413301748
Created September 28, 2020 01:06
Create a high quality animated gif from iOS simulator
# capture
xcrun simctl io booted recordVideo ~/simulator.mov
# create palette.png
ffmpeg -y -i ~/simulator.mov -vf fps=30,scale=320:-1:flags=lanczos,palettegen palette.png
# create gif
ffmpeg -y -i ~/simulator.mov -i palette.png -filter_complex "fps=30,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse" gif.gif
# endjoy
//
// MSPActivityOperation.h
//
// Created by Jorge Ouahbi on 5/4/18.
// Copyright © 2018 Jorge Ouahbi. All rights reserved.
//
/*
-(void) doItMotherFucker
//
// UIVisualEffectView+Intensity.h
//
// Created by Jorge Ouahbi on 19/2/18.
// Copyright © 2018 Jorge Ouahbi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIVisualEffectView(Intensity)
#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
#import <Foundation/Foundation.h>
#endif
typedef enum GradientPosition {
vertical,
horizontal,
diagonal
//
// OMBaseServices.m.h
//
//
// Created by Jorge Ouahbi on 27/9/17.
// Copyright © 2017 Jorge Ouahbi. All rights reserved.
//
#import <Foundation/Foundation.h>
//
// NSDictionary+QueryString.h
//
//
// Created by Jorge Ouahbi on 05/06/17.
// Copyright © 2016 Jorge Ouahbi. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (QueryString)
//
// NSObject+JSON.m
//
//
// Created by Jorge Ouahbi on 05/06/17.
// Copyright © 2017 Jorge Ouahbi. All rights reserved.
//
#import <Foundation/Foundation.h>
//
// UIViewController+UIAlertController.h
//
// Created by Jorge Ouahbi on 5/1/17.
// Copyright © 2017 JorgeOuahbi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController(UIAlertController)