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
#![feature(plugin)] | |
#![plugin(rocket_codegen)] | |
extern crate rocket; | |
extern crate ipnetwork; | |
use ipnetwork::{IpNetwork, IpNetworkError}; | |
use rocket::http::RawStr; | |
use rocket::request::FromParam; | |
use std::error::Error; |
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.util.function.Function; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
public class Demo { | |
/** | |
* An IO operation that results in a value of type T. |
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
function ssha () { | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: ssha <ansible-hostname> [ssh arguments]" >&2 | |
return 1 | |
fi | |
local inventory=/path/to/your/inventory # CHANGE THIS LINE | |
local ansible_name="$1" | |
shift |