- Hard disk prices - https://diskprices.com/?locale=in
- Price History - https://pricehistoryapp.com/
- Video player knowledgebase - https://www.videohelp.com/
- PC Price Tracker - https://pcpricetracker.in/
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 | |
# 0-file means this is important for the script to run (script itself and sources list) | |
# 1-file means its important in a re-run (download log) | |
# 2-file would mean its for user's convenience (m3u playlist) | |
# 3-file would mean its for debugging/seeing if something went wrong | |
# Should work for all playlists | |
yt-dlp \ | |
--verbose \ |
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
// Default font | |
user_pref("font.internaluseonly.changed", true); | |
user_pref("font.minimum-size.x-western", 12); | |
user_pref("font.name.monospace.x-western", "JetBrains Mono"); | |
user_pref("font.name.sans-serif.x-western", "Cantarell"); | |
user_pref("font.name.serif.x-western", "Cantarell"); | |
user_pref("font.size.monospace.x-western", 14); | |
user_pref("font.size.variable.x-western", 18); | |
// Reading mode |
Anime/Manga trackers with auto updates:
- Updates only Anime.
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 | |
# Config | |
USERNAME="KAKAN" | |
mediaType="ANIME" | |
# Let's get it using HTTP | |
AFTER=$( http --pretty none -b -f https://kitsu.io/api/graphql query="query{findProfileBySlug(slug: \"$USERNAME\"){library{completed(first:100, mediaType:$mediaType){pageInfo{startCursor}}}}}" \ | |
| jq .data.findProfileBySlug.library.completed.pageInfo.startCursor ) |
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 getDirection( angle ){ | |
// We divide it into 16 sections | |
let directions = ["N","NNE","NE","ENE","E", | |
"ESE", "SE", "SSE","S", | |
"SSW","SW","WSW","W", | |
"WNW","NW","NNW" ]; | |
// This means, every 360 / 16 degree, there's a section change | |
// So, in our case, every 22.5 degree, there's a section change | |
// In order to get the correct section, we just need to divide | |
let section = parseInt( angle/22.5 + 0.5 ); |
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
# Where should we store the backups? | |
BACKUP_DIR="/mnt/backup_drive/$(hostname)/$(date -u +\"%Y-%m-%d\")" | |
# Backup /etc | |
sudo rsync -avzP /etc $BACKUP_DIR | |
# Backup /var excluding many heavy files | |
sudo rsync -avzP --exclude 'cache' \ | |
--exclude 'lib/flatpak' \ | |
--exclude 'lib/dnf' --exclude 'lib/dpkg' \ | |
--exlclude 'lib/libvirt' \ | |
--exclude 'lock' --exclude 'run' \ |
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
# Modify the ffmpeg command to your liking if you want :) | |
for name in ./*; do ffmpeg -i "$name" -vn "./mp3/${name%.*}.mp3"; done | |
# Change ./* to ./*.mp4 to select only MP4 files and so on. | |
# Change .mp3 to any format you like and | |
# ffmpeg will automatically adjust to the container format | |
# because of -vn |
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
#!/usr/bin/env bash | |
IP="10.0.0.1" #Change to IP of server | |
TOPIC="torrent/finished" # Change to your liking | |
VERSION="mqttv5" | |
if [ -n "$(command -v mosquitto_sub)" ]; then | |
echo "Found mosquitto" | |
if [ "$( uname )" == "Linux" ]; then | |
if [ -n "$( command -v termux-notification )" ]; then | |
echo "Running in termux" | |
mosquitto_sub -h "$IP" -V "$VERSION" -t "$TOPIC" | while read OUTPUT; do termux-notification -c "$OUTPUT"; done |
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
jvmLibPath=/usr/lib/jvm/jre-1.8.0/lib/amd64/server/libjvm.so | |
mainEventsClass=ModeEventHandler | |
classPath=./java-vcmp-1.0-STAGING-all.jar | |
maxMemory=100m |
NewerOlder