Skip to content

Instantly share code, notes, and snippets.

View shubhank008's full-sized avatar

Shubhank Gaur shubhank008

View GitHub Profile
@shubhank008
shubhank008 / extsubs.py
Created May 24, 2020 08:50 — forked from L-four/extsubs.py
Basic script for extracting SSA/ASS subs from mkv(matroska) and converting them to webvtt
#!/usr/bin/env python3
import sys
import os
import re
import subprocess
def get_files_subs(file):
file = file.rstrip('\n')
qfile = quote(file)
@shubhank008
shubhank008 / gist:298ec079f44a16d26d6f09469113a5c2
Created December 23, 2021 10:25 — forked from insthync/gist:f8a24fa94021a37fb7e0a1c6f07b9777
GetStableHash (The same algorithm with what MMORPG KIT does)
<?php
function getUncheckedInt32($r) {
$r = $r & 0xFFFFFFFF;
if ($r & 0x80000000)
{
$r = $r & ~0x80000000;
$r = -2147483648 + $r;
}
return $r;
}
@shubhank008
shubhank008 / ipv6_proxmox_online.net.md
Last active February 4, 2022 17:00 — forked from DonSYS91/ipv6_proxmox_online.net.md
Configuring IPv6 block from Online.net On Proxmox Host and Guests

Configuring IPv6 block from Online.net On Proxmox Host and Guests

Following the documentation on online.net would get IPv6 to work only in a simple system installation but won't get IPv6 to work with virtualization environment (Exp. Proxmox) as It's missing some IPv6 forwards and proxies on sysctl.conf.

On Proxmox Host (Or Debian if single Debian Installation)

Enable IPv6 on the System:

  • Change Module Options to Enable IPv6:
@shubhank008
shubhank008 / Github Webhook Tutorial.md
Created December 14, 2022 23:57 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings