Skip to content

Instantly share code, notes, and snippets.

Avatar

Samuel simpzan

View GitHub Profile
@bazad
bazad / vmmap.c
Last active Nov 14, 2020
A simple vmmap implementation for macOS.
View vmmap.c
// Brandon Azad (@_bazad)
#include <assert.h>
#include <errno.h>
#include <mach/mach.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
View frida-workaround-ios12
Whenever I try using Frida from the official repo https://build.frida.re I kept getting the following errors after which my device panics and restarts:
default 15:46:47.251624 +0530 kernel AMFI: '/private/var/tmp/frida-D8kjW6.dylib' has no CMS blob?
default 15:46:47.251817 +0530 kernel AMFI: '/private/var/tmp/frida-D8kjW6.dylib': Unrecoverable CT signature issue, bailing out.
Looks like codesigning/entitlements issue. Here are the steps I followed to get Frida Running on a jailbroken iOS 12 device
Downloads Latest version of Frida from https://github.com/frida/frida/releases. In my case it was frida-server-12.4.0-ios-arm64.xz.
xz -d frida-server-12.4.0-ios-arm64.xz
scp frida-server-12.4.0-ios-arm64 root@<ios-device-ip>:/usr/bin/frida-server
@Blankwonder
Blankwonder / iPhone X
Created Sep 21, 2018
Surge Benchmark
View iPhone X
AEAD Provider: CommonCrypto (Hadrware acceleration)
Generating random data (100.00MB)
Start benchmark rc4
Encrypt data in 0.215s
Decrypt data in 0.257s
Data integrity check completed
Start benchmark rc4-md5
Encrypt data in 0.176s
Decrypt data in 0.256s
Data integrity check completed
View Query Results.csv
name download_total
AFNetworking 61983241
Fabric 50998892
Crashlytics 49667729
SDWebImage 45471101
Alamofire 42097177
CocoaLumberjack 36071914
Bolts 35294870
FirebaseInstanceID 30277793
FirebaseAnalytics 30254593
@chinmaygarde
chinmaygarde / FlutterEmbedderGLFW.cc
Last active Oct 26, 2020
Flutter Embedder API Example (GLFW with OpenGL)
View FlutterEmbedderGLFW.cc
#include <assert.h>
#include <chrono>
#include <embedder.h>
#include <glfw3.h>
#include <iostream>
static_assert(FLUTTER_ENGINE_VERSION == 1, "");
static const size_t kInitialWindowWidth = 800;
@inamiy
inamiy / SwiftElmFrameworkList.md
Last active Oct 5, 2020
React & Elm inspired frameworks in Swift
View SwiftElmFrameworkList.md
@suyash
suyash / client.c
Created Jan 2, 2017
TCP echo client-server in C
View client.c
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
int main() {
const char* server_name = "localhost";
const int server_port = 8877;
@suyash
suyash / client.c
Created Jan 2, 2017
UDP echo client-server implementation
View client.c
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
int main() {
const char* server_name = "localhost";
const int server_port = 8877;
View folder-structure.md

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.

@mrchief
mrchief / LICENSE.md
Last active Oct 13, 2020
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)
View LICENSE.md

MIT License

Copyright (c) [year] [fullname]

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 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

You can’t perform that action at this time.