Linux boot process

There seems to be a strong interest when interviewing in this process.

biosstands for: basic input / output systemdoes system integrity checksfind and runs MBR boot loader programmbrlocated on first sector of bootable diskunder 512 bytes, 3 partsprimary boot loader info (446 bytes)disk partition info (64 bytes)mbr validation check (last 2 bytes)contains info on GRUBsummary: loads and exec GRUBgrubkernelinitrunlevel

System Services Migrating from Operations Teams to The Cloud

Done, or in process to some degree.
system installsdisk formattingvolume managementdatabase replicationmonitoring toolsservice start / stopservice start / stop scriptsbackup automation

fizzbuzz in ruby

#!/usr/bin/env ruby (1..100).each do |num| three = (num % 3 == 0) five = (num % 5 == 0) print 'fizz' if three print 'buzz' if five print num if (!three and !five) puts end

Docker: simple example, fast

See github link for instructions on how to run.
docker-compose.ymlversion: '2' services: app: build: context: ./ dockerfile: app.docker ports: - "80:80" app.dockerFROM silintl/ubuntu:16.04 RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections RUN apt-get update RUN apt-get install -y apache2 WORKDIR /var/www/humankind RUN echo " \n\ \n\ ServerName humankind \n\ DocumentRoot /var/www/humankind \n\ \n\ " >> /etc/apache2/sites-available/humankind.conf RUN a2dissite 000-default.conf && a2ensite humankind.conf RUN echo "Automation for the People" > /var/www/humankind/index.html EXPOSE 80 CMD ["apache2ctl", "-D", "FOREGROUND"]

simple angularjs 1.x webapp

Here's a very simple app using AngularJS 1.x.


Ignore how the first couple of lines in app.js work, and just use as is.Anything in index.html that starts with "ng-" is a "angular directive", fancy term for a placeholder. Angular repeatly scans the DOM for these, gulps them up and runs them. Sometimes it is just a div, sometimes the whole body. You decide how much of the DOM a directive needs to control. Try to keep it as small as possible.
Live app: (I hope)

Maybe try to play with app.js to see if you can add some functionality using m_words.

git: merge request

git checkout mastergit pullgit branch -b <mybranch><changes>git commit -am'My change commit'git push origin <mybranch>

Ubuntu LXD container: no IP address

sudo dpkg-reconfigure -p medium lxd Be very careful, this will wipe any existing lxc/lxd bridge you have and make your existing containers unreachable. So this is really only recommended if you are using LXD for the first time on your machine.

See comment section of

"This change was required to be able to decouple LXD from the old LXC tools, moving it onto its own bridge. The warning message was highlighting the reasons for that, the effect it would have on existing containers and how to configure it so things would work as usual."