Skip to content

Instantly share code, notes, and snippets.

@Norod
Norod / openssl-build.sh
Last active July 19, 2020 22:33 — forked from foozmeat/openssl-build.sh
A shell script to build openssl for iOS and Mac. >>>>> It currently builds: Mac (i386, x86_64) >>>>> iOS (armv7, arm64) >>>>> iOS Simulator (i386, x86_64) >>>>> Updated to work with Xcode 7 and produce bitcode enabled binaries >>>>> Minimum deployment target can be easily configured
#!/bin/bash
# This script builds the iOS and Mac openSSL libraries with Bitcode enabled
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh
# Peter Steinberger, PSPDFKit GmbH, @steipete.
# Doron Adler, GlideTalk, @Norod78
@desertmonad
desertmonad / 32.asm
Last active November 26, 2018 13:00 — forked from FiloSottile/32.asm
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; The .data section is for storing and naming constants.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
section .data
msg: db "Hello world!", 10
.len: equ $ - msg
int[][] result;
float time;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {
for (int i=0; i<width*height; i++)
float th1, th2, r1 = 110, r2 = 100;
float d;
float x, y, t;
int N = 66;
float s = .0015;
int nf = 320;
float tt;
void setup() {
size(500, 500, P2D);
@eternalstorms
eternalstorms / Apple Evangelists.txt
Created June 12, 2013 09:07
Apple Evangelists (WWDC 2013)
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens
- What's new in Cocoa
- Accessibility in iOS
- Building User Interfaces for iOS 7
- Getting Started with UIKit Dynamics
- What's new in Cocoa Touch
- What's New With Multitasking
- Best Practices for Cocoa Animation
- Improving Power Efficiency with App Nap
- Introducing Text Kit
@ericbroska
ericbroska / 0readme.md
Last active December 15, 2015 22:59
Code injection for CleanMyMac 2.0.2

How to build this up and inject in the app yourself?

Note: you must have an Xcode to do all that stuff.

$ git clone https://github.com/andymatuschak/Sparkle.git MySparkleForInjection
$ cd MySparkleForInjection
$ open SUAppcast.m
(sure, you can use any other file with «.m» extension in there)

@ericbroska
ericbroska / AntiReceigenSec.m
Created March 16, 2013 06:02
Fake Security dylib that makes Receigen suck
// @ericbroska
// Fake Security dylib that makes Receigen suck
//
// Usage:
// ----------------------
// 1) compile this file:
// $ clang -dynamiclib -current_version 1.0.0 -compatibility_version 1.0.0 -Wl,-init,_m__n -framework Cocoa -framework Security -lcrypto -o .fakefakefakefakefakesecurity.dylib AntiReceigenSec.m
//
// 2) copy the generated «.fakefakefakefakefakesecurity.dylib» to, say, ./Target.app/Contents/Resources/
// (yes, you can choose any other path inside a target application's bunlde);
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 2, 2024 05:55
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@fzero
fzero / ramdisk.sh
Created August 24, 2012 15:05
Create a RAM Drive in OS X
#!/bin/bash
# Halt on all errors
set -e
# Check for size parameter and display usage if needed
if [ "$1" == "" ]; then
printf "\nRamdisk - creates a RAM disk (what else?)\n\n"
printf "Usage: ramdisk <size in MB>\n\n"
exit 1
@johankj
johankj / gist:1137691
Created August 10, 2011 18:22
Register Twitter for Mac with MacHeist license
# As it is no longer possible to register
# the app because of Apple's App Store Terms
# The only legal way to get the features,
# is to get an older version (from backup)
# and then upgrade to the latest version.
# Or you can run the following commands with you license information:
defaults write com.twitter.twitter-mac reg.email3 -string "your@email"
defaults write com.twitter.twitter-mac reg.license3 -string "yourMacHeistLicense"