Skip to content

Instantly share code, notes, and snippets.

View dchanm's full-sized avatar

David Chan dchanm

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dchanm on github.
  • I am dchanm (https://keybase.io/dchanm) on keybase.
  • I have a public key ASBvog_UsDBtVR6-i645Y2jORnqjcBppnRzZaPHpevU7Ygo

To claim this, I am signing this object:

#!/bin/bash
JAR=omni.ja
FILE=modules/AppConstants.jsm
function main() {
cp -n $JAR $JAR.orig
zip -F $JAR --out $JAR.fix
unzip $JAR.fix $FILE
perl -0777 -i.orig -pe 's/(MOZ_REQUIRE_SIGNING:\n.+?\n\s+)true,/\1false,/' $FILE
zip -vu0XD $JAR.fix $FILE