vendredi 21 janvier 2022

Cloud storage

 Cloud storages :

https://teledriveapp.com



 Use with rclone

https://rclone.org/

Proofread a text for styling and readability level.

 https://draftmap.com/

Proofread your text. Catch style issues and common errors with a quick copy and paste.


==> useful for motivation letters for example

jeudi 6 janvier 2022

Ikea delivery statuses

Since the "next steps" are not necessarily available, to reduce the anxiety of knowing the next step, this is what I could observe as a delivery workflow statuses during an Ikea delivery in january 2022.



Français :

État de la livraison (inverse)


  1. Livré
  2. En route
  3. Received at nearest hub
  4. In transit
  5. Getting ready to send
  6. Picking completed
  7. Picking started
  8. En attente d'être cueilli
  9. Order received


English :

Delivery status (reverse)

  1. Delivered
  2. On its Way
  3. Received at nearest hub
  4. In transit
  5. Getting ready to send
  6. Picking completed
  7. Picking started
  8. Waiting to be picked
  9. Order received

mercredi 17 novembre 2021

Slack/Zoom Team building : Scavenger hunt

 






Example list 


Organization :

* 1 master of masters : decides the list, and will count the points (in particular : who finished first ?)

* 1 master per group 

* split the list of attending people in zoom "breakout rooms" (1 per group)

* each group master is responsible for validating having seen the objects

* when done or at 15min => back to the main room and count

jeudi 11 novembre 2021

Indice de coût de la vie / cost of living

https://www.numbeo.com/cost-of-living/


 examples, in 2021-Nov (7,450,880 prices in 10,484 cities entered by 613,014 contributors)



  • Paris vs Montreal :

https://www.numbeo.com/cost-of-living/compare_cities.jsp?country1=France&country2=Canada&city1=Paris&city2=Montreal&tracking=getDispatchComparison

applications de gestion de déplacements


  • Chrono
  • Transit => great in Montreal
  • Google Maps => ok internationally
  • Apple plans => iOS specific, not tested
  • STL Synchro => Laval
  • Moovit => ?


  • Citymapper => great in Paris


mardi 9 novembre 2021

Online drawing tool (excalidraw)

 https://excalidraw.com/


(From presentation by  Alex Jones and Anaïs Urlichs [Civo] / Grafana ObservabilityCon 2021 )

https://grafana.com/go/observabilitycon/2021/loki-logging-at-scale-civo/


Linux cleaning tips (systemd, apt/ubuntu, docker)

 (evolutive article where I store what's been useful to me to clean space on linux servers I'm using)

Note : my current servers are running Ubuntu.



OS / SystemD : purge logs bigger than ...

Only keep 10M of each log files handle through syslog

sudo journalctl --vacuum-size 10M


OS / apt : remove remnants

Remove automatically all unused packages Remove automatically installed packages not needed anymore (i.e. packages that were installed as dependencies of packages that have now been removed or aren't requiring this dependency anymore)

apt options :

  •   autoremove - Remove automatically all unused packages
  •   clean - Erase downloaded archive files
  •   autoclean - Erase old downloaded archive files

sudo apt-get clean autoremove autoclean



Docker : remove logs older than ...

Only keep the last 1000h of docker containers logs

sudo docker image prune --all --filter "until=1000h" -f


Docker : remove remnants

Be careful ! If your docker environments are not running they might be deleted by some of the following commands !

Remove unused volumes, containers, images, networks, etc.

sudo docker system prune -f 

sudo docker system prune -a --volumes


jeudi 28 octobre 2021

kill processes from docker-compose "container_name"

Context : 

follwing a project-name change -> renaming the directory-name/docker-compose.yml the processes that were started by docker-compose were duplicated.

From the new project :

*  impossible to see them.

From docker ps : no process listed

From OS perspective ps aux : process present.


Test 1 : kill them all !

 Step 1 : identify them

ps aux | grep $(echo "$(grep container_name docker-compose.yml | grep -v '#' | awk '{printf("%s\\|", $2)}')grep")


Step 2 : kill -9 them all


ps aux | grep $(echo "$(grep container_name docker-compose.yml | grep -v '#' | awk '{printf("%s\\|", $2)}')grep") | awk '{print $2}' | xargs sudo kill -9


-> result : when restarting docker, they're back :-( 


Test 2 : stop docker + docker-compose start

apparently working, but I lost my container's content...


lundi 11 octobre 2021

Docker : thiner images

(from  GitLab Commit at KubeCon : One Layer Builds (Docker Not Included), by Jason Plum https://gitlab.com/WarheadsSE and Will Christensen)

* use FROM Scratch, instead of FROM <distro> 


 * Explore each layer of a docker image

https://github.com/wagoodman/dive 


* use Buildah : http://buildah.io/ "A tool that facilitates building OCI container images."