twilweb

Entries

  • Set Flameshot shortcut on ubuntu

    Open ubuntu Settings-> Keyboard shortcuts Click on + at the bottom to add custom shortcut and use command ‘flameshot ...

  • List all running ec2 instances in a table
  • simple API load testing using k6

    A very lightweight and powerful tool to loadtest any http endpoints is k6. It allows you to run basic javascripts in ...

  • Useful activemq cli

    Retry all messages from a Dead letter queue : https://stackoverflow.com/questions/60155678/activemq-how-to-resend-ret...

  • Find top 10 large files in unix

    If you want to find and print the top 10 largest files names (not directories) in a particular directory and its sub ...

  • CLI and REST API for activemq

    ActiveMQ provides an easy to use api that can be used to produce or consume messages via commandline. See ActiveMQ si...

  • SimpleDateFormatter is not thread-safe

    Having been bitten by this bug multiple times, i am posting a small program that illustrates Thread Safety issues in ...

  • Spooling from hive and uncompress

    You can spool from hive similar to sqlplus using : insert overwrite local directory '/some/local/folder' row format d...

  • dos2unix using perl

    The below command can be used for quick conversion of windows saved files to unix perl -pi -e 's/\r\n/\n/g' input

  • Java Generics

    This week I learnt Generics can be quite useful to retrofit a combination of interfaces . e.g suppose your method wan...