Hello developer. I know that it becomes a nightmare when front developer have issues with it. The async requests fails to fetch data from Back-end and a red message in console “…cors… cross-origin..”. It’s harder to fix this issue when we don’t understand how navigator works when we try to fetch data from a REST […]
What’s new with Deno 1.14
I’m personally interesting of the evolution of Deno. Specially, after the announcement in JSConf 2018 by Ryan Dahl “10 thinks I regret About Node.js”, I figure it out that node js will die in five next years. As a fullstack web developer, I tried to create APIs using Deno. But, I was stuck because the […]
How to format strings with Python 3
You want to format strings with Python 3? Do you know that’s the most task that we need? like printing text with variables, formatting string uri for database connection and to return messages and errors. With Python 3, f-strings become the great tool to make more readable and faster codes. But first, lets talk about […]
Files in S3 AWS Python Lambda, how to handle them?
Do you know that Lambdas are made to process files? So, reading and writing, compressing and extracting data from s3 Bucket are the main uses. So, handling files with python lambda is really easy and helpful to handle files in s3
Linux Bash cheat sheets
Writing a Bash script is very hard, I usually write some to automate things, to verify files, directories and run scripts like Ansible or kubectl. As a devops, you need sometimes to compare env variables, find and replace text in different files.. So, I found this cheat in github, it’s helpful. I you are looking […]
Helpful Linux commands
As a sys admin, I usually use commands that help process logs, config files and datas in various reasons. In my today’s post I will introduce to you some of these Linux commands that will help you manage logs, but, let’s first introduce my must to know command that let you understand all linux commands. […]
Adding Emojis to your Python script
If you are writing a python script, and want to add some emoji to add prosperity and happiness 🥰 to the teams when running this import script, you may be shocked by the error message that can break your heart 😞💔 No worry, you can add this simple line in the top of your script, […]
How to hash a file in a bucket S3 using AWS Lambda
Calculating the file hash of an uploaded file in an S3 bucket, it’s a big deal. Especially, when it passes through an API Gateway, this will encode the file to base64. We can get the ETag generated by AWS to check file integrity, but this is not a secure solution, because AWS may change hashing […]
Linux Files Permissions
What is File Permission? Working on file permission is weird when you start using Linux as an operation system. Imagining have a project folder and you want to change permission to be able to execute the run.sh script 🥲 First, when you run ls -al on your project folder 📂, you should see something like […]
Pro Git commands you should know
Git Cherry-Pick 🍒 Imagine working on a branch and a coworker fix a bug, as usual, you have to wait to merge in develop branch the you should rebase to get that fix in your branch. But, when you rebase, you’ll have all the commits you don’t need.All you need is the commit hash from […]