Posts

Azure - APP Services VS Container Instance

Container Instance APP Services P0v3 1 Core 4GB / 250GB internal stg   1 Core 4GB / 250GB internal stg   3 instances per 730 Hours 3 instances per 730 Hours 142 177         Container Instance Good Cheap simple BAD Can’t change after deploy Variables ENV Network Size Redundances CPU / RAM     APP Services   Good Changes after deploy Scales Up/Dow Redundant Possible to HA. BAD Price       Conclusion,   If need redundancy, and changes over the lifecycle of the APP, hot swap .-> go with APP services. (you can create a scale to change the APP Services from Premium to Basic, to cost reduction )    

Install docker Ubuntu 22.04

Install docker Ubuntu 22.04 Install docker Ubuntu 22.04 nano install_docker.sh #!/bin/bash # Update your existing list of packages sudo apt update # Install a few prerequisite packages which let apt use packages over HTTPS sudo apt install -y apt-transport-https ca-certificates curl software-properties-common # Add the GPG key for the official Docker repository to your system curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg # Add the Docker repository to APT sources echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null # Update the package database with Docker packages from the newly added repo sudo apt update # Make sure you are about to install from the Docker repo instead of the default Ubuntu repo sudo...

old SDcard from 2010 dies at 2022

Image
This old SD card I have been using it from the last 20 year and now it start to fail after I connect it a modern computer. This is so old each Chip is two size of the micro SD.

Kodak Mini Model Zm1

Image
  Battery spec Type Model No. Volt Capacity (mAh) Max Dimensions (mm) Weight V Typical Minimal Thickness Width Length g **2045 PL552045 3.7 460 450 5.5 20 44.5 9.4

How to change the TIME ZONE in Azure WEB APP

Image
 How to change the TIME ZONE in  Azure WEB APP in configuration, application settings add the entry  WEBSITE_TIME_ZONE: Europe/Paris List of time zones  wiki

Using Ansible to manage Azure VM error msg packaging installed

Using the Ansible to automatize your taks in Azure. IF you are using Ansible and get this error msg. fatal: [localhost]: FAILED! => {"changed": false, "msg": "Do you have packaging installed? Try `pip install packaging`- No module named packaging.version"}

Do you need test you WAF / FRONT DOOR

Checking your WAF /  Front DOOR / Cloudflare is working Using the this in your request will get a block and you can see in the log. https://www.yourdomain.com/?a=b%20AND%201=1 ;-)

DSC Azure automation Linux

Have a problem in your DSC configuration. "Failed to apply the configuration. These resources produced errors: [nxFile]MyFolder. Detailed error information can be found in the log file.\"}"]

Nginx solution for check http_stub_status_module

Nginx add internal configuration to use http_stub_status_module

Nginx Reverse configuration

Simple Nginx proxy reverse configuration add the file proxy.conf in /etc/nginx/conf.d/ proxy_http_version 1.1; proxy_set_header Host               $http_host; proxy_set_header X-Real-IP          $remote_addr; proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto  $scheme; proxy_set_header Upgrade            $http_upgrade; proxy_set_header Connection         "Upgrade";  Configuration for the domain simple server { listen 80; listen [::]:80; server_name example.com; location / {   include conf.d/proxy.conf; proxy_pass http://192.168.123.321:3000/; } }

How to pass value of a variable in ssh command

How make a script using a local or remote variable in other script  Sample SCRIPT  #!/bin/bash ## find the last or new backup file in the folder and create a variable name DBFILE DBFILE=`ssh -t serverB@192.0.0.1 "sudo find /temp/backup.sql -type f -mtime -1 -name "*.sql""`  ###( just show the name file) echo $DBFILE   ###  send the variable local to remote server echo here is DBFILE $DBFILE #ssh -t serverB@192.0.0.1 "sudo cp $DBFILE /home/user/" ## Script execute remote with the variable  #/usr/bin/scp serverB@192.0.0.1:/home/user/$DBFILE  /opt/temp

How better debug your ECS containers LOG

Image
How better debug your ECS containers LOG Tired of looking log in  AWS cloudwatch?   Try to use Graylog + Elasticsearch =😄 Simple steps*, install the Graylog in a small instance, configure the input, configure the driver for docker log, receive the logs. *The security configuration like ports, network, users and password isn't in this post. How To Install Graylog 3.0 on Ubuntu 18.04 / Ubuntu 16.04 Graylog  is an open-source log management tool that helps you to collect, index and analyze any machine logs centrally. This guide focuses on installing Graylog on  Ubuntu 18.04  /  Ubuntu 16.04 . Components MongoDB  – Acts as a database, stores the configurations and meta information. Elasticsearch  – It stores the log messages and offers a searching facility. It is recommended to allocate more memory and use SAS or SAN disks for Elasticsearch nodes. Here, where all your searching happens. Graylog Server  – Log Pa...