http_04 0.1.0
Yoshua Wuyts <[email protected]>
USAGE:
http_04 [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
-P, --pretty Enable pretty printing.
This file contains hidden or 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
Roots for record 0 (stored at leaf 0): [ 0 ] | |
0: 0 | |
Roots for record 1 (stored at leaf 2): [ 1 ] | |
0: 0─┐ | |
1 | |
1: 2─┘ | |
Roots for record 2 (stored at leaf 4): [ 1, 4 ] | |
0: 0─┐ |
This file contains hidden or 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/sh | |
COMMIT_MSG_FILE=$1 # The git commit file. | |
COMMIT_SOURCE=$2 # The current commit message. | |
# Add "Signed-off-by: <user> <email>" to every commit message. | |
SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') | |
git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" | |
if test -z "$COMMIT_SOURCE"; then | |
/usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" |
This file contains hidden or 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/env ruby | |
require 'optparse' | |
require 'octokit' | |
options = {} | |
OptionParser.new do |opt| | |
opt.on('-s', '--secret SECRET', 'GitHub access token') { |o| options[:secret] = o } | |
opt.on('-r', '--repo-slug REPO_SLUG', 'Repo slug. i.e.: apple/swift') { |o| options[:repo_slug] = o } | |
opt.on('-c', '--changelog-file CHANGELOG_FILE', 'Changelog path') { |o| options[:changelog_file] = o } |
This file contains hidden or 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
use clap_port_flag::Port; | |
use futures::prelude::*; | |
use hyper::{Body, Response, Server, service::service_fn_ok}; | |
use structopt::{StructOpt, structopt}; | |
#[derive(Debug, StructOpt)] | |
struct Cli { | |
#[structopt(flatten)] | |
port: Port, | |
} |
This file contains hidden or 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
#![cfg_attr(feature = "nightly", deny(missing_docs))] | |
#![cfg_attr(feature = "nightly", feature(external_doc))] | |
#![cfg_attr(feature = "nightly", doc(include = "../README.md"))] | |
#![cfg_attr(test, deny(warnings))] | |
#![cfg_attr(test, feature(plugin))] | |
#![cfg_attr(test, plugin(clippy))] | |
#[macro_use] | |
extern crate structopt; | |
extern crate actix_web; |
This file contains hidden or 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
#[macro_use] | |
extern crate quickcheck; | |
extern crate memory_pager; | |
use self::Operation; | |
use memory_pager::Pager; | |
use quickcheck::{Arbitrary, Gen}; | |
#[derive(Clone, Debug)] | |
enum Operation { |