A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
- NVM
- RVM
{ | |
"require": { | |
"drupal/monolog": "^2.2", | |
"newrelic/monolog-enricher": "^2.0" | |
} | |
} |
define( 'WP_REDIS_IGNORED_GROUPS', [ 'options' ]); |
import React from "react"; | |
import { Link } from "react-router-dom"; | |
export function createResource(getPromise) { | |
let cache = {}; | |
let inflight = {}; | |
let errors = {}; | |
function load(key) { | |
inflight[key] = getPromise(key) |
ENV='ENV' | |
SITE='SITEID' | |
read -sp "Your Pantheon Password: " PASSWORD | |
if [[ -z "$PASSWORD" ]]; then | |
echo "Woops, need password" | |
exit | |
fi | |
while [ 1 ] |
<?php | |
/** | |
* Implements hook_file_url_alter(). | |
*/ | |
function HOOK_file_url_alter(&$uri) { | |
// Client is complaining about images not refreshing immediately when the user | |
// changes one image for another (and the filename stays the same). Using the | |
// image path flush function doesn't trigger a browser cache refresh for the |
This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.
"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |
[ | |
{ | |
"class": "label_control", | |
"color": [255, 255, 255], | |
"shadow_color": [24, 24, 24], | |
"shadow_offset": [0, -1] | |
}, | |
{ | |
"class": "button_control", | |
"content_margin": [6, 5, 6, 6], |
#!/bin/bash | |
ENV='dev' | |
SITE='XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' | |
while [ 1 ] | |
do | |
rsync --partial -rlvz --size-only --ipv4 --progress -e 'ssh -p 2222' ./files/* $ENV.$SITE@appserver.$ENV.$SITE.drush.in:files/ | |
if [ "$?" = "0" ] ; then | |
echo "rsync completed normally" | |
exit |