Duane Blake

Front end developer

Adding tasks to Todoist from the command line

I’ve been using Todoist for close to ten years. I find it a great tool to track my task and get ideas out of my head. There is a browser implementation and apps which works on pretty much works on every OS. Since I spend a lot of time in my code editors such as Vim and VSCode. Both which have community plugins for Todoist. However I wanted something which will work the same in all my editors which I use. The following code goes through how I wrote a simple bash script to add items to my Todoist account.

Adding tasks to todoist from the command line

How to set a user session time in Laravel

By default Laravel when logging a user into a website the session time is set to 120 minutes. They may be instances where you need this increased. As with most things in Laravel Its straight forward to do.

How to set a user session time in Laravel

Working with and Optimising images on the command line in Linux

Using the command line there are optimisation you can do with images rather than using a photo editing program to perform some basic image editing. The code below is what I tend to use more often. For all the code below its assuming Debian based system like Ubuntu.

Working with and Optimising images on Ubuntu

Moving from Sass to PostCss

Now that I tend to use TailwindCss for most of my projects I’ve noticed that I don’t really use Sass anymore. I was and still a huge fan of Sass/Scss and I still do use it on legacy projects. When I first started using Sass, I used to use loads of the features sass offers such as writing functions to build grids, convert px to rems and create colour palettes. But now CSS is getting increased features this isn’t the case much anymore.