Change Swap size on a running linux machine

linux, swap
Make all swap off sudo swapoff -a Resize the swapfile sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 Make swapfile usable sudo mkswap
Davide Andreazzini

dissertation tales the proposal

Unfortunately I had to remove the proposal from the website.
Davide Andreazzini

Scikitlearn ML algorythm cheat sheet

Lately I've been playing with some ML projects, and this chart is really useful.
Davide Andreazzini

Set up Python3 dev environment Ubuntu

Here is a script that I've used to set up a python environment on Ubuntu and raspbian #Update the system sudo apt-get update su
Davide Andreazzini

Mediatek watchface - pacman

This Christmas I received a mediatek smartwatch so after a couple of days, I've decided to mod it a bit, and I've started to learn how to cr
Davide Andreazzini

First react app

javascript, JS, react, app
So it's been two days that I'm trying to figure out how React works and how to use it for my projects. I have to admit that I don't like Rea
Davide Andreazzini

Linux - Freeing RAM without rebooting

linux, ram, free, bash
Simple command to free RAM on linux without rebooting #!/bin/bash sync; echo 1 > /proc/sys/vm/drop_caches; echo 2 > /proc/sys/vm/drop_
Davide Andreazzini

Image to Byte Array

arduino, image, cpp, conversion, byte, array, lcd
Here is a small fiddle that I've done to convert images to byte array. I use it to create icons for my projects with Arduino and similar. T
Davide Andreazzini

Wemos D1 Mini Pinout

wemos, arduino, pinout, wemos d1 mini
The Wemos D1 mini is a really cool microcontroller. It costs only £5 and provides integrated WiFi bng connectivity and 13 digital I/O and 1
Davide Andreazzini

Control flow with promises

javascript, promise, series, async, JS
Promises are very powerful and allow us to create really complex asynchronous data flows. When we want to execute tasks at the same time we
Davide Andreazzini