bookmark_borderMy VIM configuation

Hey guys, just wanted to share my current VIM settings.


vim configuration

Installation

Copy the vimrc file to ~/.vimrc
Install Vundle from https://github.com/VundleVim/Vundle.vim with:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Run vim +PluginInstall +qall

Enjoy 😉
https://github.com/dansku/vimrc

bookmark_borderBreachCompilation Checker

It is impressive that even now there are so many big companies with poop password storage solutions! Back in 2013 Adobe had a massive password leak, followed by Google in 2016 among many others.

Not so long ago, a compilation of 1.4 billion emails and passwords have been leaked online via torrent! When I checked that this information wasn’t available on the famous haveibeenpwned.com I decided to quickly build one where people can check if their emails have been compromised. The idea is simple, just type your email and it will check if your password is on the list. The password will be displayed with some *** so that it’s not publically available (but be careful that the leaked file doesn’t hide them!).

pwdquery website

You can check it out at https://pwdquery.xyz.

bookmark_borderWacken 2018 Band Parser

Today I decided to write a quick script to parse the bands who are confirmed for the Wacken Open Air 2018 festival. I am still not sure if I will do much else with it, but thinking it could be interesting to improve the code to send an email every time a new band is added, what do you think?

The repo for the project -> https://github.com/dansku/wacken_parser

The response is a JSON file like:

[  
  {  
    "bandAddedOn":"06.08.2017",
    "bandUrl":"http://www.wacken.com/en/...",
    "bandName":"Amorphis",
    "bandImage":"http://www.wacken.com/....png"
  }
]

bookmark_borderA Better Serial Monitor

Today I would like to talk about a very interesting piece of software that I have been using in the past few weeks, called Serial Port Monitor (version 7.0) by Eltima Software.

This software is perfect for when you are developing an application that has a massive amount of information going through the Serial Port. I am currently using it to analyze diagnostic data from one project. Is is great that you can easily save messages for a later use in its own .spm file format.


serial port monitor


serial port monitor

On the image bellow, you can check the windows that I am currently using: “Terminal View”, showing exactly what is coming from the Serial Port. “Dump View” that shows timestamp, the hex data and the message, and the “Table View”, showing the captured data from the developer’s point of view: it presents the table consisting of the recorded IRPs. Each row represents one IRP and each column represents one single part of IRP. It is interesting to point that the Serial Port Monitor doesn’t block the serial port while in use, meaning that another software can be “blocking” the port and you can still analyze all the data.


serial port monitor

In case you wanna know more about it, check the Wiki!

This is a great piece of software, and I am really impressed by the quality of the products from Eltima. I will probably do some more review in the future!

If you are an embedded systems engineer, you should check it out!!!

bookmark_borderAutomating screenshot sharing on Windows

One thing that I really liked about mac was how easy it was to generate a screenshot from my screen and share with people. Now that I am pretty much a full-time windows user (besides all the time I spend on a Linux terminal), I needed to find an easy and fast way to share screenshots. And that is where Greenshot comes in handy!

The plan:
A keyboard shortcut to select a region of my screen, automatically generate the image, upload it to my server on a specific FTP folder (can also be done with rsync) and copy the shareable URL to the clipboard.

Step 1: Download Greenshot at http://getgreenshot.org/downloads/ and install it.

Step 2: Download and install NCFTP from http://www.ncftp.com/download/ (NcFTP Client 3.2.6 for Microsoft Windows). After installing it, the ncftp executable files are going to reside on C:\Windows

Step 3: Create a .bat file with the automating code below (changing yourdomain, ftp user and password).

Step 4: Configure greenshot:

Change the path where you save your screenshots on your computer, but the important thing is to change the “Filename pattern” to:

${YYYY}${MM}${DD}_${hh}${mm}${ss}

and uncheck “Copy file path to clipboard every time an image is saved“, this part is important!

Go to Plugins tab, click in “External command Plugin” and “Configure“.

Create a name for your automation. On command, link to the .bat file you created and make sure the “Argument” is

"{0}"

Done, now whenever you take a screenshot, it will automatically upload to your server and copy the URL to the clipboard automatically, making it super fast and easy to share anything on your screen 🙂

bookmark_borderQuickly sharing 360 pictures

Last black friday I got a LG 360 Cam, a good cost-quality 360 camera. The only problem I am having with the camera is that there isn’t a good solution to where I can share the pictures (if you have a good solution, please share!). Google has released a VrView script that makes it much easier to embed 360 pictures on websites, but you still need to edit some html code.

I decided to make a super simple website that renders pictures uploaded to imgur (saving some space and bandwidth on my server) that anyone can use to easily share 360 pictures with family and friends.

After understanding how the Googles VrVire works, I could transform this:

Into this:

To share the 360 pictures, you need to upload them to www.imgur.com and get the picture-id. For example, the picture above is located at https://imgur.com/up6aRXr where up6aRXr is the picture-id. With the id in hands, you can share this url:

https://www.danielandrade.net/360/PHOTO-ID

for the past example:

https://www.danielandrade.net/360/up6aRXr

The website should open with the image showing in full-page, and same URL you can share on Whatsapp or anywhere else (it is mobile friendly!)

Maybe in a near future I will improve it, making it easier to share from within the phone and also creating galleries, what do you think? Ideas?

Cheers! 🙂