Skip to content

Instantly share code, notes, and snippets.

@mfazekas
mfazekas / gist:cc7792802859d91e3fcb
Last active June 24, 2016 09:53
Monkey patch for fixing infinite loop in autosave_association
# fixes 'https://github.com/rails/rails/pull/16640'
# add this to lib/patches/active_record/autosave_association.rb
# then in config/environment.rb before initialize! load this file with
# something like:
# require File.join(File.dirname(__FILE__), '../lib/patches/active_record/autosave_association.rb')
# see https://gist.github.com/mfazekas/cc7792802859d91e3fcb
require 'active_record/autosave_association'
module ActiveRecord
@mediabounds
mediabounds / floatsign.sh
Last active March 31, 2024 18:43
A small bash script to re-sign iOS applications.
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the