Find all the codesign certificates on your machine
security find-identity -p codesigning
Pretty print a mobileprovision profile
security cms -D -i YourApp.app/embedded.mobileprovision
package main | |
import ( | |
"io" | |
"bufio" | |
"os" | |
"flag" | |
"log" | |
) |
Copy the delivered ipa into a directory to work in.
export PlistBuddy="/usr/libexec/PlistBuddy" to get the PlistBuddy tool to your shell. If it is not added, all references to PlistBuddy will need to be written as the full path.
Take the delivered App.ipa and unzip it using the unzip command. This should produce a Payload directory containing the app and its resources.
Enter the command "codesign -d --entitlements :enterprise.plist Payload/PathToApp.app/" This pulls the entitlements out of the app, and prints them to a plist, without a leading "blob" of data. Pay particular attention to the colon before the enterprise.plist file name.
"""Functions for downloading and reading MNIST data.""" | |
from __future__ import print_function | |
import gzip | |
import os | |
import urllib | |
import numpy | |
SOURCE_URL = 'http://yann.lecun.com/exdb/mnist/' | |
def maybe_download(filename, work_directory): | |
"""Download the data from Yann's website, unless it's already here.""" | |
if not os.path.exists(work_directory): |
def histogram(filename): | |
with open(filename) as fd: | |
return Counter(w.strip().lower() for w in fd.read().split() | |
if not (w in nltk.corpus.stopwords.words('english') )).most_common() | |
print '\n'.join("{}:{}".format(x,y) for x,y in histogram('/Users/fabrizio/Desktop/input.txt')) |
# Installing OpenCV python libs on mac to work with virtualenv | |
# OpenCV 2.4.3 | |
# Python 2.7.3 installed with brew | |
# download CUDA https://developer.nvidia.com/cuda-downloads | |
# OpenNI SDK http://www.openni.org/openni-sdk/?download=http://www.openni.org/wp-content/uploads/2013/01/OpenNI-MacOS-x64-2.1.0.tar.zip#.UWhRlyt4YRk | |
# assuming you have virtualenv, pip, and python installed via brew | |
# assuming $WORKON_HOME is set to something like ~/.virtualenvs | |
# using homebrew - make sure we're current |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"io" | |
"reflect" | |
"runtime" | |
"strings" |
Inside the ubuntu virtual machine:
ardupilot/Tools/autotest/sim_arduplane.sh
on your mac:
Run Simulator:
$ export PATH=$WORKSPACE/jsbsim/src/:$PATH $ ardupilot/Tools/autotest/jsbsim/runsim.py --home=-35.362938,149.165085,584,270
Avi Flax wrote a very interesting article about Profiling Node Programs on Mac OS X. However, if you manage your Node.js installation with homebrew, you can use the following scripts to install the V8 debugger separately.
Just download this Gist, make install.sh
executable with chmod u+x install.sh
and run the script.
// Provided by package runtime. | |
func now() (sec int64, nsec int32) | |
// Now returns the current local time. | |
func Now() Time { | |
sec, nsec := now() | |
return Time{sec + unixToInternal, nsec, Local} | |
} |