Change default path for Atom Key Bindings keymap.cson file - configuration

I configured all my key bindings for Atom Editor in keymap.cson which is located in C:\Users\Username\.atom\keymap.cson but I need to syncronise it with Dropbox or Google Drive folder to future headakes if I reinstall OS or editor.
So, how to configure Atom to read Keymap.cson file from different location?

You could use a package like https://atom.io/packages/sync-settings for syncing settings across multiple computers. This uses a Gist on GitHub to store your settings.
Also check out this answer, which goes in the same direction, but also talks about syncing installed packages. There are several options listed in there: https://stackoverflow.com/a/30972738/1228454

Related

How do I modify the defaul graphdb.home directory?

I have installed GraphDB Free v9.3 in LinuxMint 19.3.
The workbench is running fine though I haven't created any repositories yet. This is because I have noticed that although the application is installed at /opt/graphdb-free, the data, conf and log files are in a hidden folder below my home folder: /home/ianpiper/.graphdb/conf (etc).
I would prefer to store these folders on a separate volume, mounted at /mnt/bigdata. In the documentation it suggests that I can set graphdb.home using the graphdb.properties file (though I don't seem to have such a file in my installation) or in the startup script. I think this script might be /opt/graphdb-free/app/bin/setvars.in.sh, and that I could use this to change
-Dgraphdb.home=""
to
-Dgraphdb.home="/mnt/bigdata"
Could a knowledgeable person advise as to whether my understanding is correct, and if so what the best way is to change the location of graphdb.home?
Thanks,
Ian.

Where does chrome store unpacked extensions local storage files

I'm developing an extension for Chrome which uses the local storage API. I would like to manually modify some of the data that has been stored by my extension in order to do some testing. I've determined that my installed (packaged) extensions use sqlite 3 files located here:
C:\Users\golear\AppData\Local\Google\Chrome\User Data\Default\Local Storage
but I can't find similar files for my unpacked extension. I've used the extension key to search my entire drive as I see that the packaged app use their keys in the names of their local storage sqlite files. I did find 3 folder names using my extension's key but none of them appear to have the file I am looking for.
For Mac, it's in Library/Application Support/Google/Chrome/Default/Local Extension Settings/<extension id>. I'm guessing it should be in similar folder for Windows.
This is also a good extension for viewing what you're looking for: https://chrome.google.com/webstore/detail/storage-area-explorer/ocfjjjjhkpapocigimmppepjgfdecjkb

Syncing project settings and FTP info in PHPStorm with VCS?

I work on multiple computers with different operating systems. One of the IDEs I use a lot is PHPStorm and I am looking for a nice solution to sync all of the files and all of the settings for the project. I am assuming that the project specific settings are in the .idea folder however the ftp settings are stored elsewhere.
What is the best way to sync ftp settings between multiple computers? Can this be done easily via VCS or is there another better option?
File | Export Settings... and then File | Import Settings... for manual sync.
The ordinary file sync (via any software) will do as long as it's the same OS/platform and all computers have similar folder structure (in terms of used tools, projects locations etc) -- that's mainly for settings that include references to 3rd party tools or list of recent projects etc. General settings (non path related) like "Live Templates" or "Color scheme" can easily be synced.
IntelliJ Configuration Server Plugin is definitely worth checking out -- http://plugins.jetbrains.com/plugin/4560?pr=phpStorm
As for project settings -- they are VCS-safe. Excluding workspace.xml, which is intended for use on that computer/user. https://intellij-support.jetbrains.com/entries/23393067-How-to-manage-projects-under-Version-Control-Systems

How to locate Google Chrome extension dir

Hi i'm installing extensions by programmatically by a little c# program.
I just did see the software doesn't work on my friend.
i did see his chrome directory is not at %appdata% folder its at program files?
so how to find the real latest version of chrome directory for install plugins?
Google says
Windows:
chrome_root\Application\chrome_version\Extensions\
Example: c:\Users\Me\AppData\Local\Google\Chrome\Application\6.0.422.0\Extensions\
but how to find the chrome_root?
Visit chrome://version.
Look at Profile Path.
Extensions can be found in the Extensions subdirectory of the path you found at the previous step.
You can also load the extension using the --load-extension flag:
chrome.exe --load-extension=path/to/extension
The recommended mechanism for installing extensions programmatically is external extensions. It has the advantage of not depending on Chrome paths that might change, instead you can use a stable registry key or JSON file.

Add external extension by using registry

I use Windows 7(64bit) and repeat steps in Google Document.
This is what I added in register.
In HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\nbfjanngloflombfddlmkgnambnfhgjc
path="C:\Extension.crx"
version="2.1"
But extension isn't install.
Before testing .crx file distribution,
I installed and uninstalled this extension with unpacked files many times by UI(chrome://extensions) for development and tested setting policy by using register. (But I removed all of them now.)
Does it cause any problem?
But when I tested same thing in another clean PC(Windows XP 32bit) nothing is changed, too.
I already checked some common mistakes in Google Document several times, but I can't find any mistakes.
- Not specifying the same id/version as the one listed in the .crx
- Key created in the wrong location in the registry
- Registry entry points to the wrong path to the .crx file (or path specified but no filename)
- Permissions problems on a network share
Are there other common mistakes I should check to install external extension?
According to this page - https://developer.chrome.com/extensions/external_extensions -
it is no longer possible to use the registry method to install locally-hosted .crx files.
in fact, the only allowed extension are those from Google's Extension gallery.
See a quote below from Google's policy page:
An extension that's installed automatically is known as an external extension. Google Chrome supports two ways of installing external extensions:
-Using a preferences JSON file (Mac OS X and Linux only)
-Using the Windows registry (Windows only)
Both ways support installing an extension hosted at an update_URL. In the Windows registry, the update_URL must point to the Chrome Web Store where the extension is hosted.
The extension-ID cannot be chosen at random.
I've installed your .crx file in Chromium 18 (Linux), and Chrome 18 (Windows 7 in VirtualBox), and the correct extension-ID is: lhmigopickaaleaaelbppeabnbdgcdhe
The version number has to match. In the manifest.json file, in the extension, I see "version": "1.0". So, the version entry in the registry has to be 1.0.
I was not able to install the extension via the registry using the steps from the Documentation. I've found two right ways to install the extension through the registry. Create a .reg file, and paste the text below to install the extension:
set_page_color_chrome-extension.reg (based on this file, md5: 10a1b95c249a2481bc88d3d1aead0e33).
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions\lhmigopickaaleaaelbppeabnbdgcdhe]
"version"="1.0"
"path"="C:\\set_page_color.crx"
Replace HKEY_LOCAL_MACHINE with HKEY_CURRENT_USER if you're running in permission trouble, or if you want to install the extension only for the current user.

Categories