List the current installed Java versions
$ /usr/libexec/java_home -V
Install the version desired
Apple provides their own version of 6 (Java for OS X 2015-001)
#!/usr/bin/env perl | |
# Simple LWP browser for testing | |
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; | |
use LWP::UserAgent; | |
$ua = LWP::UserAgent->new; | |
$ua->agent("$0/0.1 " . $ua->agent); | |
# $ua->agent("Mozilla/8.0") # pretend we are very capable browser |
List the current installed Java versions
$ /usr/libexec/java_home -V
Install the version desired
Apple provides their own version of 6 (Java for OS X 2015-001)
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Sören Bernstein | |
* Date: 15.09.2015 | |
* Time: 12:57 | |
*/ | |
namespace Redlink\CASBundle\Command; |
find /the/path -depth -name "*.abc" -exec sh -c 'mv "$1" "${1%.abc}.edefg"' _ {} \; |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Sometimes, we have to access git repositories over SSL and the server only provides a self-signed certificate 🙈. Although there are ways to increase the trust level for the self-signed certificate (https://confluence.atlassian.com/fishkb/unable-to-clone-git-repository-due-to-self-signed-certificate-376838977.html, https://confluence.atlassian.com/bitbucketserverkb/resolving-ssl-self-signed-certificate-errors-806029899.html), my recommendation is to just ignore SSL verification alltogether.
Prepend GIT_SSL_NO_VERIFY=true
before every git command run to skip SSL verification. This is particularly useful if you haven't checked out the repository yet.
Run git config http.sslVerify false
to disable SSL verification if you're working with a checked out repository already.
mod_fastcgi
has not been migrated to core alongside the httpd*
packages (https://github.com/Homebrew/homebrew-php/pull/4500, Homebrew/homebrew-core#17726, Homebrew/homebrew-core#18732)mod_proxy_fcgi
instead: http://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html[alias] | |
fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' - | |
squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^' - |
Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.
Once you have a remote set up for one of your upstreams, run these commands with:
git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]
Once set up, git remote -v
should show two (push) URLs and one (fetch) URL. Something like this: