Start by downloading your Fedora, here we use the Workstation variant, but you can choose another at the download site:
Linux kernel coding style
Link: https://www.kernel.org/doc/html/latest/process/coding-style.html#
Use proper multi-line comments as per the Coding Style.
I hereby claim:
- I am eballetbo on github.
- I am eballetbo (https://keybase.io/eballetbo) on keybase.
- I have a public key ASAi-TQCvLDQabtZ6zTPFrdsO7DMgTiuOH7Uhi-pfcMY9go
To claim this, I am signing this object:
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
#!/usr/bin/env bash | |
# mount configfs | |
mount -t configfs none /sys/kernel/config | |
# load libcomposite module | |
modprobe libcomposite | |
# create a gadget | |
mkdir /sys/kernel/config/usb_gadget/g1 | |
# cd to its configfs node | |
cd /sys/kernel/config/usb_gadget/g1 |
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
#!/usr/bin/env bash | |
# mount configfs | |
mount -t configfs none /sys/kernel/config | |
# load libcomposite module | |
modprobe libcomposite | |
# create a gadget | |
mkdir /sys/kernel/config/usb_gadget/g1 | |
# cd to its configfs node | |
cd /sys/kernel/config/usb_gadget/g1 |
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
#!/usr/bin/env bash | |
# mount configfs | |
mount -t configfs none /sys/kernel/config | |
# load libcomposite module | |
modprobe libcomposite | |
# create a gadget | |
mkdir /sys/kernel/config/usb_gadget/g1 | |
# cd to its configfs node | |
cd /sys/kernel/config/usb_gadget/g1 |
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
#!/usr/bin/env bash | |
echo "**** Scanning 192.168.0.228/255.255.0.0 ****" | |
ip addr add 192.168.0.228/255.255.0.0 dev eth0 | |
nmap -T5 -sP --exclude 192.168.1.228 192.168.0-255.0-254 | |
ip addr del 192.168.0.228/255.255.0.0 dev eth0 | |
echo "**** Scanning 172.16.0.228/255.255.0.0 ****" | |
ip addr add 172.16.0.228/255.255.0.0 dev eth0 | |
nmap -T5 -sP --exclude 172.16.0.228 172.16.0-255.0-255 |