Skip to content

Instantly share code, notes, and snippets.

Noam Tamim noamtm

Block or report user

Report or block noamtm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
noamtm /
Last active Aug 29, 2015
Helpful articles and links
noamtm /
Created Feb 1, 2015
iOS: Re-sign an app for distribution
# This is not a ready-to-run script. It just shows the relevant command-line calls.
# Build and archive. This can be done by regular developers, using their developer key/profile.
noamtm /
Last active Aug 10, 2017
Python: Parse Info.plist from IPA on OSX
#!/usr/bin/env python
from Foundation import NSData, NSPropertyListSerialization
import fnmatch
import sys
from zipfile import ZipFile
# TODO: Add error checking.
def parse_plist(info_plist_string):
noamtm / qr.html
Created Jan 19, 2015
HTML/JS QR Generator. See inside.
View qr.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
Usage: put text as the query string.
Based on (and embeds it).
<title>Cross-Browser QRCode generator for Javascript</title>
noamtm /
Created Dec 22, 2014
Dropbox upload and share. Quick and dirty, no auth (assumes existing access token). Only tested with an app that can only access its own files, in which case the target folder is relative to the app root folder.
#!/usr/bin/env python
# usage:
# Upload all files to the same folder.
# Inside the folder, files are given the same name as their origin.
# Prints a list of URLs, one on each line.
import dropbox
from sys import argv
noamtm / echoplus.js
Created Aug 31, 2014
node.js echo server
View echoplus.js
Node.js echo server
Starts an http server on port 8000. The server responds with:
- request headers as json
- 3 newline characters ('\n\n\n')
- request body (piped)
It does not attempt to "understand" the request in any way.
I use it for debugging clients, mostly POSTs.
noamtm /
Last active May 29, 2018
Python: read-only access to dictionary keys as attributes
# There are other solutions across the interwebs. This is one that avoids complexities
# because it's read-only (useful when you just want to read json data, for example).
# It also makes it possible to read nested dictionaries in the same way.
# Based on ideas from
class attrdict (dict):
Read-only access to dictionary keys as attributes.
>>> d=attrdict({"a":1, "b":2, "c":{"a":1, "b":2, "c":{"a":1, "b":2}}})
>>> d.a
noamtm /
Created Nov 7, 2012 — forked from enaeseth/
Load YAML mappings as ordered dictionaries
import yaml
import yaml.constructor
def load(data):
# included in standard lib from Python 2.7
from collections import OrderedDict
except ImportError:
# try importing the backported drop-in replacement
You can’t perform that action at this time.