Skip to content

Instantly share code, notes, and snippets.

View aonez's full-sized avatar
🦗

aONe aonez

🦗
View GitHub Profile
@sprhawk
sprhawk / gist:2779208
Created May 24, 2012 03:06
git diff localizable.strings
(from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html)
First, add this to the project’s .git/info/attributes file:
+
*.strings diff=localizablestrings
(Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file)
Second, add this to your ~/.gitconfig file:
@przemoc
przemoc / p7zip-pwd-from-stdin.patch
Created January 10, 2011 00:34
Awful p7zip hack for reading passwords from stdin. Compatible w/ 9.04 and 9.13.
--- p7zip_9.04.orig/CPP/7zip/UI/Console/Main.cpp 2009-06-27 16:18:14.000000000 +0200
+++ p7zip_9.04/CPP/7zip/UI/Console/Main.cpp 2011-01-10 01:25:36.000000000 +0100
@@ -48,6 +48,10 @@
#include "myPrivate.h"
#include "Windows/System.h"
+#include <iostream>
+
+#define MAX_PWD_SIZE_FROM_STDIN 1024
+
# http://www.makemacwork.com/disable-automatic-updates.htm
for USER in `ls -1 /Users | \
sed -e '/Shared/d' -e '/Deleted Users/d' -e '/.localized/d'`; \
do \
sudo -u $USER softwareupdate --schedule off; \
done