Skip to content

Instantly share code, notes, and snippets.

View sudotman's full-sized avatar
🐈
rolling my boulder

Satyam Kashyap sudotman

🐈
rolling my boulder
  • Mumbai
  • 06:35 (UTC +05:30)
View GitHub Profile
@sudotman
sudotman / movies
Last active August 12, 2020 05:51
Plain text list of movies (Top rated imdb movies)
The Shawshank Redemption
The Godfather
The Godfather Part II
Il buono il brutto il cattivo
Pulp Fiction
Inception
Schindler s List
Angry Men
One Flew Over the Cuckoo s Nest
The Dark Knight
@gmolveau
gmolveau / embed_sub.md
Last active October 16, 2024 15:24
Embed subtitle (soft) in mp4/mkv file with ffmpeg without re-encoding

solution from https://stackoverflow.com/a/17584272/2627873

This solution adds the subtitles to the video as a separate optional (and user-controlled) subtitle track.

So you can choose the subtitle in VLC for example, it's not hard-coded or burned-in. And it won't re-encode the entire file so it's really fast.

  • ffmpeg is required
  • movie = great_movie.mp4 (works with mkv too)
  • subtitle = great_movie.english.srt
@ixe013
ixe013 / polyglot-listener.bat
Last active November 13, 2024 12:39
A polyglot batch file/JScript.net application that listens on a port. Try it with `polyglot-listener.bat 1234` to listen on port 1234
@if (@X)==(@Y) @end /* JScript comment
@echo off
REM Polyglot code adapted from https://stackoverflow.com/a/24396149/591064
setlocal enableDelayedExpansion
REM Too few arguments?
if "x%1" == "x" goto usage_help
REM Find the latest JScript.Net compiler
for /f "tokens=* delims=" %%v in ('dir /b /s /a:-d /o:-n "%SystemRoot%\Microsoft.NET\Framework\*jsc.exe"') do (
@Sacristan
Sacristan / push_commits_by_chunks.sh
Last active July 18, 2025 02:35
Push commits by chunks
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=10
# check if the branch exists on the remote
# if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# # if so, only push the commits that are not on the remote already
# range=$REMOTE/$BRANCH..HEAD
# else
# # else push all the commits
@NoahCardoza
NoahCardoza / README.md
Last active September 21, 2025 19:22
Discord: Spotify Pause Blocker

Spotify Pause Blocker

Disclaimer

I love both of you Discord and Spotify, but this new 30 seccond rule gets pretty annoying when my music gets turned off while just talking "to much." I mean talking kind of is the whole point of Discord...

Reason

@neozero
neozero / main.cpp
Last active June 26, 2024 10:53
OculusHomeless - Use Oculus Dash without Home 2.0
/************************************************************************************
Content : First-person view test application for Oculus Rift
Created : 19th June 2015
Authors : Tom Heath
Copyright : Copyright 2015 Oculus, Inc. All Rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@demonixis
demonixis / MathHelper.js
Created December 4, 2012 10:38
JavaScript Math helper
var MathHelper = {
// Get a value between two values
clamp: function (value, min, max) {
if (value < min) {
return min;
}
else if (value > max) {
return max;
}