Skip to content

Instantly share code, notes, and snippets.

@jurassic-gists
jurassic-gists / gist:e7201489c8944b16be23
Created July 29, 2014 20:26
ELO Touch screen Xinput fix
xinput list
xinput list-props "Elo TouchSystems Elo TouchSystems 2515 IntelliTouch Plus USB Touchmonitor"
xinput set-prop "Elo TouchSystems Elo TouchSystems 2515 IntelliTouch Plus USB Touchmonitor" "Coordinate Transformation Matrix" 0.5 0.0 0.5 0.0 1.0 0.0 0.0 0.0 1.0
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
# username@Machine ~/dev/dir[master*]$ # dirty working directory
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"

iVerticle AWS Setup

sudo apt-get update; sudo apt-get -y dist-upgrade

sudo apt-get install git

role :servers, "iv11", "iv12", "iv13"
task :disk_space, :roles => :servers do
run "df -h"
end
task :system_updates, :roles => :servers do
run "sudo apt-get update && sudo apt-get -y dist-upgrade"
end

Servers

Overview

  • Local Development Virtual Machine with similar or identical configuration to remote servers
  • Remote Servers
    • Production load balancer (Apache or Nginx)
      • Cluster for production
    • Staging load balancer (Apache or Nginx)
@jurassic-gists
jurassic-gists / ubuntu bumblebee 319.md
Last active December 18, 2015 09:39
Installing Bumblebee on Ubuntu
@jurassic-gists
jurassic-gists / wp-image-selector
Created May 19, 2013 23:20
Code for wordpress image selection
function wp_gear_manager_admin_scripts() {
wp_enqueue_script('media-upload');
wp_enqueue_script('thickbox');
wp_enqueue_script('jquery');
}
function wp_gear_manager_admin_styles() {
wp_enqueue_style('thickbox');
}