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
csrutil disable
sudo nvram boot-args="intcoproc_unrestricted=1 kext-dev-mode=1 amfi_allow_any_signature=1 amfi_unrestrict_task_for_pid=1 PE_i_can_has_debugger=1 cs_enforcement_disable=1 amfi_get_out_of_my_way=1 amfi=0xff cs_debug=1 ipc_control_port_options=0"
sudo spctl --global-disable
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
sudo defaults write /Library/Preferences/com.apple.security.coderequirements Entitlements -string always
sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool YES
defaults write com.apple.loginwindow DisableScreenLockImmediate -bool yes
@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.

{
"account" : {
"accountName": "Complete Access",
"accountNumber": "062005 1709 5888",
"available": 226.76,
"balance": 246.76
},
"transactions": [{
"id": "44e5b2bc484331ea24afd85ecfb212c8",
"effectiveDate": "20/07/2017",
# PS1
## Default: "\h:\W \u\$"
#export PS1="\e[1;32m\][\u@\h:\W\u\$\[\e[0m\] "
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
export PS1="\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\e[1;35m\]\$(parse_git_branch)\[\e[m\] \[\e[1;31m\]\$\[\e[m\] \[\e[1;37m\]"
export PATH="$HOME/.fastlane/bin:$PATH"
@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);

Keybase proof

I hereby claim:

  • I am JackoPlane on github.
  • I am jackoplane (https://keybase.io/jackoplane) on keybase.
  • I have a public key whose fingerprint is 6E4B DFA4 E1D2 7BD7 619F 7CBB 5DCC D3AF 658D 2C21

To claim this, I am signing this object:

Package: app.taig.hackulos.installous
Version: 5.0.3-1
Architecture: iphoneos-arm
Essential: no
Maintainer: taig.com <[email protected]>
Installed-Size: 8996
Pre-Depends: firmware (>= 4.0)
Depends: us.hackulo.resources, appsync, com.hackulo.us.sourcegui, com.chpwn.weeloader (>= 1.1) | firmware (<< 5.0)
Filename: debs/app.taig.hackulos.installous.deb
Size: 5326112
#!/bin/bash
FILE_PATH=~/allFiles.txt
[email protected]
PASSWORD=qwerty102
SERVER=ftp://flighttest.me/
# root
cd /
echo 'Changed directories to root..'