Skip to content

Instantly share code, notes, and snippets.

View DivyanshByte's full-sized avatar

Divyansh Agrawal DivyanshByte

  • World, Earth
View GitHub Profile
@williambl
williambl / AAAAAA.zip
Last active May 6, 2023 01:12
some shader packs for 21w10a
from tkinter import *
from tkinter.ttk import *
import datetime
import platform
try:
import winsound
type='windows'
except:
import os
type='other'
@s3rvac
s3rvac / limit-virtual-memory-of-subprocess.py
Created May 3, 2018 07:54
Limits the maximal virtual memory for a subprocess in Python on Linux.
#!/usr/bin/env python3
#
# Limits the maximal virtual memory for a subprocess in Python.
#
# Linux only.
#
import subprocess
import resource
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@ejoubaud
ejoubaud / simulate_keypress.js
Last active April 9, 2024 18:38
Simulate keypress that works in Google nav in Chrome
// Based on http://stackoverflow.com/a/10520017/1307721 and http://stackoverflow.com/a/16022728/1307721
Podium = {};
Podium.keydown = function(k) {
var oEvent = document.createEvent('KeyboardEvent');
// Chromium Hack
Object.defineProperty(oEvent, 'keyCode', {
get : function() {