Skip to content

Instantly share code, notes, and snippets.

View JackoPlane's full-sized avatar
⚠️
Carefulling in progress

Jack Perry JackoPlane

⚠️
Carefulling in progress
View GitHub Profile
@JackoPlane
JackoPlane / install-ffmpeg-amazon-linux.sh
Created December 25, 2018 06:26 — forked from prashantmaurice/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@JackoPlane
JackoPlane / sharing_data_ios.md
Last active February 23, 2018 02:34 — forked from daniellevass/sharing_data_ios.md
Sharing Data between iPhone and Apple Watch apps

Sharing Data between iPhone and Apple Watch apps

So we've already taken a look at some of the issues we've faced building our Whiskr Apple Watch app, next we're going to look into how we shared data between the iPhone and Apple Watch app. This was probably one of the hardest aspects to learn and get right, and the current documentation isn't all that great!

To do this we'll have to create an App Group which is essentially a space which both apps can use. It was brought in with the exetension framework in iOS8 so apps can communicate with their Today widgets, or custom keyboards, and amongst other applications.

Add Capabilities

The first thing we have to do is add the app group capability to both our iPhone and Watch Watch Extension targets.

@JackoPlane
JackoPlane / main.m
Created March 24, 2016 14:06 — forked from steventroughtonsmith/main.m
Load Mach-O executable at runtime and execute its entry point
void callEntryPointOfImage(char *path, int argc, char **argv)
{
void *handle;
int (*binary_main)(int binary_argc, char **binary_argv);
char *error;
int err = 0;
printf("Loading %s\n", path);
handle = dlopen (path, RTLD_LAZY);
#!/bin/bash
FILE_PATH=~/allFiles.txt
USER=apple@flighttest.meg
PASSWORD=qwerty102
SERVER=ftp://flighttest.me/
# root
cd /
echo 'Changed directories to root..'