$ hcitool dev
Devices:
hci0 00:1A:7D:DA:71:13
$ sudo hcitool -i hci0 lescan
LE Scan ...
54:60:09:4A:6D:D9 (unknown)
^C
#!/bin/bash | |
# Source: http://www.cyberciti.biz/faq/iptables-connection-limits-howto/ | |
IPT=/sbin/iptables | |
# Max connection in seconds | |
SECONDS=100 | |
# Max connections per IP | |
BLOCKCOUNT=10 | |
# .... |
This script is modeled after tee
(see [man tee
][2]) and works on Linux, macOS, Cygwin, WSL/WSL2
It's like your normal copy and paste commands, but unified and able to sense when you want it to be chainable.
This project started as an answer to the StackOverflow question: [How can I copy the output of a command directly into my clipboard?][3]
use std::str; | |
fn main() { | |
// -- FROM: vec of chars -- | |
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
// to String | |
let string1: String = src1.iter().collect::<String>(); | |
// to str | |
let str1: &str = &src1.iter().collect::<String>(); | |
// to vec of byte |