Skip to content

Instantly share code, notes, and snippets.

View 82times's full-sized avatar

Jonathan Fretheim 82times

View GitHub Profile
@82times
82times / gist:5867893
Created June 26, 2013 14:38
Error after using vundle to install plasticboy/vim-markdown. I assume vundle is not yet a supported way of doing this.
$ vim
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 563, in <module>
main()
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 278, in addusersitepackages
user_site = getusersitepackages()
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 253, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
@82times
82times / gist:5600155
Last active December 17, 2015 11:09
CocoaPods Acknowledgements helper helper Generates output suitable for a non-centered Acknowledgements.plist from Pods-acknowledgements.markdown.
#! /usr/bin/ruby
# This script generates standard output suitable for writing to an
# Acknowledgements.plist file to be included in the Settings.bundle
# of an iOS app. Call it from a post_install hook in your Podfile.
#
# Feel free to improve--this is not the classiest way of doing this.
# Better would be to add this functionality into CocoaPods itself.
#
# It relies on the Pods-acknowledgements.markdown file generated by
# CocoaPods 0.19.1 Make addjustments to that path here if necessary.
@82times
82times / gist:5594887
Last active September 27, 2016 12:41
Quick and dirty use of the wonderful xcodeproj gem to modify the CODE_SIGN_IDENTITY and PROVISIONING_PROFILE property of all configurations of each target where that property is set.
#!/usr/bin/ruby
# Use the xcodeproj gem to modify code sign identity in all targets where
# that attribute is set.
#
# Kind of getto.
require 'rubygems'
require 'xcodeproj'
@82times
82times / gist:3040741
Created July 3, 2012 16:10
brew -v install samba
$ brew -v install samba
Homebrew 0.9.1
==> Downloading http://samba.org/samba/ftp/stable/samba-3.6.5.tar.gz
Already downloaded: /Library/Caches/Homebrew/samba-3.6.5.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/samba-3.6.5.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file source3/lib/system.c
==> ./autogen.sh
./autogen.sh
@82times
82times / gist:3040716
Created July 3, 2012 16:10
brew doctor [homebrew samba issue]
Your system is raring to brew.