Skip to content

Instantly share code, notes, and snippets.

View shubhank008's full-sized avatar

Shubhank Gaur shubhank008

View GitHub Profile
Country Capital City Latitude Longitude Population Capital Type
Afghanistan Kabul 34.5289 69.1725 4011770 Capital
Albania Tirana 41.3275 19.8189 475577 Capital
Algeria Algiers 36.7525 3.0420 2693542 Capital
American Samoa Pago Pago -14.2781 -170.7025 48526 Capital
Andorra Andorra la Vella 42.5078 1.5211 22614 Capital
Angola Luanda -8.8368 13.2343 7774200 Capital
Anguilla The Valley 18.2170 -63.0578 1402 Capital
Antigua and Barbuda St. John's 17.1172 -61.8457 20764 Capital
Argentina Buenos Aires -34.6051 -58.4004 14966530 Capital
@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
@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 / 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 / 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)