bookmark_borderPHPUnit – Seeding inside your test methods

If you want to run seeders before each test you can use the artisan command in each of your test methods.

Running all seeders with:

$this->artisan('db:seed');

Running only one specific seeder:

$this->artisan('db:seed', ['--class' => 'RolesTableSeeder']);

bookmark_borderpwdquery v2 is out!

pwdquery v2

Today I am releasing the second version of my side-project pwdquery. I have spent many hours playing and manipulating the 90GB+ database, creating new scrapers, improving scripts and automating the whole process.

Remember, if you see any of your passwords in there, change immediately!

Check it out at https://pwdquery.xyz

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"
  }
]