Bouncrは認証・認可の機能を備えたリバースプロキシです。
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
TARGET = example | |
OBJS = main.o | |
CC = gcc | |
CFLAGS = -c -g | |
LIBS = -lcurl -lnsl -lssl -lcrypto | |
$(TARGET): $(OBJS) |
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
import java.io.UncheckedIOException; | |
import java.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.time.Clock; | |
import java.util.Collections; | |
import java.util.Enumeration; | |
import java.util.concurrent.locks.ReentrantLock; | |
import java.util.function.Supplier; | |
public class Flake { |
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
{:duct.core/include ["dev"] | |
:back-channeling.path/prefix "/bc" | |
:back-channeling.path/asset-path "/bc/js" | |
:back-channeling.middleware/authentication | |
{:backends ^replace | |
[#ig/ref :back-channeling.auth.backend/bouncr]} | |
:back-channeling.middleware/authorization | |
{:backend #ig/ref :back-channeling.auth.backend/bouncr} |
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 sandbox.quartz; | |
import org.quartz.*; | |
import org.quartz.spi.MutableTrigger; | |
import java.text.ParseException; | |
import java.util.TimeZone; | |
public class CronAlternativeScheduleBuilder extends ScheduleBuilder<CronTrigger> { |
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
/** | |
* Convert case. | |
* | |
* In reference to https://github.com/qerub/camel-snake-kebab | |
* | |
* @author kawasima | |
*/ | |
public class CaseConverter { | |
public enum CharType { | |
NUMBER('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'), |
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
public interface CodeEnum { | |
String getLabel(); | |
String getCode(); | |
} |
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
import static org.hamcrest.CoreMatchers.*; | |
import static org.junit.Assert.*; | |
import org.junit.Test; | |
import java.io.IOException; | |
/** | |
* @author kawasima | |
*/ | |
public class FuriganizerTest { |
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
import com.sun.net.httpserver.HttpServer; | |
import java.net.URI; | |
import org.glassfish.jersey.jdkhttp.JdkHttpServerFactory; | |
import org.glassfish.jersey.server.ResourceConfig; | |
/** | |
* 簡易JAX-RSサーバ. | |
* | |
* @author kawasima | |
*/ |
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
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.io.RandomAccessFile; | |
import static java.lang.System.out; | |
import java.nio.channels.FileChannel; |