Skip to content

Instantly share code, notes, and snippets.

View samuellb's full-sized avatar

Samuel Lidén Borell samuellb

  • Sweden
View GitHub Profile
@samuellb
samuellb / BadTest.java
Created January 3, 2020 17:37
Showing why @ Test(expected=...) in JUnit is an anti-pattern
/*
* Licensed under CC0
* http://creativecommons.org/publicdomain/zero/1.0/
*/
package se.kodafritt.snippets.antipatterns;
import static org.hamcrest.CoreMatchers.isA;
import org.junit.BeforeClass;
import org.junit.Rule;
@samuellb
samuellb / brainpool_named_curves.diff
Created December 14, 2010 15:49
Support for Brainpool NamedCurves in OpenJDK7
diff --git a/src/share/classes/sun/security/ec/NamedCurve.java b/src/share/classes/sun/security/ec/NamedCurve.java
--- a/src/share/classes/sun/security/ec/NamedCurve.java
+++ b/src/share/classes/sun/security/ec/NamedCurve.java
@@ -658,6 +658,133 @@
0xFF70);
*/
+ /* Brainpool curves (RFC 5639) */
+ add("brainpoolP160r1", "1.3.36.3.3.2.8.1.1.1", P,
+ "E95E4A5F737059DC60DFC7AD95B3D8139515620F",
@samuellb
samuellb / FriBID_remove_old_glade_format_files.diff
Created August 24, 2010 22:28
FriBID: Remove files in the old Glade format
diff --git a/client/Makefile b/client/Makefile
index 7cd931c..708ab8b 100644
--- a/client/Makefile
+++ b/client/Makefile
@@ -63,11 +63,11 @@ sign: $(OBJECTS)
clean:
rm -f $(OBJECTS) sign
-install: sign gtk/sign.xml
+install: sign gtk/sign.ui