close
Skip to main content

New answers tagged

Score of 3
Accepted

In Python under Unix, ask for interactive terminal input but avoid stdout

In Python (Linux version) you can open tty like so: tty = open("/dev/tty", "r") # do something ... tty.close() The Pythonic way would be: with open("/dev/tty", "r&...
Score of -1

How do I include --no-pager in a Git alias?

The problem is where --no-pager has to go. It's a global Git option, not a log option — it only works if it appears before the subcommand, like: git --no-pager log ... But a normal Git alias (hist = ...
Score of 0

Why do I have to keep using `source ~/.profile` to get settings in place?

The main problem, as I understand it: "don't have to call $ source ~/.profile every time". The simplest way just set an option in terminal program to force Bash to be an "interactive ...
Score of 0

(python 3) Auto-Conversion from .h264 to .mp4

This Python code convert .h264 video and .mp4a audio to mp4 file without MP4Box nor FFMPEG. import struct import sys from typing import Dict, List, Optional, Tuple class TrackParser: def __init__(...
Score of 0

How to setup Windows Subsystem Linux (WSL 2) with VSCodium on Windows 10

I was able to fix this by editing 'c:/users/{name}/appdata/local/programs/vscodium insiders/bin/codium-insiders' change lines 50-55 from this: if [ -n "$WSL_EXT_WLOC" ]; then # ...
Score of 0

Interrupt command (ctrl+C) no longer working in VS Code 1.78 terminal on macOS

It now alllows you to copy using Ctrl + C they moved the termination to Ctrl + W

Top 50 recent answers are included