I hereby claim:
- I am pryley on github.
- I am pryley (https://keybase.io/pryley) on keybase.
- I have a public key ASCIgelMI6dpyCg15fHavShFYmjSZ3ERl3GebPxokuGHOwo
To claim this, I am signing this object:
#!/bin/bash | |
# Check that homebrew is installed | |
if [[ "" == "$(command -v brew)" ]]; then | |
echo "switch-php requires homebrew to manage installed versions of PHP." | |
exit 1 | |
fi | |
# Check if command was ran as root. | |
if [[ $(id -u) -eq 0 ]]; then |
I hereby claim:
To claim this, I am signing this object:
Suppose you have, by mistake, added your IDE's project folder (you know, these .idea
folders with all kinds of local paths and configuration data and settings in it) to the Git repository of your project. (We're talking about a whole folder here, but the same rules apply to individual files as well.)
Of course, you only realize that two days after the fact and have already pushed it, and your colleagues have already pulled it. They use the same IDE as you do, so whenever they change a setting or fix paths, they can either
<?php | |
/** | |
* Plugin Name: print__r() | |
* Description: print_r() alternative | |
* Version: 1.0.0 | |
* Author: Paul Ryley | |
* Author URI: http://geminilabs.io | |
*/ | |
/** |
set :application, 'myapp' | |
set :repo_url, "git@bitbucket.org:geminilabs/#{fetch(:application)}.git" | |
SSHKit.config.command_map[:composer] = '/srv/users/serverpilot/bin/composer' | |
set :wpcli, '/srv/users/serverpilot/bin/wp' | |
# Branch options | |
# Prompts for the branch name (defaults to current branch) | |
#ask :branch, -> { `git rev-parse --abbrev-ref HEAD`.chomp } |
#!/bin/bash | |
THEPATH=${1%/} | |
THESIZE=$2 | |
if [ -z $THEPATH ]; | |
then THEPATH="/" | |
fi | |
[[ -n "$2" ]] || { echo -en "\n usage: getsize [path] [size (the min size in Mb)]\n example: getsize ~/Downloads 13\n\n"; exit 0 ; } |
<?php | |
/** | |
* Plugin Name: Ultimate Member Modifications | |
* Plugin URI: http://geminilabs.io | |
* Description: This plugin adds custom features and modifications to the Ultimate Member plugin family. | |
* Version: 1.0.0 | |
* Author: Gemini Labs | |
* Author URI: http://geminilabs.io | |
* License: MIT License | |
*/ |
module.exports = function( grunt ) | |
{ | |
'use strict'; | |
grunt.initConfig( { | |
clean: { | |
dist: [ | |
'public/assets/css/*', | |
] | |
}, |
function update_menu_order() { | |
global $wpdb; | |
parse_str( $_POST['order'], $data ); | |
if ( is_array( $data ) ) { | |
$id_arr = array( ); | |
foreach ( $data as $key => $values ) { |
<?php | |
try { | |
if( $access_token ) { | |
// Set access token | |
$client->setAccessToken( $access_token ); | |
// Assign variables | |
$slug_array = $filter_path_array = $filter_array = $data = array(); | |