Skip to content

Instantly share code, notes, and snippets.

View nvanselow's full-sized avatar

Nick Vanselow nvanselow

  • MA
View GitHub Profile
@nvanselow
nvanselow / missing_profiles.md
Created February 5, 2017 02:44
Fix missing provisioning profiles when running `ionic build ios`

To fix missing provisioning profiles when running ionic build ios run the following command to copy the profiles to the correct directory for ionic. sudo cp -r ~/Library/MobileDevice/ /Library/MobileDevice/

@nvanselow
nvanselow / ignore_files_in_git.md
Created April 3, 2017 15:47
Ways to stop a local file from being comitted in git

Ignoring the file completely:

git update-index --skip-worktree <file>

git update-index --no-skip-worktree <file>

Assuming the file is unchanged (only recommended for expensive diff checks):

git update-index --assume-unchanged <file>

@nvanselow
nvanselow / StreamToReadableString.java
Created September 13, 2017 03:31
Java convert stream to readable string
StringWriter writer = new StringWriter();
IOUtils.copy(stream, writer, "UTF-8");
String theString = writer.toString();