Where is the location of homebrew installed youtube-dl configuration? [macOS] - macos

I am new to youtube-dl and programming in general so this has been a lot for me to get even this far. So homebrew is installed on my Macbook and homebrew was used to install youtube-dl and ffmpeg. I read somewhere about a configuration file located at ~/.config/youtube-dl/config on
https://github.com/ytdl-org/youtube-dl/blob/master/README.md#options
So on the user directory I opened .config (found out it was hidden) and no youtube-dl folder found let alone the config file mentioned in the link.
Why is that?
How do I make a configuration file to use?

Like written on the Guthub page:
Note that by default configuration file may not exist so you may need to create it yourself.
You can simply create the directory ~/.config/youtube-dl yourself and then use your favorite text editor, place your options in a new file and save it at ~/.config/youtube-dl/config

Related

installed texlive but am still unable to tex

The "latex" command is available, but when trying to use it on a Scientific Linux 7.2 system, I get
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!
(and "ls -R" works). What do I need to do?
I had done a yum install texlive.x86_64 .
I don't know about Scientific Linux, but in Ubuntu, the 'fmtutil.cnf" file is found in the 'texlive-base' package.
Try to look for a package that has a similar name...

Where is pip.conf in my Mac which Python was installed via Homebrew?

I installed Python by Homebrew, it was fine for a long time. After upgrading pip to the latest version, I started to get:
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
But I can not find my pip.conf under /etc or /usr/local/etc or $HOME/Library/Application Support/pip or $HOME/.config/pip, where can I find it?
If your pip version is 9.0.1, add the following code to your ~/.pip/pip.conf to avoid the warning.
[list]
format=columns
In the newer version of pip (V>10), you can directly ask your pip and it will tell you where it is looking for its configuration file(s):
pip config list -v
The above command will tell you where the pip is looking for the pip.conf file both for use and for global.
If those directories do not exist in your machine, you can simply create them and add a pip.conf inside them. Example locations on Mac:
$HOME/Library/Application Support/pip/pip.conf
$HOME/.pip/pip.conf
$HOME/.config/pip/pip.conf
For older versions of pip (V<10), you can open a python terminal and use the pip library to extract those locations.
~/.pip/pip.conf is a legacy location in macOS. Please, read the official documentation and put your settings into ~/Library/Application Support/pip/pip.conf. It works just as must to do.
To make it more clear:
For user wide:
On macOS the configuration file is:
$HOME/Library/Application Support/pip/pip.conf if the directory exists else $HOME/.config/pip/pip.conf.
For virtualenv:
On Unix and macOS the file is $VIRTUAL_ENV/pip.conf
config-file(official doc)
Just create a pip.conf file in your folder of virtualenv, and write below content in the pip.conf
[list]
format=columns
On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. if you cant't find it just create.
You must to do the follow steps (if you are in Windows like me):
Acess the folder C:\Users\
If dont exists, create in C:\Users a new folder called "pip"
After, enter in folder pip created and create a new file with name "pip.ini".
In this file add the follow lines:
[list]
format=columns
Open the terminal (cmd, cygwin or anaconda prompt) and try again typing:
(name_of_your_env) C:\your_path>conda env export > name_of_file.yaml
Acess the C:\your_path cited in the step 5 and notice that file exported called name_of_file.yaml was be created.
I hope I have helped! Bye!
This command will work:
pip list --format=columns
Check in ~ or /Users/<your_user_name> path. Remember to use ls -a to view all hidden files/directories. If .pip/pip.conf is not there just create it.

Cannot find Mercurial global configuration file on osx

I am new to Bitbucket. I am trying to setup my computer to access Bitbucket using the following instructions. On Step 5, I am told to add ssh = ssh -C to file ~/.hgrc. I can't seem to find the file. Has anyone done this step successfully? How do I go about it?
It seems you don't have Mercurial installed at all. Step 3 of Bitbucket tutorial gives detailed description how to install it from MacPorts.
Once you have Mercurial installed just create .hgrc manually and add your configuration.
If you have not this file - create it. But you, maybe, just can't see it - dotted files are hidden. Anyway read hg help config
I had a problem with this too, but managed to find the .hgrc file. First get all hidden files visible by downloading this software http://invisiblix.read-write.fr/
Initially I tried to find the .hgrc file with spotlight but nothing came up. Happened to spotlight "~/", then this "~/.config" folder appeared, so I went there and found .hgrc in the same directory. Somehow it's always there but just not appearing even when called for in terminal.

Creating .deb to install bash script program

I was wondering if the following is possible.
I have a BASH script that I want to make available for some people but I wanted them to only have to "install" the program and not messing around with terminal, so I thought a .deb would be cool.
So what would the "install" do?
Simple. I want to move the script and an icon to a folder (any folder, but I was wondering some hidden folder in Home) and then run a script that creates a launcher in the Applications menu for the first script. It seems there isn't much to it, but for what I've searched, there doesn't seem to be a lot of info...
How can I accomplish this?
By the way, I'm using Ubuntu 11.04.
Basically (install and) run dh-make to set up the debian/ directory, edit the generated files (mainly remove the many you do not need, and fill in a package description and any dependencies in debian/control), then debuild-us -uc -b.
You may also have to set up a simple Makefile for debian/rules to call; it probably only needs an install target to copy the binary to $(DESTDIR)/usr/bin.
Binaries install into /usr/bin and you should not try to override that. The way to have a menu is to add a .desktop file.
Once you have a good .deb you will need to set up a repo for distributing it. The simplest solution is probably to set up a launchpad.net account and create a personal PPA there.
It's not hard to find more information on these topics, but of course, you need to know what to look for. The canonical documentation is the Debian New Maintainer's Guide.
Found this video on youtube that explains IN FULL the process of creating a *.deb for a script or program and even mentions how to do it for a C program.
Full guide in how to build simple *.deb package
Has one bug, btw, that the author, during the making of the *.deb, didn't notice. The path in the *.desktop file for the EXEC parameter is wrong in the example.

midnight commander files location on mac

I'm trying to find mc config files on mac. I've used macports to install it.
The .mc folder in home dir doesn't affect the mc behaviour - not hotlist nor others configs.
So where is the mc config files exists, and how to find them? (is there any utility to check which file was written when I press a Save Config button?)
Try ~/.config/mc
More infos why it is like it is: http://standards.freedesktop.org/basedir-spec/latest/index.html#introduction

Resources