This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
cat <<MAXFILES > /Library/LaunchDaemons/limit.maxfiles.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 13.5%)", | |
"@gray-dark": "lighten(#000, 20%)", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 46.7%)", | |
"@gray-lighter": "lighten(#000, 93.5%)", | |
"@brand-primary": "#428bca", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install specific version of Homebrew formula | |
# usage example: | |
# $ brew-install ssh-copy-id 6.0p1 | |
function brew-install { | |
local formula version formula_hash | |
formula=$1 | |
version=$2 | |
cd `brew --prefix` | |
git_last_commit_id=`git rev-parse --short HEAD` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create a new file in your home directory called .gtkrc-eclipse | |
# call eclipse with this command: | |
# env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:/home/USER/.gtkrc-eclipse '/path_to_eclipse/eclipse' | |
# In your Eclipse directory find the file 'plugins/org.eclipse.platform_4.2.*/css/e4_default_gtk.css' | |
# (there's an * in there, because I guess that the version may change in the future or may be different already). | |
# In this file there's a CSS class: | |
#.MPartStack { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// Sample library for using IFilter to read text from any registered filter type. | |
/// | |
/// Helpful links: | |
/// http://msdn.microsoft.com/en-us/library/ms691105(VS.85).aspx | |
/// http://ifilter.codeplex.com/ | |
/// http://www.pinvoke.net/default.aspx/query/LoadIFilter.html | |
/// | |
/// Code here is taken from a combination of the project located at http://ifilter.codeplex.com/ | |
/// as well as definitions taken from p-invoke.net. License is MS-PL so enjoy. |