Skip to content

Instantly share code, notes, and snippets.

@Classsic
Classsic / sh
Created July 4, 2020 19:08
Get Docker
curl -sSL https://get.docker.com/ | sh
@Classsic
Classsic / get_public_ip.sh
Created November 25, 2020 02:54
Get Public Ip
curl -sS https://checkip.org|grep yourip -A1|tail -n1| awk -F ">" '{print $3}'| awk -F "<" '{print $1}'

Looking to create a Software RAID 1 setup for your 2-disk server on Ubuntu Server 20.04?

Screen Shot 2020-06-05 at 20 55 31

Let's start with the basics: the official guide by Ubuntu (https://ubuntu.com/server/docs/install/storage) is outdated/wrong. And as of March 2021 it's possible that there's a bug as well with how the bios_grub partitions are created when using multiple disks.

Now on to the solution:

  • Select "Custom storage layout" when you reach the storage configuration step of the installer.
  • If the disks have existing partitions, click on each disk under AVAILABLE DEVICES and then select REFORMAT. This will (temporarily) wipe out the partitions.
vi /etc/default/cpufrequtils
make like this: GOVERNOR="performance"
then:
sudo systemctl restart cpufrequtils
check with this:
@Classsic
Classsic / ffmpeg-vp8&9-encode-test-vaapi-intel.md
Created November 16, 2023 18:07 — forked from Brainiarc7/ffmpeg-vp8&9-encode-test-vaapi-intel.md
PSA: You can now use FFmpeg's VAAPI-based VP8 and VP9 encoder on Skylake+ systems on Linux: Tested on Ubuntu 16.04LTS

Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:

Build platform: Ubuntu 16.04LTS.

First things first:

Install baseline dependencies first

sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools