Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

interactive

Is there a way to squash a number of commits non-interactively?

November 29, 2022 by Tarik

Make sure your working tree is clean, then git reset –soft HEAD~3 git commit -m ‘new commit message’

Categories git Tags git, interactive, rebase, squash Leave a comment

Passing arguments to an interactive program non-interactively

November 16, 2022 by Tarik

Many ways pipe your input echo “yes no maybe” | your_program redirect from a file your_program < answers.txt use a here document (this can be very readable) your_program << ANSWERS yes no maybe ANSWERS use a here string your_program <<< $’yes\nno\nmaybe\n’

Categories bash Tags bash, interactive, non-interactive Leave a comment

Read password from stdin [duplicate]

October 21, 2022 by Tarik

>>> import getpass >>> pw = getpass.getpass()

Categories python Tags interactive, passwords, prompt, python Leave a comment

How can I start an interactive console for Perl?

September 30, 2022 by Tarik

You can use the perl debugger on a trivial program, like so: perl -de1 Alternatively there’s Alexis Sukrieh‘s Perl Console application, but I haven’t used it.

Categories perl Tags console, interactive, perl, read-eval-print-loop Leave a comment

Interactive shell using Docker Compose

September 13, 2022 by Tarik

You need to include the following lines in your docker-compose.yml: version: “3” services: app: image: app:1.2.3 stdin_open: true # docker run -i tty: true # docker run -t The first corresponds to -i in docker run and the second to -t.

Categories shell Tags docker, docker-compose, interactive, shell Leave a comment
Newer posts
← Previous Page1 … Page3 Page4

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa