Skip to content

Instantly share code, notes, and snippets.

@raghur
raghur / github_releases_opml.sh
Last active June 5, 2021 15:01
Create opml feed for releases from your starred repos
# fetch starred repos, form feed urls to releases, create opml file that can be imported into your favourite feed reader
curl -sL "api.github.com/users/raghur/starred?page=1&per_page=500" | \
jq -r '"<outline xmlUrl=\"https://github.com/" + .[].full_name + "/releases.atom\" />"' | \
awk -e 'BEGIN {print "<opml version=\"1.0\"><body> <outline title=\"Github Releases\" text=\"Github Releases\">"}
{print}
END {print "</outline></body></opml>"}' > subs.opml
@steventrux
steventrux / Chromecast batch conversion script
Last active May 27, 2021 22:56
A bash script to batch convert video files for chromecast compatibility
#! /bin/bash
# Batch Convert Script by StevenTrux
# The Purpose of this Script is to batch convert any video file to mp4 or mkv format for chromecast compatibility
# this script only convert necessary tracks if the video is already
# in H.264 format it won't convert it saving your time!
# Put all video files need to be converted in a folder!
# the name of files must not have " " Space!
# Rename the File if contain space
@teffalump
teffalump / README.md
Last active January 4, 2025 13:50
OpenWRT adblock implementation

Others have recently developed packages for this same functionality, and done it better than anything I could do. Use the packages instead of this script:

Description

In its basic usage, this script will modify the router such that blocked addresses are null routed and unreachable. Since the address blocklist is full of advertising, malware, and tracking servers, this setup is generally a good thing. In addition, the router will update the blocklist weekly. However, the blocking is leaky, so do not expect everything to be blocked.

@pavank
pavank / Dropbox Network Drive Hack
Last active April 6, 2020 03:48
Dropbox Network Drive Hack
Follow these steps
============
1) Create a folder on local disk Eg: C:\Users\keerthip\Documents\Dropbox
2) Create a Drive Letter Mapping eg:(H:) to the folder path in windows with following command
subst H: C:\Users\keerthip\Documents\Dropbox
3) Install Dropbox desktop software in advanced Mode.
Select the new local drive H: and sync either selective folders or all folder to local drive ( which is original folder path)
4) Wait till content is fully synced from web account
5) Pause Syncing and Exit Dropbox
6) Delete local folder drive mapping with following command