-
List differences between two sftp hosts using golang
Hi, Just as a intermediate post as i wanted to play a little bit with golang, let me show you what i managed to put together in some days. I created a virtual machine on which i installed docker and grabbed a sftp image. You can try first two from Docker Hub, it should work.…
-
How to change root password on Debian – after vacation
Morning, Since i had a vacation and completely forgot all my passwords for Debian VM i fixed it using this article. Very useful! https://pve.proxmox.com/wiki/Root_Password_Reset Cheers!
-
Ubuntu – change ulimit for kafka, do not ignore
Hi, Wanna share with you what managed to take me half a day to clarify. I just read in the following article https://docs.confluent.io/current/kafka/deployment.html#file-descriptors-and-mmap and learned that in order to optimize kafka, you will need to also change the maximum number of open files. It is nice, but our clusters are deployed on Ubuntu and the…
-
Python dictionary construction from process list
Hi, This is out of my expertise but i wanted to shared it anyways. One colleague wanted to help him with the creation of a pair key:value from one command that lists the processes, in python. With a little bit of testing i came to the following form: import os import subprocess from subprocess import…
-
Configure Jupyter Notebook on Raspberry PI 2 for remote access and scala kernel install
Hi, This is a continuation of the previous article regarding Jupyter Notebook (http://log-it.tech/2017/09/02/installing-jupyter-notebook-raspberry-pi-2/) Let’s start with my modification in order to have an remote connection to it. It first needs a password in the form of password hash. To generate this pass run python cli and execute this code from IPython.lib import passwd;passwd(“your_custom_password”). Once you…
-
Installing Jupyter Notebook on Raspberry PI 2
Morning, Just want to share you that i managed to install the Jupyter Notebook(http://jupyter.org) on a Raspberry PI 2 without any real problems. Beside a microSD card and a Raspberry you need to read this and that would be all. So, you will need a image of Raspbian from https://www.raspberrypi.org/downloads/raspbian/ (i selected the lite version…
-
Securing kafka-manager endpoints with iptables rules behind traefik
Hi, One extra addition to my traefik balancing article from http://log-it.tech/2017/08/19/puppet-implementation-traefik-load-balancer-kafka-manager/ is that even so now we have the balancing capability we still need to restrict access to unsecured endpoint. I thought all the code to be deployable on all of the nodes. If this is taken in consideration, our issue with the firewall rules…
-
List paths created by package install on Ubuntu
Hi, I was searching this morning to see what paths and files were created using package install with puppet and i found this: root@test:~# apt list –installed | grep goss WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts. goss/trusty,now 0.3.0-3 amd64 [installed] root@test:~# dpkg-query -L goss /. /usr…
-
Sysdig container isolation case debugged on kubernetes
Hi, I didn’t get to actual test anything related to this but i managed to find a very interesting article that might be lost if you are not a sysdig fan. You can find it at following link https://sysdig.com/blog/container-isolation-gone-wrong/ To put into perspective, this tool is used for some very interesting debugging situation, i have played…
-
Memory check by process in Linux
Hi, I wanted to post this since it might be useful in some situations. On a Linux machine it seems that one way to check the memory usage by top processes is with ps aux –sort -rss (This means that it’s order by Resistent Set Size) Once executed it will return an output similar to this:…