Play mp3 with command line

This is how to play your favorite music with command line, no UI bullshit $ sudo apt-get install mpg321 $ cd ~/Music/ ~/Music$ mpg321 Pink Floyd – Comfortably Numb.mp3

Kubernetes cheatsheet

To list all deployments: kubectl get deployments –all-namespaces To delete deployment: kubectl delete -n NAMESPACE deployment DEPLOYMENT To get admin user token dashboard kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk ‘{print $1}’) Allow master to run pod kubectl taint nodes –all node-role.kubernetes.io/master- To join master node kubeadm … Read more

Get current public IP address from command line linux

These command lines show you how to get your current public IP address just from terminal, just follow one of these way to get yours: $ curl -s checkip.dyndns.org | sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ Or, the shorter one: $ curl ipinfo.io/ip

Create watermark and resize images with Python

After holiday, I have many pictures that needs to be uploaded and all of them should have watermark. Watermark in image is one thing that I could’ve done it with photoshop when I was in school. But I’m not gonna waste my time to do that one by one instead I’m doing with this simple … Read more

Increase sound level in Ubuntu with command line

Sometimes when you listen to music on youtube with very limited sound level after your volume level has reached maximum and you’re using piece of shit earphone. Just go with this command to extend the limitation sound level, it works on ubuntu 14.04: $ pactl — set-sink-volume 0 150% be careful with maximum sounds, can … Read more