I want to deploy capistrano with perforce
i make following changes in cap file
set :scm, :perforce
set :p4port, "xxxx:6666"
set :p4client, "xxx"
set :p4user, "xxx"
set :p4passwd, "xxx"
set :p4client_root, "xxx"
set :p4, "/bin/p4"
set :repository, "xxx/..."
# Perforce specifics
set :deploy_to, "/xxx"
and from cap file commented the following lines
#require "capistrano/scm/git"
#install_plugin Capistrano::SCM::Git
can i get a perforce plugin?
Related
When I install puppeteer, I am getting this error.
ERROR: Failed to set up Chromium r901912! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
Error: Download failed: server returned code 403. URL:
https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/901912/chrome-linux.zip
So I download the zip file and put it to local artifactory: https://artifactory.company.com/dept/team/project/chrome-linux.zip.
How should I set PUPPETEER_DOWNLOAD_HOST? If I set it like this, does it work?
export PUPPETEER_DOWNLOAD_HOST=https://artifactory.company.com/dept/team/project
If I renamed the zip file name to chromium-linux-x64-r901912.zip, how should I set PUPPETEER_DOWNLOAD_HOST then?
Actually I don't understand https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#environment-variables.
The file must be put here:
https://artifactory.company.com/dept/team/project/chromium-browser-snapshots/Linux_x64/901912/chrome-linux.zip
The file name must be chrome-linux.zip.
export PUPPETEER_DOWNLOAD_HOST=https://artifactory.company.com/dept/team/project
export PUPPETEER_CHROMIUM_REVISION=901912
I have a use case where I want to set a systemd-network configuration files in a user defined path.
By default the path is /etc/systemd/network/example.network. Is there any possibility to keep my example.network config file in a different folder for ex:/home/user/network/example.network and to make the systemd to look for .network files in this custom path.
I am using Local vimrc for project specific vim settings. I have the .lvimrc file in my project directory with specific settings as shown below and it works.
set tabstop=2
set shiftwidth=2
set softtabstop=2
But, I am unable to override the clang-format settings, for e.g when I run :ClangFormat, vim still uses the settings present in .vimrc file in my home folder
I have the following clang-format setting inside the .lvimrc file.
let g:clang_format#style_options = {
\ "Language": "Cpp",
\ "IndentWidth": 2,
}
Local vimrcs should define local options with setlocal, and let b:option_name = value.
Unfortunately not all plugins understand that some users can work on several projects simultaneously. In that case, you need your local vimrc plugin to always load local vimrc files every time you enter a buffer (even if it was already opened). And then you can protect the buffer local definitions to be (re)set again.
I can not speak for the plugin you're using. Mine reloads vimrc_local.vim files everytime we BufEnter a buffer. As a consequence the local vimrc file looks like
" -- Global Overridden zone for project unaware plugins
let g:some_global_option_overwritten_every_time = "forced value"
" -- Buffer local zone for project-aware plugins
if exists('b:project_foo_bar_lvimrc_loaded') && b:project_foo_bar_lvimrc_loaded != 0
finish
endif
let b:project_foo_bar_lvimrc_loaded = 1
setlocal whatever=value
let b:some_option_for_a_smart_plugin = "specific value"
" -- and we can also add a global zone for stuff that we can load once
" like functions, but it'll be smarter to use autoload plugins
BTW, reading the plugin documentation, it looks like it also listen BufEnter, and unlike my plugin it seems to automatically set guards. One other possibility is that your project is in a blacklisted directory tree. You'll have to check that also.
I have a configuration option called CONFIG_X86_SMAP that I would like to disable in my kernel image. The problem is that I can't identify where this option is being set. I can confirm that it isn't set in my defconfig file and also it's not set by any configuration fragment ".cfg".
Even when I try to disable it using a .cfg as follows:
# CONFIG_FOO is not set
I still find it enabled in my final generated .config file. I cant get to understand how this option is being enabled.
Note: There is no dependency on this configuration option from any other driver/feature.
You can modify your defconfig by following these steps.
Identify in which tasks .config is generated.(In most cases there would be do_configure or do_defconfig task that will create your .config)
Add following lines in your recipe(linux-kernel.bb file).This will append configurations to your defconfig file.
do_confiure_prepend() {
cat >> <path_to_your_defconfig> << END
CONFIG_X=y
CONFIG_Y is not set
END
}
I'm trying to compile a Maven project that has a config.properties file. In the file, I have a set of environment variables that I have to set before compile.
In the config.properties file the variables are called like this:
${sys:rdfstore.host}:${sys:rdfstore.port}/openrdf-sesame/repositories/iserve/rdf-graphs/service
How do I have to set the variable rdfstore.host, and to what value should I set it to?
I have tried to solve this with:
export rdfstore.host="localhost"
However, with this I obtain a msj that is a invalid identifier, because
it has a point "." How can I solve this problem?
You should be confusing environment variables and the set of sytem properties:
The properties exported from your system as you did with the export command are called environment variables and should not contain dots in the name.
Those properties are then refered to using ${env.XXX}, meaning in your case you should change the variable name to:
export RDFSTORE_HOST="localhost"
It can then be referred to as below:
`${env.RDFSTORE_HOST}`
System variables are those introcued in command line when invoking a maven phase, those ones can host dots in their names:
mvn -Drdfstore.host="localhost"
They can be referred to as follows:
${rdfstore.host}
You can find more informations in the maven properties manual.