Skip to content

Instantly share code, notes, and snippets.

View mgoeppner's full-sized avatar

mgoeppner mgoeppner

View GitHub Profile
rubocop_happy = $(rubocop -a)
if [ "$rubocop_happy" != "true" ]
then
cat <<\EOF
Error: Rubocop detected style conflicts, commit cancelled, please review.
EOF
exit 1
fi
@mgoeppner
mgoeppner / gist:3896206
Created October 15, 2012 23:00
Lotro Fix
1. Go to your home folder. (cd ~)
2. Clone the current wine development branch from git and change to the source directory (git clone http://source.winehq.org/git/wine.git wine-git && cd wine-git).
3. Download the patch. (wget -O lotro-fix.diff http://bugs.winehq.org/attachment.cgi?id=42144)
4. Apply the patch. (patch -p1 < lotro-fix.diff)
5. Configure and compile wine (./configure && make depend && make)
6. Configure your launcher of choice to use the wine executable located at ~/wine-git/wine to preserve your current wine install, or if you like living on the edge do sudo make install from the wine-git folder.
7. Login as normal and TRAMPLE ALL THE ORCS!
@mgoeppner
mgoeppner / gist:3198339
Created July 29, 2012 12:21
bionic data logcat
D/AlarmManagerService( 394): Kernel timezone updated to 240 minutes west of GMT
D/AlarmManagerService( 394): Kernel timezone updated to 240 minutes west of GMT
D/MotoSimUiHelper( 653): [SHOWSIMSTATUS] ----- ACTION SERVICE_STATE [RADIO == RADIO_ON]
D/MotoSimUiHelper( 653): [SHOWSIMSTATUS] ----- ACTION SERVICE_STATE [PHONE == 13]
D/MotoSimUiHelper( 653): [SHOWSIMSTATUS] ----- ACTION SERVICE_STATE ( ) [NOSIM 0 home Verizon Wireless 310004 eHRPD CSS supported 5 86 RoamInd=64 DefRoamInd=64 EmergOnly=false]
<cfscript>
x = "100";
y = 100;
</cfscript>
<cfdump var="#x.getClass().getName()#">
<cfdump var="#y.getClass().getName()#">
<!---
Both dump: java.lang.String
@mgoeppner
mgoeppner / jquery
Created April 5, 2012 17:23 — forked from anonymous/jquery
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<html lang="en">
<head>
<link rel="stylesheet" href="http://www.katemelody.me/default.css" type="text/css" media="screen" />
@mgoeppner
mgoeppner / two column demo
Created April 2, 2012 01:04
two column demo
<html>
<head>
<title>Demo</title>
<style type="text/css">
.container
{
width: 100%;
}
.container > div
<html>
<head>
<title>Cemetery Mania!</title>
</head>
<body>
<canvas id="gamecanvas" width="760" height="570" tabindex="1"></canvas>
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/resource.js"></script>
<script type="text/javascript" src="js/world.js"></script>