Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" ?>
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.clustering.jgroups"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
@binaryphile
binaryphile / .bashrc
Last active August 29, 2015 14:12
bash function to handle bundler issue for mri when jruby uses vendor/cache
bundle()
{
if [ $# -eq 0 ] || [ "$1" == "install" ] ; then
shift
command bundle install --no-cache "$@"
else
command bundle "$@"
fi
}
listen l1 :::80
mode tcp
clitimeout 180000
srvtimeout 180000
contimeout 4000
server srv1 *:8080
global
user haproxy
@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)
#!/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}
! 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
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
@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" />
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 / 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)