Skip to content

Instantly share code, notes, and snippets.

View arthurdapaz's full-sized avatar
📱
Tweaking iOS and CI/CDs

Arthur da Paz arthurdapaz

📱
Tweaking iOS and CI/CDs
View GitHub Profile
@arthurdapaz
arthurdapaz / Setting_upa_new_repo.md
Last active November 7, 2020 15:21 — forked from alexpchin/Setting_upa_new_repo.md
Create a new repository on the command line

Setting up a new Git Repo

##Create a new repository on the command line

REPO="REPO_NAME_HERE"
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"$REPO"}'
touch README.md

git init

@arthurdapaz
arthurdapaz / install_nano4.1_macos.sh
Created April 16, 2019 23:01
Script to install nano v4.1 on MacOS Mojave
#!/usr/bin/env bash
# Install Nano (www.nano-editor.org) with syntax highlighting (MacOS)
VERSION="4.1"
NANO_SHORT="nano-$VERSION"
NANO_SRC="$NANO_SHORT.tar.gz"
NANO_URL="https://www.nano-editor.org/dist/v4"
NANO_EXTRA="https://github.com/scopatz/nanorc"
@arthurdapaz
arthurdapaz / install_bash5.0_macos.sh
Created April 16, 2019 22:59
Script to install bash without brew or wget on MacOS
#!/usr/bin/env bash
# Install Bash 5.0 (MacOS)
VERSION="5.0"
BASH_SHORT="bash-$VERSION"
BASH_SRC="$BASH_SHORT.tar.gz"
BASH_URL="https://ftp.gnu.org/gnu/bash"
BASH_PREFIX="/usr/local"
BASH_PATH="$BASH_PREFIX/bin/bash"
@arthurdapaz
arthurdapaz / MemPatcher.m
Last active January 14, 2018 19:32
MemPatcher magic lines itself
#import "MemPatcher.h"
vm_object_offset_t calcAddress(vm_object_offset_t offset)
{
const struct mach_header *mach;
mach = _dyld_get_image_header(0);
if (mach->flags & MH_PIE)
{
vm_object_offset_t slide = _dyld_get_image_vmaddr_slide(0);
@arthurdapaz
arthurdapaz / MemPatcher.h
Last active January 3, 2018 16:30
Header for MemPatcher
/*
Runtime MemPatcher - by Arthur da Paz
Completely based on the famous writeData.h
created by Razzile & HackJack for iOSGods.com
Copyright 2016 Arthur da Paz, AP Security Inc
This code is licensed under the GTFC LICENSE, which means
██████╗ ██╗██╗ ██╗███████╗ ████████╗██╗ ██╗███████╗