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
use tokio::process::Command; | |
use tokio::io::{self, AsyncBufReadExt}; | |
#[tokio::main] | |
async fn main() -> io::Result<()> { | |
let shell_command = "sleep 2 && echo \"how\" && sleep 10 && echo \"yes\""; | |
let mut child = Command::new("sh") | |
.arg("-c") | |
.arg(shell_command) |
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 ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"encoding/base64" | |
"encoding/json" | |
"flag" | |
"fmt" |
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
def nth_most_rate_signature(list,n): | |
# save all enteries to a map | |
# key is the signature | |
# value is the number of times it appears | |
map = {} | |
for i in list: | |
if i in map: | |
map[i] += 1 | |
else: | |
map[i] = 1 |