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/fish | |
| # Update this to what you need | |
| set repos /home/$USER/repo1 /home/$USER/repo2 | |
| for repo in $repos | |
| cd $repo | |
| git fetch upstream |
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
| --- a/turbine/src/cluster_nodes.rs | |
| +++ b/turbine/src/cluster_nodes.rs | |
| @@ -444,6 +444,24 @@ fn get_nodes( | |
| Node { node, stake } | |
| }), | |
| ) | |
| + // Add a bunch of fake, unstaked nodes for testing. | |
| + .chain((0..5000).map(|i: u16| { | |
| + let addr_byte1 = (i / 256).min(255) as u8; | |
| + |
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
| echo "This script should be run as root" | |
| DELAY_MS=100 | |
| DELAY_DISTRIBUTION=50 | |
| LOSS_PERCENT=2 | |
| CLI="ip netns exec client" | |
| SRV="ip netns exec server" | |
| echo "Cleanup, ignore errors if this is first run" | |
| ip netns del client | |
| ip netns del server |