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/env perl | |
# | |
# Usage: ssh-deploy-key -h (--hostsfile) PATH_TO_HOSTS_FILE | |
# -p (--pubkeyfile) PATH_TO_PUBKEY_FILE | |
# [ -u (--user) USER ] | |
# | |
# Expects --hostsfile to contain 1 host per line | |
# Assumes current user if --user is not given | |
# |
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
#![allow(dead_code)] | |
use std::collections::{HashMap, HashSet}; | |
use std::mem; | |
fn main() { | |
println!("Hello, world!"); | |
// test_vars(); | |
// test_operators(); | |
// test_constants(); |
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 main | |
import ( | |
"errors" | |
"log" | |
) | |
// rollback function | |
func rollback(rollbackCtrl *bool, rollbackFunc func()) { | |
if *rollbackCtrl { |
OlderNewer