Skip to content

Instantly share code, notes, and snippets.

@meshtactics
meshtactics / fix-contextmenu.sh
Created October 29, 2012 09:16
Fix duplicate context menu items on mac os x
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\
LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local\
-domain system -domain user
Git 1.6:
git ls-files --others -i --exclude-standard
Git 1.4, 1.5:
git ls-files --others -i \
--exclude-from="`git rev-parse --git-dir`/info/exclude" \
--exclude-per-directory=.gitignore
from: http://wtanaka.com/node/7875
@meshtactics
meshtactics / gist:5352767
Created April 10, 2013 08:13
"Show in Finder" context menu fix
sudo killall -KILL appleeventsd
@meshtactics
meshtactics / gist:6434688
Created September 4, 2013 09:19
Disable Chrome page change with mouse.
defaults write com.google.Chrome.plist AppleEnableSwipeNavigateWithScrolls -bool FALSE
@meshtactics
meshtactics / gist:6569054
Created September 15, 2013 09:05
Fix python link in homebrew if upgrade is not applied.
brew link --overwrite python
#!/bin/bash
f=$(pwd)
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork"
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x"
sips --resampleWidth 57 "${f}/${1}" --out "${f}/Icon.png"
sips --resampleWidth 114 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-Small.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 50 "${f}/${1}" --out "${f}/Icon-Small-50.png"
@meshtactics
meshtactics / gist:7872146
Created December 9, 2013 13:20
Maven build error
:WARN:oejuc.AbstractLifeCycle:Thread-25: FAILED org.eclipse.jetty.maven.plugin.JettyServer@200bda43: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/FutureCallback
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/FutureCallback
at org.eclipse.jetty.server.AbstractConnector.shutdown(AbstractConnector.java:281)
at org.eclipse.jetty.server.AbstractNetworkConnector.shutdown(AbstractNetworkConnector.java:108)
at org.eclipse.jetty.server.ServerConnector.shutdown(ServerConnector.java:248)
at org.eclipse.jetty.maven.plugin.MavenServerConnector.shutdown(MavenServerConnector.java:140)
at org.eclipse.jetty.server.Server.doStop(Server.java:359)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:90)
at org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:133)
Caused by:
#!/bin/sh
# Current as working as of 2012/4/17
# Xcode 4.3.2
PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX"
WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace"
CONFIG="AdHoc"
SCHEME="XXXXXXXX"