Skip to content

Instantly share code, notes, and snippets.

@ryantan
ryantan / resign-ipa.md
Last active September 10, 2024 05:47
How to resign an .ipa

How to Resign an iOS App

Let's say you receive an app (e.g. MyApp.ipa) from another developer, and you want to be able to install and run it on your devices (by using ideviceinstaller, for example).

Or your certificates and provision profiles have expired and you want to provide a new build to your clients without having to make a new build on the latest XCode or iOS SDK.

Prepare New Signing Assets

The first step is to attain a Provisioning Profile which includes all of the devices you wish to install and run on. Ensure that the profile contains a certificate that you have installed in your Keychain Access (e.g. iPhone Developer: Some Body (XXXXXXXXXX) ). Download the profile (MyProfile.mobileprovision) so you can replace the profile embedded in the app.

@ryantan
ryantan / Drupal 8 dev services
Created May 17, 2018 04:35
development.services.yml
# Local development services.
#
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
# Twig debugging:
#
# When debugging is enabled:
@ryantan
ryantan / Drupal 8 upload photo controller
Last active May 8, 2018 06:13
A drupal 8 controller function to handle photo upload requests.
public function uploadPhoto(Profile $profile, Request $request) {
if ($request->getMethod() === 'POST' || $request->getMethod() === 'PUT') {
// Decode body
$body_raw = $request->getContent();
$body = json_decode($body_raw);
$imageName = $body->name;
$imageData = base64_decode(preg_replace('#^data:image/\w+;base64,#i', '', $body->data));
{
"level": "Diploma",
"qualifications": [
"Diploma in Applied Chemistry",
"Diploma in Applied Food Science & Nutrition",
"Diploma in Baking & Culinary Science",
"Diploma in Biologics & Process Technology",
"Diploma in Biomedical Engineering",
"Diploma in Biomedical Science",
"Diploma in Biomedical Sciences",
More Consensus on Coffee’s Benefits Than You Might Think
MAY 11, 2015
When I was a kid, my parents refused to let me drink coffee because they believed it would “stunt my growth.” It turns out, of course, that this is a myth. Studies have failed, again and again, to show that coffee or caffeine consumption are related to reduced bone mass or how tall people are.
Coffee has long had a reputation as being unhealthy. But in almost every single respect that reputation is backward. The potential health benefits are surprisingly large.
When I set out to look at the research on coffee and health, I thought I’d see it being associated with some good outcomes and some bad ones, mirroring the contradictory reports you can often find in the news media. This didn’t turn out to be the case.
# This is a header
## This is an even smaller header
### Even smaller...
###### Quite small
Here is some normal text. A paragraph, even!
*This text is in italics.*
**This text is in bold.**