How to use git namespace to hide branches

Background I'm working with a large team using git for version control. The normal flow is: People selecting a ticket from the "backlog queue". Working on the issue via a local branch (i.e. git checkout -b my_feature_branch). Making several commit...
more »

2017-10-20 19:10 (2) Answers

Find folder without specific subfolder

I am looking for a way to go through a set of folders in a unix terminal and list the folders that don't have a certain subfolder. So, say I have 5 folders, each containing subfolders with numbers 1-5, 2 folders don't have the subfolder number 2 and...
more »

2017-10-18 10:10 (0) Answers

Run app and launch browser from command line

I want to start my app from the command line and automatically start a browser and show a default page (as it is run from IDE). I tried with this command: dotnet run --launch-profile "MyApp" In My app launchSettings.json I have defined: "MyApp": ...
more »

2017-10-17 19:10 (1) Answers

command find with -or and exec malfunctioning

If I execute find . -name "*FOO*" -or -name "*foo*" It works perfectly, returning 106 files with the upper-case FOO and 4 files with the lower-case foo. If I add the exec ls syntax like this find . -name "*FOO*" -or -name "*foo*" -exec ls -ld ...
more »

2017-07-18 21:07 (1) Answers

Merge pdfs in a grid

I have hundreds of pdf files representing cards for a card game. They are standard 2.5"x3.5" files build using LaTeX. In order to print them I want to concatenate them together into a single pdf with 9 cards per page (the most that can fit). Currentl...
more »

2017-05-14 22:05 (0) Answers

Empty dump() output in Symfony CLI

I'm building a simple Symfony-shell script to test my Symfony app on interactive mode: # bin/app_dev_cli.php require __DIR__.'/../app/autoload.php'; $kernel = new AppKernel('dev', true); // Initialize bundles and container $kernel->boot(); // ...
more »

2017-05-10 17:05 (1) Answers

Using variable arg names with argparse

I have an upstream system that invokes my program with varying arg names. Example: foo --xyz1 10 --xyz2 25 --xyz3 31 I would like the result of argparsing to be a xyz = [10, 25, 31]. The names of my args have a common prefix, but unfortunately ha...
more »

2017-02-19 18:02 (2) Answers

Revert all files with a specified name

Hi i want to revert all changes to the files with a specific filename in a local repository. In this case AssemblyInfo.vb, i'm using the TortoiseSVN cli. I have the following directory structure Root Project 1 File1.txt My Project AssemblyIn...
more »

2017-01-30 15:01 (2) Answers

How do I test if a file is writable (CLI)

I am taking my first steps in Dart today, and the first thing I am not sure about how to proceed is how to test whether a file that is passed as an argument to a CLI tool I'm writing is writable. So the idea is that I have a tool that accepts an inp...
more »

2016-12-23 20:12 (1) Answers

# vs $ when documenting code in articles

I have looked and haven't found the answer to the question why some websites use # before each line of code and others use $. I am specifically referring to say, the process of compiling a linux kernel using the following page: http://www.thegeekstuf...
more »

2016-12-08 16:12 (1) Answers

Ruby script start from a specific line or method

Let's say i have a script: !#usr/bin/ruby # step 1 puts "That's first" # some code #step 2 puts "That's second" # some code Is there a way to pass ARGV to script that will start execution from a specific line (or step, or class, or whatever)? Fo...
more »

2016-12-03 21:12 (3) Answers

How to automatically pull the version number?

I'm writing a Symfony Console PHP application which takes a version number in the constructor. $app = new Application('myapp', '1.0'); I've already found that it's easy to forget to bump the version number when making a new git tag release. How ca...
more »

2016-10-25 05:10 (1) Answers

C#: WPF and command line in same application

I have an working WPF application which I wanted to eqip with some console functionalities to enable batch processing. To do so, I deleted StartupUri="MainWindow.xaml" from my App.xaml, and added instead a programatic call based on command line argu...
more »

2016-10-21 09:10 (2) Answers

Can PHP command a third party CLI?

I want to extend the automation of the PacketETH program CLI using PHP It can be done in GUI however this still means a user has to do it Is it possible to have the packetETH run and a PHP deliver instructions, and then receive results back for mani...
more »

2016-10-10 09:10 (1) Answers

How can I document click commands using Sphinx?

(Note: this is being asked to share knowledge, not to look for help) click is a popular Python library for developing CLI applications with. sphinx is a popular library for documenting Python packages with. One problem that some have faced is integr...
more »

2016-09-08 15:09 (1) Answers

Convert Maple online examples into raw text entry?

Maple's online help pages render all of the inputs (and outputs) as fancy math (MathJax). I guess the assumption is that you're using the visual IDE. However, I only have access to a terminal with ASCII entry (e.g., via SSH). How can I can convert t...
more »

2016-08-16 15:08 (1) Answers