Skip to content

Instantly share code, notes, and snippets.

View Lemon2ee's full-sized avatar
🏠
Working from home

Sebastian Wang Lemon2ee

🏠
Working from home
View GitHub Profile
#!/bin/bash
# Function to hide or show output based on -v flag
log() {
if [ "$VERBOSE" = true ]; then
"$@"
else
"$@" > /dev/null 2>&1
fi
}
@Lemon2ee
Lemon2ee / keybase.md
Last active February 12, 2021 02:21
keybase.md

Keybase proof

I hereby claim:

  • I am ooohawk on github.
  • I am lemon2ee (https://keybase.io/lemon2ee) on keybase.
  • I have a public key whose fingerprint is DC6F 49A9 5ACD 6655 D15F FDC2 CA85 2BB7 A851 89F7

To claim this, I am signing this object:

@Lemon2ee
Lemon2ee / Ubuntu Kernel Upgrader Script
Created April 9, 2020 00:44 — 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)
}