Skip to content

Instantly share code, notes, and snippets.

@sagarishere
sagarishere / namechange.sh
Created January 24, 2024 08:27
namechange.sh
#!/bin/bash
# Ask the user for a number
echo "Enter the number to prefix the file names with:"
read number
# Iterates over each file in the current directory
for file in *; do
# Skips the script itself
if [ "$file" != "namechange.sh" ]; then
@sagarishere
sagarishere / gist:d60ad61bde18dd4ad85acc06f0f361bd
Created May 21, 2024 00:20
Replace Class Values in Article at Nextjs website
// ==UserScript==
// @name Replace Class Values in Article at Nextjs website
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Replace min-w-0 with min-w-10xl and max-w-6xl with max-w-12xl in article tags
// @author Sagar Yadav
// @match https://nextjs.org/*
// @grant none
// ==/UserScript==