skip to main
|
skip to sidebar
Bhanage.com
Gautam Bhanage's Personal Website.
Pages
Bio
Blog
Service
Tools
Publications
Patents
Bonjour & Welcome
Welcome to Dr. Gautam Bhanage's personal website.
Connect with me:
Bio
Labels
WiFi
kernel
embedded linux
wireless
802.11
802.11ac
WLAN
802.11ax
comparison
design
L1
cellular
networks
physical layer
802.11n
algorithms
architecture
cheatsheet
circuits
datastructures
Total Pageviews
Blog Archive
▼
2026
(1)
▼
July
(1)
Bayesian broadcast newsletter, E03
►
2025
(2)
►
December
(1)
►
February
(1)
►
2024
(1)
►
October
(1)
►
2023
(11)
►
December
(1)
►
April
(1)
►
March
(1)
►
February
(3)
►
January
(5)
►
2022
(1)
►
September
(1)
►
2021
(16)
►
November
(2)
►
June
(1)
►
May
(8)
►
April
(5)
►
2020
(16)
►
November
(3)
►
July
(1)
►
June
(4)
►
May
(2)
►
April
(2)
►
February
(1)
►
January
(3)
►
2019
(20)
►
October
(9)
►
September
(2)
►
August
(3)
►
June
(4)
►
May
(1)
►
April
(1)
►
2018
(2)
►
September
(1)
►
February
(1)
►
2017
(16)
►
December
(1)
►
July
(1)
►
June
(1)
►
May
(5)
►
April
(1)
►
March
(1)
►
February
(3)
►
January
(3)
►
2016
(3)
►
March
(2)
►
February
(1)
►
2015
(8)
►
December
(2)
►
November
(6)
Showing posts with label
script
.
Show all posts
Showing posts with label
script
.
Show all posts
Tuesday, June 18, 2019
Linux: Compare if two files are the same
Quick script I wrote in my .bashrc to check if two files are the same:
#md5sum
function md5comp()
{
a=$(md5sum $1 | awk '{print $1}')
b=$(md5sum $2 | awk '{print $1}')
echo "Comparing $1 and $2"
[ "$a" = "$b" ] && echo "Equal" || echo "Not Equal"
}
Read more »
Monday, June 17, 2019
Linux: How to tar only selected folders and files
Step 1: Select the files and prepare a list.
I do this with a simple function in my .bashrc script:
$> cat >> ~/.bashrc
99 function cscopesetup()
100 {
101 rm cscope.files;
102
103 echo "Populating filenames...";
104 find $SRC/folder1/ -iname "*.c" -print >> cscope.files #folder1
105 find $SRC/folder9/ -iname "*.h" -print >> cscope.files #folder9
106 echo "Driver done"
107 }
Read more »
Older Posts
Home
Readers
Popular Posts
How to use IS_ERR and PTR_ERR? What do they mean?
From the kernel definition there are three macros: IS_ERR - used to check, Returns non-0 value if the ptr is an error. Otherwise 0 if it’...
Difference between POE-PD and POE-PSE, POE vs POE+
POE stands for power over ethernet A POE system consists of two components - a POE-PSE (Power sourcing equipment) the device which provides ...
Perforce: Protected namespace access denied
I ran into this error when I was creating a new clientspec and tried to checkout a new tree with this clientspec. I was using p4 sync ... ...
Linux: Kernel crash debugging: BUG: scheduling while atomic
Why do you see that print "Scheduling while atomic" indicates that you've tried to sleep somewhere that you shouldn't - l...
WiFi: Comparison of WiFi Direct vs WiFi Aware vs BLE vs Adhoc mode (802.11)
Summary WiFi Aware - service discovery that helps setup WiFi Direct links. BLE - service discovery and P2P connection. WiFi Direct - P2P...
Linux: Nagle's Algorithm and How to Disable it
Nagle's algorithm is a TCP optimization in the kernel stack that waits to aggregate small chunks of bytes before sending packets on a T...
WiFi: AMSDU vs AMPDU: A Brief Tutorial on WiFi Aggregation Support
WiFi MAC architecture supports aggregation at two layers. The MAC service data units (MSDUs) can be aggregated to form AMSDUs. Each ...
WiFi: PP-AMSDU versus SPP-AMSDU a brief comparison
Before we jump into the different type of AMSDUs supported, let us do a quick recap of where AMSDUs fit in with the aggregation hierarchy. H...
p4 shelve equivalent in Git with an example
The equivalent of p4 shelve on GIT is stashing. Say I have modified the file on my repository and I see the following: techmuser@gw2:...
Linux: Comparison of netlink vs ioctl mechnaisms for configuration control in kernel space
Why bother? If you are writing a new kernel module or adding configurability to an existing one, typically you need some means by which you...