how to custome change tig text color on iTerm? - tig

I have installed tig, and confirmed installation successful. why in my ~/directory don't have .tigrc file?
How can I configure tig?

You could download the default configuration file to ~/.tigrc and edit it.

Related

how to create a .condarc file for Anaconda?

I am trying to set up a proxy server in Anaconda because my firewall does not allow me to run online commands such as
conda update
I see online that I should create a .condarc file that contains the proxy address. Unfortunately,
I dont know how to create that file (is it a text file?)
and where to put it?! (in which folder? in the Anaconda folder?)
Any help appreciated
Thanks!
It is a text (YAML) file that goes in the home directory, or optionally, the root of the anaconda installation.
The contents should look like
# Proxy settings: http://[username]:[password]#[server]:[port]
proxy_servers:
http: http://user:pass#corp.com:8080
https: https://user:pass#corp.com:8080
See http://conda.pydata.org/docs/config.html for more information.
There are chances that the .condarc file is hidden as was in my case. I was using Linux Mint (Sarah) and couldn't find the file though later on I found that it was hidden in the home directory and hence when I opted to show hidden files I could find it.
to create the .condarc file open Anaconda Prompt and type:
conda config
it will appear in your user's home directory

Opening my entire directories(browser folder) in winSCP?

I'm using Sublime Text 3 as my editor in winSCP. How can i open the entire directories from Sublime Text 3 in winSCP ?
You need to install the 'SFTP' package in Sublime, create a sftp-config file to connect to your server and sync a remote directory to a local directory.
Install SFTP for sublime:
https://codexns.io/products/sftp_for_sublime/install
Sync: https://www.youtube.com/watch?v=g6NqBGHFfm0
If you don't want to sync the folders you can just right click on your sftp-config file->SFTP/FTP->Download Folder.
More details about sftp-config here: https://codexns.io/products/sftp_for_sublime/settings
It seems a bug in Sublime is that if Sublime is not the highlighted app while downloading it may cause problems.
that the files and folders appear in the sidebar but i think i found a answer for my question, namely i have to stall samba on my Linux Server or to install addon (SFTP) on Sublime Text.

How to update metadata of NuGet Package using command line?

I am using NuGet.Exe version 2.8.2 to create nuget package. After Create Package, Open with NuGet Package Explorer and I saw there is some default code inside package like in icon URL text box
http:// icon_url_here_or_delete_this_line/
To see such data follow steps as foolows
Open command Line Box (cmc.exe).
Go to folder where NuGet.exe is present.
Run Command "nuget spec abc.dll" (abc.dll must present inside folder)
once abc.dll.spec file create the run " nuget pack abc.dll.spec "
done with creating package with some warnings about that default code in metadata.
Now open that package with Nuget Package explorer you can see that metadata with some default code like I mention above.
I also refer document present in this link provided by nuget.Org.
So the question is that how to set my customize information to this metadata using command line?
NOTE :-
Please do not suggest to do it using Nuget Package Explorer because I know it I just want to use command line to do so.
I don't think NuGet.exe supports it. You can manually edit the .nuspec file in notepad, and replace the metadata like project URL; or do string replacement of the .nuspec file using powershell commands.

how to revert back to default settings of make menuconfig

I am using ridgerun sdk..I made some settings in the config file through the command "make menuconfig"(but now i dont remember what settings i made). Now I want to cancel those settings in the config file and want the default settings. But the command "make mrproper" is not supported by Ridgerun sdk.Please suggest some solution for this.
The previous config file is renamed as .config.old Just copy it over the newer one
cp .config.old .config
Assuming RidgeRun SDK uses some derivative of the Linux kernel's kbuild then deleting (make sure to back it up first, of course!) the .config file in the build system's root folder will do the trick.

Where does Eclipse look for eclipse.ini under Linux

I've just been setting up a Ubuntu workstation and wanted to add some settings to eclipse.ini. When I searched for the file I found:
/etc/eclipse.ini
/usr/lib/eclipse.ini
My questions are:
Does Eclipse actually use both files?
If so, in what order does it read them?
How does it merge them?
Both of the files I found are system wide, is there a location in my home directory I could put one that would effect only my instances?
Here's how to determine which eclipse.ini file you should use (joomla.org):
If you downloaded Eclipse IDE manually from internet the "eclipse.ini" file is just inside the unpacked folder
If you installed Eclipse via terminal or software center the location of the file is "/etc/eclipse.ini"
In some Linux versions the file can be found at "/usr/share/eclipse/eclipse.ini". Do not use this file if you found a config file at "/etc/eclipse.ini".
To be sure where your Eclipse folder is, check $ECLIPSE_HOME, and if not specified (these directions at least work for Juno):
Open Eclipse as you normally do.
Click Help -> About Eclipse SDK
Click Installation Details
Go to the Configuration tab
Find "eclipse.home.location=file:PATH". PATH is where eclipse is installed.
sources:
http://docs.joomla.org/Configuring_Eclipse_IDE_for_PHP_development/Linux:
There is only one file.
lrwxrwxrwx 1 root root 16 Aug 8 2012 /usr/lib/eclipse/eclipse.ini -> /etc/eclipse.ini
You probably have already found this out, chances are when you installed Eclipse the installation created (or you did manually) a file /usr/bin/eclipse which if you check it probably looks like the following:
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
especially if you followed instructions similar to the ones like these on If-not-true-then-false
On the other hand if you have installed from a package, I suspect you will find that eclipse ends up in /usr/bin, most likely a symbolic link to /usr/lib/eclipse/eclipse (or at least I found it on my Fedora system after using yum to install eclipse).
I have Ubuntu 18 and eclipse installation is squashed in a file
/var/lib/snapd/snaps/eclipse_40.snap
which is mount on /snap/eclipse/40 as read only. Just run
mount | grep eclipse*.snap
This eclipse.ini file is really read only, that means, you cannot modify it, even with sudo. However, I also have a eclipse.ini.ignored file in HOME/.eclipse/some number/configuration. This is being by default ignored, but you can change the "launcher.ini" in the eclipse launcher command.
According to https://wiki.eclipse.org/Eclipse.ini
Eclipse startup is controlled by the options in
$ECLIPSE_HOME/eclipse.ini. If $ECLIPSE_HOME is not defined, the
default eclipse.ini in your Eclipse installation directory (or in the
case of Mac, the Eclipse.app/Contents/MacOS directory) is used.
The certain way to make sure is to run strace on eclipse. In the output you'll see where is eclipse actually trying to pull the file from.

Resources