Posts

  • Resources

    Resources

    This will be a list of useful articles and resources, I’ll continuously populate. The idea for this is to contain stuff I don’t need to remember, or bookmark across the computers I use. This will be mainly for my own usage, but hey, if you landed somehow here – feel free to take use these,…

  • Linux debugging cheat sheet

    Linux debugging cheat sheet

    I gotta admit – I “stole” this from nixCraft. But it’s so brilliant, I just need to share/keep it.

  • Casting

    Casting

    As a not so experienced PHP dev – there are plenty of things I learn on daily basis, but one thing I should really remember using is casting.Basically casting i changing the data type of a variable from one to another. Yes, I know – this is PHP, the language where an array can become…

  • Vitosha 100, 06.2019

    Vitosha 100, 06.2019

    So… last Saturday, for the first time in my life I participated in a competition. It was a mountain biking cross country competition – Vitosha 100 tour – a tour around the Vitosha mountain with length around 98 kilometers and roughly 2000 meters climb. I can’t say I was in perfect shape, I was mostly…

  • BASH Red prompt

    BASH Red prompt

    2022 edit – this needs revisiting – do not repeat! The code bellow breaks the prompt!OK, so this is mainly for personal use. When logging via SSH to a certain server it’s always a good idea to have custom prompt colours. I personally set staging environment to be yellow and production – red.So in order…

  • MySQL Referential constraints actions

    MySQL Referential constraints actions

    When you have a huge database – you eventually end up with tables with referal constraints When you create one there are several actions that can be set: • CASCADE:  Delete or update the row from the parent table, and automatically delete or update the matching rows in the child table. Both ON DELETE CASCADE and…

  • Bookmark for switching URL

    Bookmark for switching URL

    When developing multiple similar sites, I often stumble upon the case, when I want to open a specific link on different domain. Sometimes the same site/URL on local, staging, testing, production environments. Creating specific bookmarks to open the specific links is a bit of an overkill. Typing the same URL on the different environments is…

  • Insert entry if it doesn’t exist in MySQL

    Insert entry if it doesn’t exist in MySQL

    Yes, that’s probably a common issue – you want to make insert in MySQL only if a duplicate does not exist. I faced this issue today, and since it took me some time to figure out a way to do it (to be honest – a colleague gave me the query) – I’m sharing it…

  • API – what is it?

    API – what is it?

    What is an API. Quite often I ask myself the same, and sadly – can’t give a definitive answer. Good thing the internet is a large place, and it’s full of information. The following two videos are quite helpful in that regard:The following video gives brief idea and introduction: This one goes into a bit…

  • Change the name of the interface in Ubuntu

    Change the name of the interface in Ubuntu

    I really hate the way Ubuntu names the interfaces. To someone who only clicks – it might not matter, but for someone like me, who lives by the ideal “Real men don’t click” – it’s utter garbage. So I found the solution here. Edit your /etc/default/grub changing the line from to to and, finally: and…

  • Connect to your android phone and copy files under Linux

    Connect to your android phone and copy files under Linux

    OK, so MTP is a protocol, that’s implemented in Linux just as good as my Tennis skills. I’ve never played tennis. So usually it’s a tedious job to find some MTP build that will actually let you connect to your phone, usually by manually mounting it with some rag-tag tool.The bellow method is a bit…

  • Docker Cheat Sheet

    Docker Cheat Sheet

    Since I’ll start to work with docker – I’ll need a point of reference. I’ll continue to update this “article” as I continue to work with docker. Update 2022 – I haven’t used docker for nearly three years – if you land here – take everything with a grain of salt!