Skip to content

Instantly share code, notes, and snippets.

# Configure Spree Preferences
#
# Note: Initializing preferences available within the Admin will overwrite any changes that were made through the user interface when you restart.
# If you would like users to be able to update a setting with the Admin it should NOT be set here.
#
# In order to initialize a setting do:
# config.setting_name = 'new value'
Spree.config do |config|
# Example:
# Uncomment to override the default site name.
set :branch, "master"
set :rails_env, 'production'
role :web, '127.0.0.1:2200'
role :app, '127.0.0.1:2200'
role :db, '127.0.0.1:2200', :primary => true
set :branch, "staging"
set :rails_env, 'staging'
role :web, '127.0.0.1:2201'
role :app, '127.0.0.1:2201'
role :db, '127.0.0.1:2201', :primary => true
@binaryphile
binaryphile / gist:9491223
Last active August 29, 2015 13:57
phantomjs error
An error occurred in an after hook
Cliver::Dependency::VersionMismatch: Could not find an executable 'phantomjs' that matched the requirements '~> 1.8', '>= 1.8.1'. Found versions were {"/home/ted/.g
em/ruby/2.0.0/bin/phantomjs"=>"2.0.0"}.
occurred at /home/ted/.gem/ruby/2.0.0/gems/cliver-0.2.2/lib/cliver/dependency.rb:149:in `raise_version_mismatch!'
~/D/p/s/2/s/frontend *payment_state> gem list phantomjs
*** LOCAL GEMS ***
phantomjs-binaries (1.8.1.1)
2014-04-15 12:21:16,450 ERROR 192.168.0.109 - en-GB - / - mojoPortal.Web.Global - Referrer(http://www.diditbetter.com/Secure/Login.aspx?returnurl=/Default.aspx) useragent Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
System.Web.UI.ViewStateException: Invalid viewstate.
Client IP: 192.168.0.109
Port: 56889
Referer: http://www.diditbetter.com/Secure/Login.aspx?returnurl=%2fDefault.aspx
Path: /Default.aspx
User-Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
ViewState:
@binaryphile
binaryphile / layout.master
Created May 14, 2014 17:57
mojoportal flexmenu
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="~/App_MasterPages/layout.Master.cs" Inherits="mojoPortal.Web.layout" %>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head id="Head1" runat="server">
<meta charset="utf-8" />
<portal:StyleSheetCombiner id="StyleSheetCombiner" runat="server" JQueryUIThemeName="redmond" UseIconsForAdminLinks="false" EnableNonClickablePageLinks="true" QtFileCssIsInMainCss="false" />
<portal:MetaContent id="MetaContent" runat="server" DisableContentType="true" />
iwlwifi-1000-5.ucode
iwlwifi-100-5.ucode
iwlwifi-105-6.ucode
iwlwifi-135-6.ucode
iwlwifi-2000-6.ucode
iwlwifi-2030-6.ucode
iwlwifi-3160-7.ucode
iwlwifi-3160-8.ucode
iwlwifi-3945-2.ucode
iwlwifi-4965-2.ucode
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
#!/usr/bin/env bash
if [ -e .env ]; then
source .env
fi
: ${RI_VERSION?"need to set ruby-install version RI_VERSION, see README.md"}
: ${ROOT=/root}
: ${IMAGE=ubuntu:precise}
@binaryphile
binaryphile / evdev.lst.patch
Created June 23, 2014 18:22
Minimak patches
--- /usr/share/X11/xkb/rules/evdev.lst.original 2014-06-09 16:12:00.435021466 -0400
+++ /usr/share/X11/xkb/rules/evdev.lst 2014-06-09 16:22:41.731043517 -0400
@@ -294,6 +294,7 @@
dvorak-r us: English (right handed Dvorak)
dvorak-classic us: English (classic Dvorak)
dvp us: English (programmer Dvorak)
+ minimak us: English (Minimak)
rus us: Russian (US, phonetic)
mac us: English (Macintosh)
altgr-intl us: English (international AltGr dead keys)