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
// compile with g++ icu-detect.cpp -I /usr/local/include -L /usr/local/lib -licuuc -licudata -licui18n | |
#include <cstdio> | |
#include <string> | |
#include <cassert> | |
#include "unicode/ucsdet.h" | |
#include "unicode/uclean.h" | |
int main(int argc, char **argv) | |
{ | |
using namespace std; |
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 | |
# | |
# Convert git log into changelog in Debian format | |
# | |
# Tags in format 1.2.3-4 become version entries. Log entries between them | |
# become changelog entries. Merge commits are not excluded, so you probably | |
# have to clean up the result manually. | |
RE_VERSION='^v\?[0-9]\+\([.-][0-9]\+\)*' | |
# Assume the name of the current directory is the package name |
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 -eu | |
# Listen address for all docker.io/registry instances | |
listen_address=0.0.0.0 | |
# Listen port for the first container | |
# all subsequent ports for containers will be incremented by one | |
listen_port_first=5000 | |
insecure=true |