This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 5.0 | |
<# | |
.SYNOPSIS | |
Universal Dynamic Backup Script with Auto-Update | |
.DESCRIPTION | |
PowerShell backup script with GitHub Gist auto-update capability | |
Created by Kannan from TTS - Clean & Efficient Version | |
.VERSION | |
2.1 | |
#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rclonecopy() { | |
local source="$1" | |
local destination="$2" | |
# Generate timestamp for log file | |
local timestamp=$(date +"%Y-%m-%d_%H-%M-%S") | |
local logfile="naarnclone-${timestamp}-log.txt" | |
# Define your ntfy topic | |
local ntfy_topic="mytopic" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is to take a backup every night to have a copy to that drive. | |
(For Google workspace.) | |
rclone copy ashwanthdrive: "backupdrive:/Ashwanth backup" --drive-server-side-across-configs --dry-run -v --progress --log-file="C:\rclone\backup_log.txt" --log-level INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
const ids = []; | |
// Select all elements containing the task IDs | |
const idElements = document.querySelectorAll('[data-colindex="0"] .MuiBox-root'); | |
// Extract and store IDs in an array | |
idElements.forEach((el) => { | |
const idText = el.textContent.trim(); | |
if (idText.match(/^\d+$/)) { // Ensure it's a valid numeric ID | |
ids.push(idText); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vijay bro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the path of the folder containing video files | |
$folderPath = "./color output" | |
# Get all video files (using common video file extensions) | |
$videoExtensions = @(".mp4", ".mkv", ".avi", ".mov", ".flv", ".webm", ".wmv") | |
$videoFiles = Get-ChildItem -Path $folderPath -Recurse -File | Where-Object { $videoExtensions -contains $_.Extension.ToLower() } | |
# Initialize counters | |
$totalSize = 0 | |
$totalDuration = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Title Card</title> | |
<!--Google Fonts--> | |
<link rel="preconnect" href="https://fonts.googleapis.com" /> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
<link |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Effects of Meat Consumption on Health</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
line-height: 1.6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
from datetime import datetime | |
from pathlib import Path | |
import calendar | |
def format_date_for_url(date): | |
year = date.strftime("%Y") | |
month = date.strftime("%m") | |
day = date.strftime("%d") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Checking system-wide browser settings..." | |
# Check for system-wide proxy settings | |
networksetup -getwebproxy Wi-Fi | |
networksetup -getsecurewebproxy Wi-Fi | |
# Check for system-wide DNS settings | |
cat /etc/resolv.conf |
NewerOlder