Requires:
- Homebrew (http://mxcl.github.io/homebrew/)
Verify Homebrew is not sick:
brew doctor
Install Node (with NPM) with Homebrew:
var r = R.player, oVol = r.volume(), tf = r._onTrackFinished, ar = r._onAudioReady, n = r._next; | |
r._onTrackFinished = function() { | |
return .001 !== r.volume() && (oVol = r.volume()), r.volume(.001), tf.apply(this, arguments); | |
}; | |
r._onAudioReady = function() { | |
return r.playingAd() || r.volume(oVol), ar.apply(this, arguments); | |
}; |
#!/usr/bin/env bash | |
echo ">>> Starting Install Script" | |
# Update | |
sudo apt-get update | |
# Install MySQL without prompt | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
<?php | |
// Add this as a mu-plugin. | |
if ( isset( $_GET['wp_maybe_auto_update'] ) ) { | |
add_filter( 'automatic_updates_is_vcs_checkout', '__return_false' ); | |
add_action( 'template_redirect', function() { | |
$time = date( 'r' ); | |
echo "Starting... $time<br />"; | |
delete_site_option( 'auto_core_update_failed' ); |
Info xdebug martomo plugin | |
https://github.com/martomo/SublimeTextXdebug/issues/39 | |
php.ini.erb (vagrant) | |
<% if use_xdebug != "0" %> | |
[xdebug] | |
xdebug.remote_enable=1 | |
xdebug.remote_port=9001 |
# A simple Makefile alternative to using Grunt for your static asset compilation | |
# | |
## Usage | |
# | |
# $ npm install | |
# | |
# And then you can run various commands: | |
# | |
# $ make # compile files that need compiling | |
# $ make clean all # remove target files and recompile from scratch |
tell application "App Tamer" | |
wake "Dropbox" | |
delay 60 | |
# Hack to get App Tamer to sleep Dropbox again | |
# There is no "sleep" verb ಠ_ಠ | |
autostop false | |
autostop true | |
end tell |
Requires:
Verify Homebrew is not sick:
brew doctor
Install Node (with NPM) with Homebrew:
require "net/https" | |
require "uri" | |
require "JSON" | |
uri = URI.parse("https://api.github.com/users/redbush") | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
request = Net::HTTP::Get.new(uri.request_uri) | |
response = http.request(request) |
Requires:
Homebrew (http://mxcl.github.io/homebrew/)
Ruby
Verify Homebrew is not sick:
brew doctor
<?php | |
/** | |
* Automated PHP export for Advanced Custom Fields | |
* | |
* Export is initiated whenever an admin publishes a new field group | |
* or saves changes to an existing field group. | |
* | |
* Place this code in your theme's functions.php file. | |
* | |
*/ |