Skip to content

Instantly share code, notes, and snippets.

View SahilMahadwar's full-sized avatar
🎯
Learning

Sahil Mahadwar SahilMahadwar

🎯
Learning
View GitHub Profile
@SahilMahadwar
SahilMahadwar / bing-wallpaper.sh
Last active April 24, 2024 14:51
You can use this script to automatically set Bing's image of the day as your wallpaper. It downloads the image and saves it to a chosen folder. It also keeps track of downloaded images using a JSON file, so it won't download the same one twice. Just set it to run on every login to keep your wallpaper fresh!
#!/bin/bash
# Check internet connectivity
check_internet() {
wget -q --spider http://example.com
return $?
}
# Wait for internet connectivity
while ! check_internet; do
const nav = [
// Start Here is super parent
{
label: "Start Here",
// this link will throw an 404 and thats okay.
link: "/docs/start-here/", // if you notice start-here got converted to "Start Here" for label so you will have to do some string conversions
enabled: true,
subItems: [
{
label: "Install Astro", // "Install Astro" title is coming from markdown frontmatter field called linkTitle so if its a folder it will use folder name as parent if its a single file means its a page then we will use linkTitle
---
title: "Docs title"
linkTitle: "Link title"
description: example description
---
## Heading
content
@SahilMahadwar
SahilMahadwar / README.MD
Created August 20, 2022 20:45 — forked from JohnDinhDev/Reset Udemy Progress.md
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 08/06/2022

Step 1. Go to Udemy course in browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave