Add files to dropbox with single curl command

2019-07-08 1 min read Bash

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 reading

Split pcap to multiple files based on number of packets

2019-06-03 1 min read Bash Learning Linux

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

libvirt- Create virtual machine with text console only interface

2019-05-27 1 min read Linux Vurtualization

virt-install is an amazing tool to create VMs. If you have created a config file (Kickstart file – ks.cfg), then its only one line un-attended install. If you are using this on remote host with ssh and unluckily cannot export display – what do you do. Do a non-graphical install. There are only minor changes in the command to tell the installer that there is no graphics available and it is amazing, is it not 🙂

Continue reading

IT Trends That Will Boost Global Economic Growth

2019-05-06 2 min read Uncategorized

IT has been known to have a great impact on the global economy and has been linked to marketplace transformation, better standards of living, and international trade, among other things.

<p dir="ltr">
  Here are some <a href="https://techjury.net/blog/information-technology-trends/">IT trends</a> that are expected to further boost the economy in the near future.
</p>

<p dir="ltr">
  IT Trends That Will Boost Economic Growth
</p>

<p dir="ltr">
  Artificial Intelligence
</p>

<p dir="ltr">
  This is the use of robots and artificial intelligence to carry out task previously done by humans. AI tech and its related technologies will help boost economic growth by creating many new jobs, increase production efficiency, reduce costs, and improve the quality of products.
</p>

<p dir="ltr">
  5G
</p>

<p dir="ltr">
  <a href="https://www.techradar.com/news/what-is-5g-everything-you-need-to-know">5G</a> is the next generation of mobile wireless network technology. It is believed that 5G will improve customer experiences and business utility via effective connectivity and faster data transmission.
</p>

<p dir="ltr">
  5G stands as a change from previous generations of mobile technology. It enables lower latency, thereby reducing the time signals need to travel through the network. This makes it possible for it to support a wider range of applications, robotics, and the Internet-of-Things (IoT).
</p>

<p dir="ltr">
  Blockchain Technology
</p>

<p dir="ltr">
  The use of blockchain technology has grown steadily over the years. The healthcare sector is the major user, closely followed by financial institutions. Blockchain technology has a lot of untapped potentials, as it helps to improve transparency, reduce transaction costs, reduce frauds, increase overall operating efficiency, etc.
</p>

<p dir="ltr">
  Three-Dimensional (3D) Printing
</p>

<p dir="ltr">
  <a href="https://3dprinting.com/what-is-3d-printing/">3D printing</a> is rapidly changing the way we live and conduct businesses. 3D technology is already being used in several industries for a wide range of purposes. It will also be of great use in the healthcare sector, manufacturing industries, and so on.
</p>

<p dir="ltr">
  To learn more about these and other IT trends, check out the infographic <a href="http://blog.amit-agarwal.co.in/2019/04/15/how-much-money-flows-through-it/">here</a>.
</p>
Older posts Newer posts