Skip to content

Instantly share code, notes, and snippets.

View kishorviswanathan's full-sized avatar

Kishor Viswanathan kishorviswanathan

View GitHub Profile
@kishorviswanathan
kishorviswanathan / dtb-diff.py
Last active March 5, 2022 05:38
Compare or find diff for device tree files (dtb)
#!/usr/bin/python
import sys
import fdt
import argparse
# Return root node for given dtb file
def get_root(dtb):
try:
#!/bin/bash
tag=$1
tmpfile=/tmp/`openssl rand -base64 10 | tr -cd '[:alpha:][:digit:]'`.jpg
echo "Downloading"
curl -Ls "https://source.unsplash.com/2880x1800/?$tag" -o "$tmpfile"
echo "Setting wallpaper"
osascript -e "tell application \"Finder\" to set desktop picture to POSIX file \"$tmpfile\""
sleep 5
#!/bin/bash
# A script to fetch the Image of the day from Bing and set it as wallpaper on Ubuntu Gnome.
wallpaper='/tmp/wallpaper.jpg'
width=1366
wget "https://bing.biturl.top/?resolution=$width&format=image&index=0&mkt=en-US" -O $wallpaper
gsettings set org.gnome.desktop.background picture-uri $wallpaper