Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ohbus's full-sized avatar

Subhrodip Mohanta ohbus

View GitHub Profile
@ohbus
ohbus / speedtest.sh
Created March 26, 2021 10:26
Speed Test your Internet every hour and log the output
#!/usr/bin/bash
LOG_PATH="/home/ubuntu/speedtest/speedtest.log"
if result=$(/usr/bin/speedtest --simple); then
parsed_result=$(printf "${result}\"" | sed ':a;N;$!ba;s/\n/" /g' | sed 's/: /="/g')
printf "[$(date)] ${parsed_result}\n" >> "${LOG_PATH}"
else
printf "[$(date)] error\n" >> "${LOG_PATH}"
exit 1
@ohbus
ohbus / hpwififix.sh
Last active January 31, 2023 04:35
[Solved] HP WiFi Not Working | Install RTL8723DE Wifi Driver in Ubuntu
#!/bin/bash
# Install RTL8723DE Wifi Driver in Ubuntu
# Subhrodip Mohanta - 18 July, 2019.
sudo apt install git build-essential dkms
cd /tmp
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6
sudo modprobe -r rtl8723de && sudo modprobe rtl8723de