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 class ScrollingString { | |
private String original; | |
private int width; | |
private int position; | |
private ChatColor color = ChatColor.RESET; | |
public ScrollingString(String original, int width) { | |
this.original = original; | |
//Allow for colors | |
this.width = width-2; |
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
pub fn bind_and_connect<A: Into<SocketAddr>>(addr: A, bind_ip: IpAddr) -> io::Result<Socket> { | |
let addr = addr.into(); | |
let host = match SockaddrIn::from_str(match bind_ip { | |
IpAddr::V4(ipv4) => { | |
format!("{}:{}", ipv4, addr.port()) | |
} | |
IpAddr::V6(_) => { |
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 | |
MACHINES=("safe01" "safe02" "safe03" "safe04" "safe-gpu" "cop01" "cop02" "cop03" "cop04") | |
SESSION_NAME="ClusterDcc" | |
tmux kill-session -t $SESSION_NAME | |
tmux new-session -ds $SESSION_NAME | |
USER="nneto" |