Skip to content

Instantly share code, notes, and snippets.

View modbender's full-sized avatar
🏠
Working from home

modbender

🏠
Working from home
View GitHub Profile
@modbender
modbender / vewrap.bat
Last active July 24, 2021 12:05
One Line Launching Arguments for Python Project with Virtualenv Wrapper Windows Command Prompt
Rem means comments
Rem command for creating virtualenv (make the virtualenv name same as foldername
for %I in (.) do echo %~nxI & workon %~nxI & mkvirtualenv -a %cd% %~nxI
Rem launching arguments for cmd
for %I in (.) do echo %~nxI & workon %~nxI
@modbender
modbender / extvidmkv
Created September 29, 2021 20:26
Extract only video stream from all mkv in current folder and subdirectories into a mp4 file.
import os
import glob
import shutil
import pathlib
import ffmpeg
current_path = pathlib.Path(__file__).parent.resolve()
videos = glob.glob(os.path.join(current_path, '**', '*.mkv'), recursive=True)
@modbender
modbender / gist:791e1efc82383def5834147b4166efc3
Created October 13, 2021 12:20
Basic CSGO buy shortcut binding
bind "N" "buy p250"
bind "H" "buy smokegrenade;buy decoy"
bind "V" "buy flashbang;buy molotov;buy hegrenade"
@modbender
modbender / default.conf
Created December 21, 2022 06:20
Nginx configuration to reduce TTFB
server {
resolver 1.1.1.1 1.0.0.1 valid=300s;
resolver_timeout 5s;
ssl_buffer_size 8k;
ssl_verify_client off;
client_body_timeout 12;
client_header_timeout 12;
client_max_body_size 900m;