muqube
  • About
  • Articles
Nov 26, 2018

Console output from AWS instance in CLI

AWS CLI can be used to retrieve the console output from an EC2 instance. This can be of great help in debugging and troubleshooting.

aws ec2 get-console-output --instance-id <my-instance-id>
Dec 24, 2015

Don't sudo pip install in virtual environments

Deploying python projects in virutal environemnts is a fairly standard practice. Such a deployment process could include a step to install all required python modules from a requirement file like so:

(your_virtual_env)> pip install -r requirements.txt

Does it seem a bit odd that we didn't ...

Oct 6, 2014

Debugging RE

One of Python's most useful feature is its Regular Expression support. However, it is easy to get a regular expression wrong and if you do, debugging it can be a painful as well. Fortunately, Python allows us to set a DEBUG flag during compilation of a regular expression.

import re
pat = re...

debugging (3)
  • JavaScript
  • Python

Copyright © 2015 - 2018 Raiyan Kamal, All Rights Reserved.