(This page is a simplification of another guide to installing oracle on Mac OS X, from which this was forked.)
Run these brew commands:
brew install InstantClientTap/instantclient/instantclient-basiclite| var o = $({}); | |
| $.subscribe = o.on.bind(o); | |
| $.publish = o.trigger.bind(o); |
| #!/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
| function server() { | |
| local port="${1:-8000}" | |
| open "http://localhost:${port}/" | |
| python -m SimpleHTTPServer "$port" | |
| } | |
| # grunt | |
| function gi() { | |
| npm install --save-dev grunt-"$@" | |
| } |
| ## within current branch, squashes all commits that are ahead of master down into one | |
| ## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case) | |
| ## commit any working changes on branch "mybranchname", then... | |
| git checkout master | |
| git checkout -b mybranchname_temp | |
| git merge --squash mybranchname | |
| git commit -am "Message describing all squashed commits" | |
| git branch -m mybranchname mybranchname_unsquashed | |
| git branch -m mybranchname |
| #=Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| #=Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click_on('Button Value') |
| { | |
| "name": "my-app", | |
| "version": "1.0.0", | |
| "description": "My test app", | |
| "main": "src/js/index.js", | |
| "scripts": { | |
| "jshint:dist": "jshint src/js/*.js", | |
| "jshint": "npm run jshint:dist", | |
| "jscs": "jscs src/*.js", | |
| "browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
| #!/usr/bin/env bash | |
| # fresh-chrome | |
| # | |
| # Use this script on OS X to launch a new instance of Google Chrome | |
| # with its own empty cache, cookies, and user configuration. | |
| # | |
| # The first time you run this script, it will launch a new Google | |
| # Chrome instance with a permanent user-data directory, which you can | |
| # customize below. Perform any initial setup you want to keep on every |
| <?php | |
| // Code goes in theme functions.php or a custom plugin | |
| add_filter( 'pre_option_woocommerce_enable_guest_checkout', 'conditional_guest_checkout_based_on_product' ); | |
| function conditional_guest_checkout_based_on_product( $value ) { | |
| $restrict_ids = array( 1, 2, 3 ); // Replace with product ids which cannot use guest checkout | |
| if ( WC()->cart ) { | |
| $cart = WC()->cart->get_cart(); |
(This page is a simplification of another guide to installing oracle on Mac OS X, from which this was forked.)
Run these brew commands:
brew install InstantClientTap/instantclient/instantclient-basicliteOnce in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm