It is really easy. The gist of it is adding a view that will serve the file and some cache to not have to send it every time and that is pretty much it.
JQ has a lot of features. Given a JSON, it is possible to select elements from a list from a JSON using the
select() function. Example:
I created an internal redirect app to manage redirects inside the website so I could handle them in the admin/database, However, I soon discovered that sending a redirect response pointing to some
mailto:<mail address> did not work!
When a new instance is created, if there is any script running as the instance starts the output/logs of the running commands will go on
I have been using tmux for a couple of years or so at this point daily. And today I learnt about a very cool option called
syncronize-panes. What this will do is send whatever you type in one pane to be sent to the other pane. Why is this useful? Well, in the video I saw this used was used to compare the execution of a script running with two different python versions. But other than that, I have no idea. I will have to think about this and see how I can take advantage of this.
Recently, I've had a surge of ideas, silly ideas that is, for telegram bots, and I ended up streamlining the process of creating them and deploying them to Heroku within a few minutes. In this post, I will detail my process and show how can a telegram bot be quickly developed and deployed.
This website has been under constant changes essentially since I first created it. I used it as a playground to learn different aspects of web development and web design. First, it was a simple flask application developed in flask and deployed in an rpi0 by pulling the git repo every time I wanted to do changes and using linux services to run the web server. Later on, I containerised it and deployed with docker. Then migrated it to Django. More recently I started using tailwindcss to manage CSS instead of rolling my own. This really was a gamechanger and offered a lot more flexibility in order to write new pages for this website.
For a while I have been wanting to have a blog to be able to share things I learn during my webdev journey. Creating a website and deploying it was one of the first steps in that direction back in 2019, before I joined Red Points. It was a very simple (well, still is) flask website with jinja2 templates and some data passed for the urls and so on. After I learned Django at Shalion, I decided to move from Flask to Django to have more capabilities moving forward and since I really like Django it was a perfect way to be able to have a small project to test packages and so on.