Skip to content

Instantly share code, notes, and snippets.


Phani Rithvij phanirithvij

View GitHub Profile
phanirithvij /
Last active January 29, 2022 12:28
Scoop list installed apps from a bucket
# to install this exact revision
scoop install

# can also install from my bucket (which I might keep upto-date)
scoop bucket add scoop-rithvij
scoop install scoop-rithvij/bucketlist
# Compiled by following instructions on
curl -o "$ROOT_CRT" ""
curl -o "$INT_CRT" ""
phanirithvij /
Created February 19, 2021 17:22
lrc to srt conversion backup

album art extraction, image2vector hack, lyric sync

  • audio files genereated from ffmpeg from the video, trimming first 9 secs
ffmpeg.exe -i input.mkv -acodec flac -bits_per_raw_sample 16 -ar 44100 output.flac
ffmpeg -i input.mkv output.wav
ffmpeg.exe -i output.wav -vn -ar 44100 -ac 2 -b:a 320k output_320k.mp3
ffmpeg.exe -i output.wav -vn -ar 44100 -ac 2 -b:a 128k output_128k.mp3
phanirithvij / go_port_forwarding.go
Created November 19, 2020 20:28 — forked from qhwa/go_port_forwarding.go
network port forwarding in go lang
View go_port_forwarding.go
package main
import (
func main() {
ln, err := net.Listen("tcp", ":8080")
phanirithvij / notion.dark.css
Created August 28, 2020 17:51
Notion darker theme with fixed scrollbar sizes
View notion.dark.css
@-moz-document domain("") {
::-webkit-scrollbar {
width: 10px;
::-webkit-scrollbar-track {
background: #414141;
phanirithvij / zip.go
Created May 22, 2020 09:13
Gloang zip folder with progress
View zip.go
package main
import (
phanirithvij / Get-Client-Rect.ps1
Last active March 24, 2020 14:03
mpv js extension to save the last position, dimensions of the mpv windows. i.e. open same as before. Only WINDOWS
View Get-Client-Rect.ps1
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Window {
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetClientRect(IntPtr hWnd, out RECT lpRect);
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ClientToScreen(IntPtr hWnd, ref POINT lpPoint);
phanirithvij / aes_encryption_helper.dart
Created December 28, 2019 12:52 — forked from proteye/aes_encryption_helper.dart
How to AES-256 (CBC/CFB mode) encrypt and decrypt in Dart/Flutter with Pointy Castle
View aes_encryption_helper.dart
import 'dart:convert';
import 'dart:typed_data';
import "package:pointycastle/export.dart";
import "./convert_helper.dart";
// AES key size
const KEY_SIZE = 32; // 32 byte key for AES-256
const ITERATION_COUNT = 1000;
phanirithvij / main.dart
Last active December 16, 2019 08:23
A pageview example
View main.dart
import 'package:flutter/material.dart';
void main() {
home: Scaffold(
body: PageviewDemo(),
class PageviewDemo extends StatelessWidget {
phanirithvij / main.dart
Last active November 9, 2019 15:08
A dart example to remove duplicate objects by a particular field
View main.dart
class Person{
final String name;
const Person(;
return "Person Object $name";
void main() {
final people = [Person("Joe"), Person("Mary"), Person("Mary")];