Skip to content

Instantly share code, notes, and snippets.

@DiesDasJenes
Last active January 19, 2023 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DiesDasJenes/bfb178b0e1eaf0deaf8988d905003913 to your computer and use it in GitHub Desktop.
Save DiesDasJenes/bfb178b0e1eaf0deaf8988d905003913 to your computer and use it in GitHub Desktop.
Today I learned...

Header

  • here you can write everything: β€” marks the actual start of the til

β€”

πŸ“… 19.01.2023 Git: Git hanging on POST git-receive-pack

What to do after you executed β€œgit push” but the command is hanging in the air.

Solution: Increase the buffer size for the http call.

git config http.postBuffer 5242

β€”

πŸ“… 8.11.2022 Docker: Change Entrypoint of container through parameter

What if you have a container that you just want to take a look at but you can’t rebuild? You execute the container with docker run and add the following parameter

docker run --entrypoint bash -ti image-name

β€”

πŸ“… 4.11.2022 Docker: Keep container alive

Keep a docker container alive by adding this

ENTRYPOINT ["tail", "-f", "/dev/null"]

β€”

πŸ“… 1.8.2022 Shell: Detach function from shell

I had this situation in which a function was blocking the ongoing process. The solution was to send the functions stdout to /dev/null

function() {
doSomething()
}

main() {
function > /dev/null &
}

main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment