Skip to content

Instantly share code, notes, and snippets.

@cybertk
cybertk / resign-ipa.py
Created April 8, 2014 17:37
Resign ipa
#!/usr/bin/env python
# Copyright (c) 2013 Quanlong He. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
resign-ipa.py -- Resign the ipa with new certificate and mobileprovision.
"""
"""
@cybertk
cybertk / avi2mp4.sh
Created February 29, 2016 15:36
Convert avi to mp4
#!/bin/sh
O=mp4s
videos=$(find ./videos -iname "*.avi")
for f in $videos; do
o="$O/$(basename ${f%%.avi}).mp4"
if [[ ! -f "$o" ]]; then
cmd="HandBrakeCLI -i "$f" -o "$O/$(basename ${f%%.avi}).mp4""