Increasing Disk Space in AWS Nitro Instance Without Downtime

Increasing Disk Space in AWS Nitro Instance Without Downtime

Wednesday, Apr 10, 2019
Increasing disk space on the fly inside AWS is a joy to do (kind of). Especially compared to the challenges with bare-metal or on premise systems. Understanding the Disks When working with disks, it is a good idea to have some idea how they work. Normally you would have a set of disks defined in you /dev system (for devices) and you should be able to see these added externally. ...

Read more
What is eating my RAM today?

What is eating my RAM today?

Friday, Jan 11, 2019
There has been a tweet doing the rounds about how people are doing with managing their RAM. Generally speaking I have a couple of machines, varying from 4-16GB or RAM. As you can expect I don’t have many spare GB of RAM knocking about, pretty much ever. ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -rn | head -10 593.508 MB /usr/lib/slack/slack 528.391 MB /usr/lib/firefox/firefox 491.52 MB /usr/lib/firefox/firefox 416.336 MB /opt/brave.com/brave/brave 388.254 MB /usr/bin/gnome-shell 339.266 MB /usr/lib/firefox/firefox 337.309 MB /opt/brave.com/brave/brave 301.047 MB /usr/lib/slack/slack 249.516 MB /opt/brave.com/brave/brave Oh Slack… The email killer? Well you are also the largest consumer of my RAM. Do you need a whole GB for messaging? As you can also see, I run both Brave Browser (which is excellent and you should probably also use) and Firefox (which is pretty solid and separate enough from Brave/Chromium/Chrome to provide a nicer distraction). ...

Read more
My Most Popular Command Line Commands

My Most Popular Command Line Commands

Tuesday, Sep 4, 2018
What commands do you use most on command line? As a daily (hourly) linux user, I use command line tools for almost everything that I do. Opening files, copying, moving, making connections (ssh), starting containers (docker). But what ones do I use most? Here is a little command to find out for yourself. Find out your top 10: history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 My Top 10 1 488 16.1857% cd 2 425 14.0962% git 3 371 12.3051% ssh 4 337 11.1774% docker 5 335 11.1111% ls 6 118 3.91376% aws 7 115 3.81426% sudo 8 94 3.11774% code 9 65 2.15589% docker-compose 10 60 1.99005% vim What does this say about me? Well, first off, I should say that this is not necessarily unexpected. I use cd a lot, which is mainly to move between directories. You can also see that I use docker and docker-compose quite often. And also that almost everything is in git. ...

Read more