Category Archives: diy

Handy One-Liners – Full Debian Update

This one is great for a “Full Update” on debian / ubuntu machines.

It calls the script without ever installing anything (assuming curl is installed).  Be sure to run as root, either with sudo or as root directly.

As you can see in the snippet; it uses a script that is remotely hosted (in a github gist).  This is great because you  can see exactly what it does by looking at the script.  It just calls system commands, so it can’t do anything malicious.  Just run sudo, then the above command and it will run the below script:

Another trick you can do with something like this, is copy it to  /usr/bin/fullupdate (as root of course), and ensure its executable “sudo chmod +x /usr/bin/fullupdate”.  Then you can call “sudo fullupdate”, from anywhere and use it when needed. Alternatively, you can use it on a cron to run on a schedule!  If you don’t want all the options, just download the script and change it for your liking.

 

Welcome to open source.

DIY Eclipse Glasses

Nothing Fancy here, but they work. (Use are your own risk)

First off, never look directly into the sun!  Always have the PROPER eye protection!

Supplies
1. Pen
2. Paper
3. Cereal box
4. Aluminum foil
5. Scissors

Yes, that’s it!

How to make an eclipse viewer yourself:
1. Put the cereal box on the piece of paper and trace the outline of the bottom of the box, creating a rectangle.
2. Cut out the rectangle.
3. Take two pieces of tape and make loops, then place them on both ends of the rectangle.
4. Take the piece of paper and place it inside the bottom of the cereal box tape-side down.
5. Close the cereal box up once the piece of paper is inside.
6. Create two holes in the top of the box, one on each side.
7. Cut the holes out with scissors — one will be for your eye, and the other will be covered by foil.
8. Tape the top of the box down revealing the two holes.

9. Take a piece of aluminum foil and cover one of the holes up (it doesn’t matter which one you choose.)
10. Take your pen, make a tiny hole in the middle of the aluminum foil.

And you’re done!