Skip to content

Instantly share code, notes, and snippets.

@redeemed2011
redeemed2011 / README.md
Last active February 1, 2022 17:22 — forked from sb3tcs/README.md
Linux on Thinkpad T480

Docker

Install Docker

curl -fsSL https://get.docker.com -o get-docker.sh && \
sudo sh get-docker.sh

or “older” version:

@redeemed2011
redeemed2011 / Ubuntu Kernel Upgrader Script
Created April 29, 2016 14:42 — forked from mmstick/Ubuntu Kernel Upgrader Script
Asks the user whether they want to install the latest RC or stable, then downloads the correct kernel and installs it.
#!/bin/bash
cd /tmp
if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi
if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64; else arch=i386; fi
function download() {
wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4)
}