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
use crate::Topping::{Ham, Pepper, Pineapple}; | |
#[derive(Debug)] | |
enum Topping { | |
Peperoni, | |
Ham, | |
Pineapple, | |
Oregano, | |
Pepper, | |
} |
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
use rdkafka::config::ClientConfig; | |
use rdkafka::consumer::{Consumer, StreamConsumer, CommitMode}; | |
use rdkafka::message::{Message, BorrowedMessage}; | |
use futures::stream::StreamExt; | |
use tokio; | |
#[tokio::main] | |
async fn main() { | |
let consumer: StreamConsumer = ClientConfig::new() | |
.set("group.id", "test-group") |
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
[dependencies] | |
chrono = "0.4.38" | |
fern = "0.6.2" | |
log = "0.4.21" |
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
***************************************************************** | |
IDENTIFICATION DIVISION. | |
PROGRAM-ID. RW1. | |
AUTHOR. Kamil Wdowicz. | |
* | |
* Example on how to read from and write to files. | |
* | |
***************************************************************** | |
ENVIRONMENT DIVISION. | |
INPUT-OUTPUT SECTION. |
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
//RW1 JOB ,MSGLEVEL=(2,1) | |
//EXP EXPORT SYMLIST=* | |
//SETNAME SET MEM=RW1 | |
//***************************************************/ | |
//DELETE EXEC PGM=IKJEFT01 | |
//SYSTSPRT DD SYSOUT=* | |
//SYSTSIN DD * | |
DELETE (OUT) | |
/* | |
//***************************************************/ |
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
// generated by quake, do not modify | |
unbindall | |
bind TAB "+scores" | |
bind ENTER "+button2" | |
bind ESCAPE "togglemenu" | |
bind SPACE "+moveup" | |
bind + "sizeup" | |
bind - "sizedown" | |
bind / "weapnext" | |
bind 0 "weapon 10" |
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
mamut@li302-202:~$ ab -n 3000 -c 1000 http://btmagic.com:88/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking btmagic.com (be patient) | |
Completed 300 requests | |
Completed 600 requests | |
Completed 900 requests | |
Completed 1200 requests |
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
➜ ~ ab -n 3000 -c 1000 http://btmagic.com:88/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking btmagic.com (be patient) | |
apr_poll: The timeout specified has expired (70007) |
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
mamut@li302-202:~$ ab -n 3000 -c 1000 http://btmagic.com:88/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking btmagic.com (be patient) | |
Completed 300 requests | |
Completed 600 requests | |
Completed 900 requests | |
Completed 1200 requests |
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
## remove old | |
sed '/vuserbox/d' /etc/hosts > /tmp/hosts | |
cat /tmp/hosts > /etc/hosts | |
## add new | |
nmap -v -sT 192.168.1.50/24 -p 2222 | grep Discovered | awk '{print $NF"\tvuserbox"}' >> /etc/hosts | |
## flush cache | |
dscacheutil -flushcache |
NewerOlder