Custom recipe to get macOS running from scratch, setup applications and (WordPress) developer environment. I use this gist to keep the steps required to have a functioning system after a semi-annual fresh install.
This file contains hidden or 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
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference. | |
| * | |
| * All credits go to luetkemj. Thanks! | |
| * | |
| * @author luetkemj <luetkemj@gmail.com> | |
| * @author s3rgiosan <me@s3rgiosan.com> | |
| * | |
| * @see http://codex.wordpress.org/Class_Reference/WP_Query#Parameters |
This file contains hidden or 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
| // an example channel service that lets consumers | |
| // subscribe and publish for nuclear reactor meltdowns | |
| var CoreReactorChannel = function($rootScope) { | |
| // local constants for the message ids. | |
| // these are private implementation detail | |
| var ELEVATED_CORE_TEMPERATURE_MESSAGE = "elevatedCoreMessage"; | |
| // publish elevatedCoreTemperature |
This file contains hidden or 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
| <?php | |
| function get_template_page_url( $template_name ) { | |
| $url = null; | |
| $pages = new \WP_Query( array( | |
| 'post_type' => 'page', | |
| 'meta_key' => '_wp_page_template', | |
| 'meta_value' => $template_name, | |
| ) ); |
This file contains hidden or 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/sh | |
| # Change these settings to match what you are wanting to do | |
| FILE=/File/To/Copy | |
| PATH=/Where/To/Put/File | |
| OPTIONS=`vagrant ssh-config | grep -v '^Host ' | awk -v ORS=' ' 'NF{print "-o " $1 "=" $2}'` | |
| # copy from host to vagrant | |
| # scp ${OPTIONS} $FILE v:$PATH |
I hereby claim:
- I am narayon on github.
- I am narayon (https://keybase.io/narayon) on keybase.
- I have a public key ASAInUGjO1eaI4pdabI7CM6B2AZpIWk-kPC3n-v3uuRHTQo
To claim this, I am signing this object:
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # | |
| # Bootstrap script for setting up a new OSX machine | |
| # | |
| # This should be idempotent so it can be run multiple times. | |
| # | |
| # Some apps don't have a cask and so still need to be installed by hand. These | |
| # include: | |
| # | |
| # - Newton (app store) |
OlderNewer