This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.foo.manifestutil; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.util.jar.Manifest; | |
import org.apache.commons.io.IOUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<!-- | |
`mvn deploy` to github | |
problems: | |
v - slow/too many small commits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.foo.wrapexpreserve; | |
import java.io.IOException; | |
import java.io.InterruptedIOException; | |
import java.lang.reflect.Constructor; | |
import java.net.SocketException; | |
import java.net.SocketTimeoutException; | |
import java.nio.channels.ClosedByInterruptException; | |
import org.foo.wrapinterruptible.IndirectSorter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.foo.wrapinterruptible; | |
import static org.foo.wrapinterruptible.InterruptibleInputStream.StreamOp.*; | |
import java.io.FilterInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InterruptedIOException; | |
import java.net.SocketException; | |
import java.net.SocketTimeoutException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE /* for REG_RIP */ | |
#include <signal.h> | |
#include <setjmp.h> | |
#include <stdio.h> | |
#ifdef _MSC_VER | |
/* Visual C */ | |
#include <excpt.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -o pipefail | |
partdev=${1:?} | |
partdev=$(readlink -f -- "$partdev") | |
echo "Canonical partition: ${partdev}" | |
if false; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for build output parser | |
CC = gcc | |
MYOBJS = single.o multi.o | |
all: $(MYOBJS) | |
clean: | |
@rm -f $(MYOBJS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use 5.008; | |
use Getopt::Long; | |
use URI; | |
use HTML::TreeBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="EnterpriseApplication1" default="default" basedir="." xmlns:ear="http://www.netbeans.org/ns/j2ee-earproject/2"> | |
<description>Builds, tests, and runs the project EnterpriseApplication1.</description> | |
<import file="nbproject/build-impl.xml"/> | |
<!-- This fixes missing ear file before deploy outside of Netbeans --> | |
<target name="-init-deploy-ant" depends="dist,EnterpriseApplication1-impl.-init-deploy-ant" unless="netbeans.home"> | |
</target> | |
<!-- The hook to workaround some problems during deployment --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: ./makelog.sh -m make.log /usr/bin/make all | |
startdate=$(date +"%F %T.%3N%z") | |
makemode= | |
servermode= | |
target= | |
prereqs=() |