Skip to content

Instantly share code, notes, and snippets.

@Vaishnav-Sabari-Girish
Vaishnav-Sabari-Girish / README.md
Last active June 25, 2026 09:09
A google calendar TUI written in pure bash

Calendar widget

Uses bash to create a calendar TUI which displays current date, any events and also allows for movement. Now allows for event creation and listing of all calendars via a separate script

Steps

  1. Create a new project in Google Cloud Console
  2. Create new credentials using the OAuth section (Make sure to register the app as a web application and not desktop app) and in Authorized Redirect URI's paste https://developers.google.com/oauthplayground.
  3. Download the credentials (.json)
  4. Open the downloaded .json file and go to Google OAuth Playground
@azumukupoe
azumukupoe / autovsr.lua
Last active June 18, 2026 10:06
AutoVSR for MPV
local mp = require 'mp'
local autovsr_enabled = false
local function autovsr()
local display_width = mp.get_property_native("display-width")
local video_width = mp.get_property_native("width")
local display_height = mp.get_property_native("display-height")
local video_height = mp.get_property_native("height")
if video_width and display_width and video_height and display_height then
@eugenesan
eugenesan / ubuntu-mod.sh
Last active June 12, 2026 15:42
kUbuntu ISO modifier
#!/bin/bash -e
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2024-2026 Eugene San (eugenesan)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or any later version.
#!/bin/bash
# Alternatives: https://github.com/ajslater/picopt
# https://github.com/thebeansgroup/smush.py
# TODO: implement max file size
# TODO: support gz archives with zopfli
set -u
if [[ $1 == "-h" || $1 == "--help" ]]; then
echo "Recursively and losslessly optimize images and ZIP archives. Usage: $(basename "$0") [dir] [dir]..."
@triffid
triffid / openrc-init-pia
Last active February 15, 2024 06:48
shell script for accessing PIA wireguard
#!/sbin/openrc-run
command="/root/bin/pia-wg.sh"
CONFIGDIR="${CONFIGDIR:-/var/cache/pia-wg}"
CONFIG="${CONFIG:-/etc/pia-wg/pia-wg.conf}"
extra_started_commands="reload"
depend() {
@shabbir-hasan
shabbir-hasan / mpv.conf
Created July 29, 2018 14:43
MPV Configuration (mpv.conf) on Windows 10 Pro
# vim: syntax=config
###########
# General #
###########
priority=high
input-ipc-server=/tmp/mpvsocket # listen for IPC on this socket
load-stats-overlay=yes # use local stats.lua
@Scrumplex
Scrumplex / 50-udisks.rules
Last active January 17, 2026 14:14
Polkit rules for udisks, and udisks2. Compatible with udiskie and Dolphin.
// Original rules: https://github.com/coldfix/udiskie/wiki/Permissions
// Changes: Added org.freedesktop.udisks2.filesystem-mount-system, as this is used by Dolphin.
polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
// NOTE: there must be a comma at the end of each line except for the last:
var permission = {
// required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.luks-unlock": YES,
@joeharr4
joeharr4 / ssh-cipher-benchmark.sh
Last active April 30, 2025 02:32 — forked from dlenski/ssh-cipher-benchmark.sh
Check speed of ssh cipher(s) on your system
#!/bin/bash
# ssh-cipher-benchmark.sh - Assesses speed of SSH encryption between specific hosts.
# Usage:
# ssh-cipher-benchmark.sh <remotehost> [ciphers]
# Default ciphers: all we can find...
#
# Note: In some cases, the first cipher tested runs faster than the others, regardless of order.
# Cause of this is not known, but changing the order of testing shows it to be true. Run the
# first one twice if you suspect this. Perhaps it is due to buffering?
@keeferrourke
keeferrourke / flac2opus
Last active December 6, 2025 10:32
This is a script to convert all flac files in a given directory to ogg/opus. I wrote this because mp3 kinda sucks and opus is a free format that is pretty much taking over the internet.
#!/bin/bash
# Copyright 2017 Keefer Rourke <mail@krourke.org>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCNUMBERLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
@tasdikrahman
tasdikrahman / irssi.md
Last active June 14, 2026 03:06
irssi cheatsheet