Skip to content

Instantly share code, notes, and snippets.

View SmartFinn's full-sized avatar
🇺🇦

Serhii Yeremenko SmartFinn

🇺🇦
  • Ukraine
  • 09:58 (UTC +03:00)
View GitHub Profile
@SmartFinn
SmartFinn / fdedupes.sh
Last active January 8, 2020 17:44 — forked from aravindkumarsvg/delete-dupfiles.sh
Replaces the duplicate files with the hard link to the file which comes first in the sorting
#!/usr/bin/env bash
# set -x # Uncomment to debug this shell script
set -o errexit \
-o noclobber \
-o pipefail
readonly PROGNAME="$(basename "$0")"
readonly VERSION="0.0.4"
@SmartFinn
SmartFinn / vpnbook.sh
Last active November 28, 2022 20:23 — forked from tobidope/vpnbook
Simple script to extract the ever-changing credentials from Twitter (Facebook) account of the VPN provider VPNBook. Especially useful on OpenWRT based routers.
#!/bin/sh
# Extracts the user and password for the VPNBook free VPN service
# out of their social media
# based on https://gist.github.com/tobidope/8568487
#
# https://gist.github.com/SmartFinn/aec9267db348c0bffd6045e07294e2cd
readonly CONN_ID="vpnbook"
readonly WEBPAGE="https://nitter.net/vpnbook/rss"
readonly AUTH_FILE_TMP="/tmp/vpnbook.$$"