Skip to content

Instantly share code, notes, and snippets.


Chris Charlton ccharlton

Block or report user

Report or block ccharlton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:37c35d4cebad6a0eaf08
read -sp "Your Pantheon Password: " PASSWORD
if [[ -z "$PASSWORD" ]]; then
echo "Woops, need password"
while [ 1 ]
rjorgenson /
Last active Jun 22, 2019 — forked from agnoster/
My ZSH Theme


forked by rjorgenson

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
  • NVM
  • RVM
swichers / add-mtime-file-url.php
Created Jun 19, 2015
Add mtime to files in Drupal
View add-mtime-file-url.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
terrehbyte /
Last active Oct 11, 2019
Useful Open-Source Unity Assets

Useful Open-Source Unity Assets

This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.

Art / Design Tools

ProbePolisher - Light Probe Editor - keijiro

"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."


View bootstrap-sass-mixin-cheatsheet.scss
// 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);
anonymous / Default.sublime-theme
Created Sep 5, 2014
Sublime Text 2 Default theme file
View Default.sublime-theme
"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],
View gist:1142360ae789e8bf03d9
while [ 1 ]
rsync --partial -rlvz --size-only --ipv4 --progress -e 'ssh -p 2222' ./files/* $ENV.$SITE@appserver.$ENV.$
if [ "$?" = "0" ] ; then
echo "rsync completed normally"
silvenon / generator-webapp-with-compass.diff
Last active Sep 24, 2015
Changes needed in order to implement Compass back to Yeoman's generator-webapp.
View generator-webapp-with-compass.diff
-sass: {
- files: ['<%= %>/styles/{,*/}*.{scss,sass}'],
- tasks: ['sass:server', 'autoprefixer']
+compass: {
+ files: ['<%= %>/styles/{,*/}*.{scss,sass}'],
+ tasks: ['compass:server', 'autoprefixer']
dimsemenov / vcl-regex-cheat-sheet
Last active Oct 23, 2019
Regular expression cheat sheet for Varnish (.vcl). Examples of vcl regexp. Found here (by Kristian Lyngstøl)
View vcl-regex-cheat-sheet
Regular expression cheat sheet for Varnish
Varnish regular expressions are NOT case sensitive. Varnish uses POSIX
regular expressions, for a complete guide, see: "man 7 regex"
Basic matching:
req.url ~ "searchterm"
True if req.url contains "searchterm" anywhere.
req.url == "searchterm"
ndeet /
Last active Feb 8, 2018
Drupal 7, Panels 3.3+ Pane Style Plugin
; Register Style Plugin directory
plugins[panels][styles] = panels/styles
You can’t perform that action at this time.