Color schemes for your terminal
Color Scheme for Gnome Terminal and Pantheon Terminal – here is the github page
Color Scheme for Gnome Terminal and Pantheon Terminal – here is the github page
Viewing XML files can be daunting with tracking mentally where the tag starts and where it ends. So, I ended up with the following alias to help me view xml files
xmllint --format - | pygmentize -f 16m -O style=native -g
terminal.sexy is a nice webpage that allows you to select the colors for your terminal and then you can export it in various formats.
Main site : http://terminal.sexy
and for the source code: Github URL
With both wayland and X11 in mainstream, its pretty easy to forget if you are running in Wayland or in X11. To check this here are the commands:
loginctl list-sessions # The above command will show you all the sessions. Note the session number for your session loginctl show-session <session number> -p Type
I have been thinking of posting this for sometime now. This is very useful, when you are working on a different Linux box and want to upload a file to dropbox.
So, before you run this command, you need to create your auth token in Dropbox developer API page. Once that is done, need to change the 2 parameters in command below. Export your Access token and run the below command.
Continue readingHere is a good link to do this:
https://fedoramagazine.org/using-the-networkmanagers-dnsmasq-plugin/
Here is a script that can use tshark to split a large pcap to multiple small pcaps
inpcap="test.pcap"
max=$(tshark -r $inpcap -n -T fields -e frame.number|tail -1)
# This is the number of packets in each split pcap
c=1
# Save all new pcaps to out, if it does not exist, create it.
[[ ! -d out ]] && mkdir out
for i in $(seq 1 $max $c)
do
tshark -r $inpcap -n -c $c "frame.number==$i" -w out/$i.pcap
#Do other stuff, if required
read -p "Send the next packet? "
done
A very simple 3-4 line script that has saved my day so may times.
Continue reading