Skip to main content

Posts

Showing posts with the label Hacks

How to debug Python code in VS Code with arguments passed from command line

 Debugging Python code in VS Code with arguments passed from the command line is a straightforward process. Here are the steps you can follow: 1. Open the Python file that you want to debug in VS Code. 2. Set breakpoints in the code where you want to pause and inspect variables. 3. Open the Debug panel in VS Code by clicking on the Debug icon in the Activity Bar or by pressing `Ctrl+Shift+D` on Windows or `Cmd+Shift+D` on Mac. 4. Click on the "create a launch.json file" button and select "Python" as the environment. 5. In the launch.json file that opens, modify the "args" attribute to include the command-line arguments you want to pass to the Python script. For example:    ```    "args": ["arg1", "arg2"]    ```    Replace "arg1" and "arg2" with the actual arguments you want to pass. NOTE: Add the below property in the launch.json file.     "purpose" : [ "debug-in-terminal" ] 6. Save the ...

Powercube multi socket adapter by allocacoc review

A very useful utility when you are traveling or at home where you have limited power socket outlets. Powercube multi-socket adapter has 4 number of 3 pin female socket ports & 2 female usb A charging sockets. This is a boon for travelers and gadget freaks that have a lot of devices that require to be charged. This is also useful when you have limited power sockets at home and you dont want to deal with the messy power strips or wired flex boxes ! Created By Madhukar Rupakumar https://techbytes-madhukar.com  https://krmadhukar.blogspot.com   Powercube adapter Amazon link - https://amzn.to/3Wax0ah   Usb A to C female converter from Wayona Amazon link - https://amzn.to/3Wax0ah My LinkTree -  https://linktr.ee/krmadhukar     Follow me on below Social media platforms: Youtube, Twitter, Instagram: krmadhukar  my FB page: https://www.facebook.com/https://www.facebook.com/MadhukarKRupakumar

Hack for knowing your forgotten wifi password on your Windows PC/laptop

If you want to find out the password of your wifi connection connected to the internet in your system, type the below command in the command prompt and check the value of the property "Key content" !! Voilaa... Your wifi password is now shown up on the response on the CLI on your windows PC/laptop screen :) Disclaimer: Use it to find out the forgotten password of your own internet connection. Do not use it to hack into somebody else's wifi connection :D C:\> netsh wlan show profile name=<wifi-name> key=clear Profile <wifi-name> on interface Wi-Fi: ======================================================================= Applied: All User Profile Profile information -------------------     Version                : 1     Type                   : Wireless LAN     Name                   : <wifi-name>...