Bios Basics – What Is The Bios

common tasks

  • Setting your system clock
  • Changing your boot device order
  • turning off the splash screen
  • setting fan speed
  • disabling unused components
  • enabling ahci mode for sata connectors
  • changing memory timings (more advanced)
  • disable secure boot to install an alternative os

 

Boot Device Selection: Howto With Examples
How to select your boot device on various motherboards/laptops. Capture from machine, video of keyboard, and how to look up the relevant keys for your computer. Some very old boards have no bbs, some super new ones like samsung notebooks require you to hit f2 to enter bios, then select the one-time boot device there.

code sample test (python):

# Program to flatten an arbitrarily nested list.

def nested_item(depth, value):
    if depth <= 1:
        return [value]
    else:
        return [nested_item(depth - 1, value)]

def nested_list(n):
    """Generate a nested list where the i'th item is at depth i."""
    lis = []
    for i in range(n):
        if i == 0:
            lis.append(i)
        else:
            lis.append(nested_item(i, i))
    return lis

def flatten(lis):
    """Given a list, possibly nested to any level, return it flattened."""
    new_lis = []
    for item in lis:
        if type(item) == type([]):
            new_lis.extend(flatten(item))
        else:
            new_lis.append(item)
    return new_lis

for n in range(7):
    print n,
    lis = nested_list(n)
    print "original:", lis
    new_lis = flatten(lis)
    print "flattened:", new_lis
    print

for i in range(6):
    lis = range(i)
    print "orig:", lis
    flat_lis = flatten(lis)
    print "flat:", flat_lis

 

compress the pitivi video and drop the old audio – huffyuv to h.264 and audio to null

~/bin/ffmpeg -i 3-huffyuv-pitivi.avi -an -vcodec libx264 -preset veryslow -qp 0 -pix_fmt yuv444p10le 4-h264.avi

using code class instead

~/bin/ffmpeg -i 3-huffyuv-pitivi.avi -an -vcodec libx264 -preset veryslow -qp 0 -pix_fmt yuv444p10le 4-h264.avi

specifying pre class wiki

~/bin/ffmpeg -i 3-huffyuv-pitivi.avi -an -vcodec libx264 -preset veryslow -qp 0 -pix_fmt yuv444p10le 4-h264.avi

pre class highlight (2x copies)

~/bin/ffmpeg -i 3-huffyuv-pitivi.avi -an -vcodec libx264 -preset veryslow -qp 0 -pix_fmt yuv444p10le 4-h264.avi
~/bin/ffmpeg -i 3-huffyuv-pitivi.avi -an -vcodec libx264 -preset veryslow -qp 0 -pix_fmt yuv444p10le 4-h264.avi

 

ffmpeg trac example

Notes:

  • Server users can omit the ffplay

You may also like...