How to add a new config to putty? - putty

I want to add a new config logfile_size to putty beacuse I find some logs are too big to openwhen I use putty. It will create a new log_file when the old log were bigger than the config.
I find that all configs are defind in the putty.h,CONFIG_OPTIONS.So I add a new config to it like this
X(INT, NONE, logfilesize)
and then I use conf_set_int(), conf_get_int()(these funtion are given by putty to get the config) to using this config,but it has no effect.
So has I miss some important thing? How to add a new config to putty?

Related

sentry onpremise how to set domain name?

We have been using old sentry (like 6.*)
We are trying to use the latest onpremise sentry with docker
We don't care about old data, starting fresh is fine.
When I go to the setting page for client-dsn, it has our server's domain name set.
Where did the docker pick this up? and how can I change it?
As far as I have seen th FQDN is taken automatically by Sentry. When doing the first login you are able to set the Root name and there you can change it.
Edit-21.07.2020: As I currently need to do some digging i came across the function:
sentry config set system.url-prefix
or you can set it inside these files:
/etc/sentry/sentry.conf.py
/etc/sentry/config.yml
The below command is deprecated now,
sentry config set system.url-prefix
The better option to edit vim ~/.sentry/config.yml.
Add the below line at the end of vim ~/.sentry/config.yml & restart the sentry.
system.url-prefix: 'https://sentry.example.com'

Spring cloud config server fetching properties from native location is not working

Hi Please see the project structure of my config file
Include these lines in the yml file
spring.profiles.active=native
spring.cloud.config.server.native.searchlocations =classpath:config/{application}
Here I can able to fetch properties directly under service name ,but don't know how to fetch data from folders like australia,canada .Please help
I solved this issue by providing another search location path in the server . see the below changes
spring.cloud.config.server.native.searchlocations =classpath:config/{application},classpath:config/{application}/{label}
And from the client side I have to make sure that I am passing correct label.
spring.cloud.config.label=australia

Setting Projects to Private by Default

I have my SQ server running in Kubernetes (via Tectonic) and all is going well. We need to tighten the security of our SQ installation, so we have LDAP up and working. We are trying to get all of the projects to be Private by default (which we can do Via the GUI for each project).
However, trying to flip the switch in the GUI to make all new projects Private works, until you refresh the page, then it reverts back to Public.
I have been searching for a way to set this up via the sonar.properties file or sonar-project.properties file (first if the preferred). The server.properties file we use is encrypted as a secret (because the LDAP settings exposes a service account password) and I would like to keep settings there.
I have combed through documentation, posts, discussions and all that, but have not been able to find out what the value=key combination is.
Has anyone seen what this is or if we can even accomplish that? Is it a setting stored in the database? I'm kind of at a loss on this one.
Thanks!
In SonarQube 7.x you can find the public/private setting when you browse to Administration - Projects - Management. This only works for new projects. For existing projects you can use the "Edit the permissions" option on the same page and switch between public and private.
You can also use the web_api to achieve the same results. You can find the documentation when you add "/web_api/api/projects" after the sonarqube URL:
Example of the POST request body: project=MyProject&visibility=private

How to add a profile to JHipster

So JHipster comes by default with the 'dev' and 'prod' profiles. I need to add another profile called 'hive' because I want to try and connect that profile to a HIVE database .. through an URL Connection String like this one:
"jdbc:hive2://localhost:10000/default"
I am a begginer with JHipster so I really don't know where to find the documentation if there is any. And so far I haven't seen any post about creating a new profile. I don't know what files to add, what things to change in order to use that profile rather than the 'dev' or 'prod' one, etc. I can see I have to create a new file called src/main/resources/config/application-hive.yml and that a lot of the code will go there ... but still I don't where is all the information about how to set all of those properties.
Thank you very much.
JHipster can't support Hive because Liquibase does not support it and I don't think JPA/Hibernate supports it either.

Dynamically updating config data codeigniter

I have created my custom config file to store information about site such as if it is online or offline like-vice.
For that I have created new file in config folder and stores default values in global $config[] array with my own index.
I want to update these config data dynamically with admins control eg. he can select to put site in offline mode.
For that I have used function
$this->config->set_item('config_array_index','value_to_set');
but, I don't know why it is not working for me ?
I am not able to see any update in my config file. Also I am autoloading my config file.
Am I missing something?
Setting a config item only applies to the current session - it does not overwrite your actually codeigniter files.
If you want to permanetly take a site offline, your'll need some sort of persistant storage, such as a value in a database that is checked/updated as needed
you can create an empty config file, within your config directory , and then append your data to it using a functionality like fwrite ( you can check for some other CI function to use ).
and add it to your autoload file .

Resources