Skip to content

Instantly share code, notes, and snippets.

@datguy
datguy / git-large-blob
Last active June 26, 2019 12:18
find large objects in your git repository, listed by commit (also shows how long ago the commit happened)
#!/usr/bin/perl
# from http://stackoverflow.com/questions/298314/find-files-in-git-repo-over-x-megabytes-that-dont-exist-in-head
use 5.008;
use strict;
use Memoize;
sub usage { die "usage: git-large-blob <size[b|k|m]> [<git-log arguments ...>]\n" }
@ARGV or usage();
my ( $max_size, $unit ) = ( shift =~ /^(\d+)([bkm]?)\z/ ) ? ( $1, $2 ) : usage();
bb3ebda 2 days ago
1933743 app/lib/ant.jar
6701200 app/lib/com.ibm.icu_4.4.2.v20110823.jar
1396459 app/lib/org.eclipse.osgi_3.8.1.v20120830-144521.jar
1779105 build/javadoc/everything/index-all.html
2096940 build/shared/launch4j/bin/ld-macosx
1765572 build/shared/launch4j/bin/windres-macosx
4915943 core/library/jogl-all.jar
6701200 experimental/mode/com.ibm.icu_4.4.2.v20110823.jar
4684086 experimental/mode/org.eclipse.jdt.core_3.8.2.v20120814-155456.jar
5ca0c51 2 days ago
1933743 app/lib/ant.jar
6701200 app/lib/com.ibm.icu_4.4.2.v20110823.jar
1396459 app/lib/org.eclipse.osgi_3.8.1.v20120830-144521.jar
1779105 build/javadoc/everything/index-all.html
2096940 build/shared/launch4j/bin/ld-macosx
1765572 build/shared/launch4j/bin/windres-macosx
4915943 core/library/jogl-all.jar
6701200 experimental/mode/com.ibm.icu_4.4.2.v20110823.jar
4684086 experimental/mode/org.eclipse.jdt.core_3.8.2.v20120814-155456.jar
@datguy
datguy / mavenTestArgs.xml
Last active December 27, 2015 18:59
supply vm args to maven tests
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<argLine>
...
</argLine>
</configuration>
</plugin>
@datguy
datguy / PAppletTest.java
Last active August 29, 2015 14:13
PAppletTest
package processing.core;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class PAppletTest {
@Before

Keybase proof

I hereby claim:

  • I am datguy on github.
  • I am datguy (https://keybase.io/datguy) on keybase.
  • I have a public key ASDt_lqYE_j3nErX0lYrSx_n6HBVIZE4AQAo5k3UhQFDvwo

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"
xmlns="Shared" targetNamespace="Shared">
<xs:complexType name="sharedType">
<xs:sequence>
<xs:element name="sharedElement" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"
xmlns="main1" targetNamespace="main1"
xmlns:shared="Shared">
<xs:import namespace="Shared" schemaLocation="shared.xsd"/>
<xs:complexType name="type1">
<xs:sequence>
<xs:element name="element1" type="shared:sharedType" />
</xs:sequence>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"
xmlns="main2" targetNamespace="main2"
xmlns:shared="Shared">
<xs:import namespace="Shared" schemaLocation="shared.xsd"/>
<xs:complexType name="type2">
<xs:sequence>
<xs:element name="element2" type="shared:sharedType" />
</xs:sequence>