How to get Wunderlist list of all tasks in different lists

Wunderlist has become my default task management tool.

I was looking for a way to see on a single page the list of all tasks, in the all the lists.

After lot of searching, I found a way inside Mac application of Wunderlist.

If you want to see list of all tasks on Mac (might be in other OS also)

  • Click Open preferences
  • Click on Smart List
  • Check the option next to ALL and make it Auto
  • Save and then you should see list of all tasks inside the menu option All

How to prettify JSON in VS Code Editor

I have been using VS code editor from 1 month now. I am big fan of it and now it has become the default editor for me.

Here is a tip if you want to prettify son in VS code.

Download the extension Prettify JSON


Install and Reload the editor

From the Command Palette, type Prettify JSON and hit enter

If you have JSON in your editor, it would shown now in pretty format.

Enjoy using VS Code

How to install libevents on Linux

Dowload the library

  
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar xzf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=/opt/libevent # Change path as required
make
make install

How to get internet access inside Jupyter notebook

Create a file

vi ~/.ipython/profile_default/startup/00-startup.py

Add the following inside it
(Change proxy details as per your own environment)

import sys,os,os.path
os.environ['HTTP_PROXY']="http://127.0.0.1:3128"
os.environ['http_proxy']="http://127.0.0.1:3128"
os.environ['HTTPS_PROXY']="http://127.0.0.1:3128"
os.environ['https_proxy']="http://127.0.0.1:3128"

# Test

Inside the notebook cell

import requests
requests.get("http://google.com")

Atom editor proxy

To use Atom editor behind proxy , use the below. Restart Atom if needed

apm config set strict-ssl false
apm config set https-proxy http://127.0.0.1:3128

Change proxy as per your requirements

Use Kafka command line with Kerberos

kdestroy
kinit -k -t myprincipal.keytab myprincipal/HOST.com

export KAFKA_CLIENT_KERBEROS_PARAMS="-Djava.security.auth.login.config=/etc/kafka/conf/kafka_client_jaas.conf"

/usr/hdp/current/kafka-broker/bin/kafka-console-consumer.sh \
--zookeeper zookeeper.com:2181 \
--topic topicname \
--from-beginning \
--security-protocol SASL_PLAINTEXT

Login to Container in Kubernetes

Step 0

Get all pods

kubectl get po --all-namespaces

Find the pod name in which your container is running

Step 1

Get the container name from running pod

kubectl describe po pod_name --namespace my_namespace


Example output

Name: pod_name
Namespace: my_namespace
Node: docker-host-03/10.1.3.115
Start Time: Wed, 23 Nov 2016 16:57:15 +1100
Labels: name=my_container_name,pod-template-hash=2802333548
Status: Running
IP: 10.20.71.4


Note the label with value name

Step 2

Login to container

Example

kubectl exec -it pod_name --namespace my_namespace -c my_container_name bash