Skip to content

Instantly share code, notes, and snippets.

View edwardsmatt's full-sized avatar

Matthew Edwards edwardsmatt

View GitHub Profile
@edwardsmatt
edwardsmatt / keybase.md
Created December 9, 2021 04:46
keybase.md

Keybase proof

I hereby claim:

  • I am edwardsmatt on github.
  • I am edwardsmatt (https://keybase.io/edwardsmatt) on keybase.
  • I have a public key ASAmGYry1GqZ1o_PsCsonIatm2HO_vg3IPwdxh-d9O56tgo

To claim this, I am signing this object:

@edwardsmatt
edwardsmatt / thing.scala
Last active February 28, 2016 23:14
How to compare evaluate equals ignoring case class members?
scala> :paste
// Entering paste mode (ctrl-D to finish)
import org.joda.time.Instant
case class ADbRecord(
id: Option[Long] = None,
name: String,
isDeleted: Boolean = false,
createdAt: Instant = Instant.now,
@edwardsmatt
edwardsmatt / Description
Last active August 29, 2015 14:11
Remove file from git history and tags.
Based on this -https://gist.github.com/shennyg/1047737- modified to use the instructions from: https://help.github.com/articles/remove-sensitive-data/
* This will overwrite your existing tags.
@edwardsmatt
edwardsmatt / gist:3922671
Created October 20, 2012 08:24
How to disable Hibernate Mode OSX
Disable Hibernate for SSD Performance - From here: http://blog.alutam.com/2012/04/01/optimizing-macos-x-lion-for-ssd/#hibernation
!!! Check man pmset for more information
matt@macbook : ~
$ pmset -g
Active Profiles:
Battery Power -1
AC Power -1*
Currently in use:
standbydelay 4200
standby 0
@edwardsmatt
edwardsmatt / com.github.edwardsmatt.noatime.plist
Created October 20, 2012 06:17
noatime plist for macosx with SSD
<!-- Place in /Library/LaunchDaemons/com.github.edwardsmatt.noatime.plist -->
<!-- execute: sudo chown root:wheel /Library/LaunchDaemons/com.github.edwardsmatt.noatime.plist -->
<!-- Restart -->
<!-- Verify: mount | grep " / " -->
<!-- you should see noatime in the parentheses -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
@edwardsmatt
edwardsmatt / gist:3779824
Created September 25, 2012 03:32
Maven configuration for Groovy 2
<!--Taken from: http://glaforge.appspot.com/article/building-your-groovy-2-0-projects-with-maven-->
<properties>
<gmavenVersion>1.4</gmavenVersion>
<gmavenProviderSelection>2.0</gmavenProviderSelection>
<groovyVersion>2.0.0</groovyVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
@edwardsmatt
edwardsmatt / silent-installer-config.xml
Created September 5, 2012 04:49
weblogic-silent-installer
<!--
Silent installer option: -mode=silent -silent_xml=/full/path/to/silent-installer-config.xml
-->
<bea-installer>
<input-fields>
<data-value name="BEAHOME" value="/web/bea"/>
<data-value name="WLS_INSTALL_DIR" value="/web/bea/wlserver_10.3"/>
<data-value name="WLW_INSTALL_DIR" value="/web/bea/workshop_10.3"/>
<data-value name="WLP_INSTALL_DIR" value="/web/bea/wlportal_10.3"/>
<data-value name="COMPONENT_PATHS" value="WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic \
@edwardsmatt
edwardsmatt / init.el
Last active October 5, 2015 01:07
Emacs ~/.emacs.d/init.el file * Stop Making Backups, add parens highlighting and add scala-mode2
(show-paren-mode 1)
(setq show-paren-delay 0)
(setq make-backup-files nil)
;(setq url-proxy-services '(
; ("http" . "localhost:3128")))
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
@edwardsmatt
edwardsmatt / com.octo.gwt.test.internal.patchers.XMLHttpRequestPatcher.java
Created October 27, 2011 11:13
Patch GWT XMLHttpRequest class for gwt-test-utils
package com.octo.gwt.test.internal.patchers;
import com.google.gwt.xhr.client.ReadyStateChangeHandler;
import com.google.gwt.xhr.client.XMLHttpRequest;
import com.octo.gwt.test.internal.patchers.dom.JavaScriptObjects;
import com.octo.gwt.test.patchers.PatchClass;
import com.octo.gwt.test.patchers.PatchMethod;
/**
* Patch the GWT {@link XMLHttpRequest} class.
@edwardsmatt
edwardsmatt / WidgetComponentPatcher.java
Created October 13, 2011 22:02
Patch the GXT {@link WidgetComponent#setParent(Widget, Widget) } method for gwt-test-utls-gxt
package com.octo.gxt.test.internal.patchers;
import com.extjs.gxt.ui.client.widget.WidgetComponent;
import com.google.gwt.user.client.ui.Widget;
import com.octo.gwt.test.patchers.PatchClass;
import com.octo.gwt.test.patchers.PatchMethod;
import com.octo.gwt.test.utils.GwtReflectionUtils;
/**
* Patch the GXT {@link WidgetComponent#setParent(Widget, Widget) } method.