Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
That is a very strange situation. You shouldn't have been able to do what you describe.Simulating what you describe in Xcode 8.0, I get aThe remote repository could no be found - make sure a valid repository exists at the specified location and try again.message, because the projects are different.Maybe something else ...
This is my problem and i tried to look solution, didn't find anything related to me.created new project 1 —> and pushed to github.com (this project is dummy has no code) created new project 2 —> wrote code and tried pushing to github.com with remote link to project 1 it gave me an error stating to 1st use pull the requ...
How to revert xcode pull request?
My problem was that the crontab did not have a full environment. I made the script it was pointing to source my.bashrc.@reboot /home/user/www/example.com/bin/server./serverdoes. /home/user/.bashrcto get a working environment.ShareFollowansweredApr 11, 2016 at 19:53chovychovy73.9k5555 gold badges237237 silver badges3093...
I'm using@reboot ~/www/example.com/bin/serverin my user's crontab...but when I reboot the server, the web server (this script) does not come up. (script works fine from command line).My guess is the/home/userdirectory has not been mounted yet...does anyone know if its possible to get a script to run out of a home direc...
crontab @reboot does not execute bash script when server is rebooted
RewriteEngine On RewriteRule ^home$ /home.php [L]
I have been exploring this issue for the first time and I am struggling big time.I have a file called home.php and wanted the url localhost/home to point to this.I have the following:RewriteEngine On RewriteRule ^/home /home.php [L]Can anyone figure out what I am doing wrong?
htaccess problem
There is no cast in your source code, but in the bytecode resulting from compilation there is. In the bytecode, the generic types are erased. The erasure forPis its first bound,ComponentContainer. So the bytecode is (almost) equivalent to the bytecode of this:public static void addComponentAligned(ComponentContainer pa...
The following code raises a "Unchecked / unconfirmed cast" critical violation using Sonar + FindBugs:1 public static <P extends ComponentContainer & AlignmentHandler> void addComponentAligned(P parent, Component child, Alignment alignment) { 2 parent.addComponent(child); 3 parent.setComponentAlignment(...
Unchecked / unconfirmed cast using generics multiple bounds
Try instead thescp syntax, to make sure your~/.ssh/configfile is used:git remote set-url origin github:<username>/<repo>Then try and push again.Git itself uses an OpenSSH version (at least the one packages withGit for Windows)> ssh -V OpenSSH_7.5p1, OpenSSL 1.0.2k 26 Jan 2017As explained in "Why doesn't the ssh comman...
As I'm learning git, I have set up a private repository onGitHub. I have created ssh key and store it to my GitHub account and edited .ssh/config file on my local Linux machine:## github Host github.com User git HostName github.com IdentityFile ~/.ssh/github.keyI can successfully connect...
Cannot push to my github private repository
The issue was eventually in the deployment YAML.If you encounter a similar issue, check your resources section and verify it has to correct syntax which can be found here:https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/In my case, the issue was in the memory value:Working example (N...
While deploying a new deployment to our GKE cluster, the pod is created but is failing with the following error:Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:319: gettin...
Kubernetes deploy failed with "Failed create pod sandbox" in GKE
I think it is fine,kubectl rollout status deployments/test-app -n testcan be used to verify the rollout deployment as well.As an additional step, you can run,kubectl rollout history deployments/test-app -n testas well.if you need further clarity,kubectl get deployments -o wideand check theREADYandIMAGEfields.
I tried to automate the rolling update when the configmap changes are made. But, I am confused about how can I verify if the rolling update is successful or not. I found out the commandkubectl rollout status deployment test-app -n testBut I guess this is used when we are performing the rollback rather than for rolling ...
How to verify the rolling update?
Both CORE and TASKS nodes run TaskTrackers but only CORE nodes run DataNodes so, yes, you need at least one CORE node.So you could run spot core nodes?./elastic-mapreduce --create --stream \ ... --instance-group master --instance-type m1.small --instance-count 1 \ --instance-group core --instance-type m1.small --inst...
When I create a streaming job with Amazon Elastic MapReduce (Amazon EMR), using the Ruby command line interface, how can I specify to useonlyEC2 spot instances (except for master)? The command below is working, but it "forces" me to use at lease 1 core instance..../elastic-mapreduce --create --stream \ --name ...
How to configure an Amazon EMR streaming job to use EC2 spot instances (Ruby CLI)?
Since SonarQube 5.4 the only Differential Period available for Quality Gate conditions is the Leak Period (see5.4 Upgrade Notes).The Leak Period can be customized at a project level (seeDifferential Views Settings). It currently defaults tosince_previous_versionbut you are free to set it toprevious_analysis(amongst oth...
We want to upgrade our SonarQube Server from the 5.0 version to the current 5.4. We imported our Quality Profiles, and had to set the Quality Gates manually (we found no way to do that automatically).Now I have the problem, that i cant use the Value Δ since previous analysis , only "Value" and "Leak". We have to use t...
Quality Gate periods (SonarQube 5.4)
There is no particular layout imposed on Go projects on github, save that it would be nice to make it go gettable by having a main package with some go files at the top level. See the instructions here, but bear in mind it starts by talking about workspaces, not apps if you scroll up.https://golang.org/doc/code.html#Co...
I'm just writing some project that is separated into 3 parts: API written in Golang, mongoDB and android client. And as above I thought it would be good to create directives. But when it's not good practice for golang github projects: for structure like this:MyProject ├── API │   ├── scripts │   └── src │      └── som...
Github project structure
+50I am unable to duplicate your problem locally. If I try to expose an encfs filesystem as a Docker volume, I get an error trying to start the container:FATA[0003] Error response from daemon: Cannot start container <cid>: setup mount namespace stat /visible: permission deniedSo it's possible you have something differ...
I'm trying to provide my docker container a volume of encrypted file system for internal use. The idea is that the container will write to the volume as usual, but in fact the host will be encrypting the data before writing it to the filesystem.I'm trying to use EncFS - it works well on the host, e.g:encfs /encrypted /...
Can't expose a fuse based volume to a Docker container
We could make Sonarqube and Xamarin work with the following lines. Replace{token}with your project's token.cd MyProject.sln mono /Users/jenkins/Documents/sonar-scanner-msbuild-4.4.2.1543-net46/SonarScanner.MSBuild.exe begin /k:"myProject" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="{token}" msbuild /t...
I've an OSX build server which I would like to analyse my Xamarin project.The build server has Jenkins and Xamarin Studio installed.I'm running SonarQube in a Docker container.Can somebody help me with this, because the analysis does not detect .cs files. (And I have the C# plugin installed on SonarQube)
SonarQube Xamarin analysis on OSX
In Rails you can cache pretty much everything.You can cache partials or queries. And you can expire them manually too.For examplecache('categorylist') do render partial: 'such' endAnd in thepost.rbmodel, after each create of post, reset this and force it to evaluate on next runafter_create { Rails.cache.delete...
My current homepage displays all available categories and all of the number of posts each category has. This of course is having a performance hit on the website and i was just wondering if this could be cached at all?I don't mind if the cache is a little out of date and if the number of posts isn't 100% accurate at ev...
Rails cache ActiveRecord result
I am using the same file structure as yours but have not considered them in my .htaccess file and it works. My .htaccess file looks like thisRewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA...
For example, I've created next structureapplication js css systemStandart.htaccessdeny access to any files fromjsorcssfolders.RewriteEngine on RewriteCond $1 !^(index\.php|robots\.txt|img|styles|js) RewriteRule ^(.*)$ /index.php?/$1 [L]How would you advise to organize site structure?
How to organize site with CodeIgniter?
It will Show code Sign in error when you compile your application. don't worry if you deleted all things you can create again.
I want to know If all provisioning profiles and certificates are deleted from developer account then what will be happened? Will the apps affected or not?Please help me to understand this topic.
Delete all provisioning profiles and certificates from developer account
UsingARGvalue ofArgNamewith defaultSHELLset toPowerShellcan be done by referring to$env:ArgName.Just remember tounderstand how ARG and FROM interact:AnARGdeclared before aFROMisoutside of a build stage, so itcan’tbe used in any instruction after aFROM. To use the default value of anARGdeclared before the firstFROMuse a...
I have spent quite a lot of time to get to the bottom of this. What I am trying to achieve is to pass a connection string to dockerfile as a build argument from docker-compose. The below is a very simple snippet which repoduces the problem. The output ofWrite-Host ${SOMEARG}is always null.Having the below dockerfile:FR...
Dockerfile ARG always null
As you have allocated an array you have to use operator delete[] delete []foo; That it would be more clear you can rewrite the code snippet the following way typedef int T[4]; T *foo = new T[100]; delete []foo;
How do I delete this allocated pointer? int (*foo)[4] = new int[100][4]; Is it just : delete[] foo;
How to delete 2d array?
SeeSuppress warning messages using mysql from within Terminal, but password written in bash scriptfor details on that question. Basically: don't provide the password via command line but via settings.
I've created a cronjob using cPanel.Every a certain period of time it runs this php file that generates a backup:<?php include $_SERVER['DOCUMENT_ROOT'].'conectar.php'; $filename='backup_cursos_'.date('d-M-y__H:i:s').'.sql'; $result=exec('mysqldump '.DATABASE.' --password='.PASS.' --user='.USER.' --single-transactio...
How to run cron in a secure way? (getting this warning: "Using a password on the command line interface can be insecure")
Your description makes it sound like you want to control your revisions. Use a Revision Control System like SVN or Git (http://en.wikipedia.org/wiki/Git_%28software%29). At a high level, once you make changes to your code, you check those changes in and get a revision number that specifically identifies the most curre...
Lets say I am updating an application and have updated 10 files out of a 100. I made these changes on my test machine and is working but now I want to commit these changes to the production machine. What kind of option do I have. Ideal scenarios would be. I save the existing files that I am replacing I copy new files...
What kind of script can I use to update an application?
One of the nice things of Github's API both public and Enterprise, is if you go to the API root, it will tell you what endpoints are available. On an enterprise instance it is:http://my.domain.com/api/v3/. Looking at my company's enterprise instance (sorry not sure of the version), I only see thelegacy search API endpo...
I'm trying to search through repositories, but I can't seem to figure it out with github enterprise edition. I have tried the following with no results. Any suggestions?curl -i http://my.domain.com/api/v3/repositories "If-Modified-Since: Mon, 16 Jun 2014 01:01:01 CST" curl -i http://my.domain.com/api/v3/search...
How to search using Github API with enterprise
I don't think there are any guarantees about what thread will be used. New objects may be instantiated and static methods may be called. Establishing a new reference to your object will prevent it from being garbage collected, but the finalize method will not be called again--you don't want to do this. Cleaning up r...
So, I recently discovered the finalize method in Java (not sure why I missed it before, but there it is). This seems like it could be the answer to a lot of the issues I'm working with, but I wanted to get a bit more information first. Online, I found this diagram illustrating the process of garbage collection and fin...
How does finalize() work in java?
Nothing complex, it's the root directory in thenginx.confis not defined correctly.Checking the logs withkubectl logs <> -n <>gives why the404 erroris happening for a particular request.xxx.xxx.xxx.xxx - - [02/Oct/2020:22:26:57 +0000] "GET / HTTP/1.1" 404 153 "-" "curl/7.58.0" 2020/10/02 22:26:57 [error] 28#28: *1 "/etc...
I have Kubernetes set up in a home lab and I am able to get a vanilla implementation of nginx running from a deployment.The next step is to have a custom nginx.conf file for the configuration of nginx. For this, I am using a ConfigMap.When I do this, I no longer receive the nginx index page when I navigate tohttp://19...
Custom nginx.conf from ConfigMap in Kubernetes
Anything already committed will still be recognized by git even if they would be otherwise ignored by the.gitignore. Once you have rungit rm --cached, you still have to commit the deletion of those files. They should be ignored from then on, unless you forcibly re-add them.ShareFolloweditedOct 15, 2014 at 13:54answered...
I have ran the following in cmdgit rm -r --cached .to remove any files that have been committed and shouldn't have. I then added this to my .gitignore file:settings_local.py *.pycwhich should ignore any .pyc files and the local settings file. However, when I try and scan for changed files in git, it finds them!
Git not ignoring files
Use curl localhost:5601 to test if kibana is really working. If not working , go to etc/kibana/ to modify the config to check if host is 0.0.0.0 and port is 5601 And the other problem is that your server'memories are not enough for kibana starting. Hope you can provider the kibana log.try use:journalctl -u kibana.serv...
I am trying to install Elastic search, Nginx, Kibana and Sense.I am following this guide:https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04I successfully installed Elastic search.However I am stuck at Kibana.I successfully followed all steps howev...
kibana service not running
You should use enviroment variables. In your code you will check this env var: if(process.env.WITH_SCHEDULE) { ... } When you start your instances, you will set WITH_SCHEDULE only for one instance. Example pm2.json: { "apps": [ { "name": "Example", "script": "boot/app/app.js", "args": [], ...
My question is how to use node-schedule to run a cron only on one instance out of two instances of node server. Currently it is running on both instances but I want it to be executed only on one instance. So How can you make a cluster run a task only once? Thanks in advance. { "apps": [ { "name": "Example"...
how to use node-schedule to run a cron only on one instance?
Use: aws s3 sync . s3://MyBucket/ --exclude "*" --include "*.flv" It excludes all files, then includes .flv files. The order of parameters is important. You can also use: aws s3 cp . s3://MyBucket/ --recursive --exclude "*" --include "*.flv" The difference is that sync will not re-copy a file that already exists in ...
I'm trying to upload all files of type .flv to an S3 bucket using the AWS CLI from a Windows server 2008 command line. I do this: aws s3 sync . s3://MyBucket --exclude '*.png' And it begins uploading .png files instead. I'm trying to follow the documentation and it gives an example that reads: Local directory contains...
uploading all files of a certain extension type
0 it simply shows a commit on branch A with the merge message. But it still shows both separate branches. That is expected: your merge commit should show two parents, which means the second branch is still accessible from the merge commit, while your "unified branch" lives...
So I have two branches which I merged locally and thus created a commit. I then pushed the unified branch to my remote where the two branches existed. I'm guessing this is not how it is done since Github doesn't reflect the merge, it simply shows a commit on branch A with the merge message. But it still shows both sep...
Merged branches locally, now how do I get GitHub to show that as a pull request?
It isn't really clear what type of project you have, but here are a couple of ideas.If your code is written in a compiled language, then you could:Have a Jenkins server as mentioned in the other commentWrite a simple script in bash that does a git pull and compile and add a cron job to it.Use an automation framework li...
I searched the web now for several hours but couldn't get around this:Is there an easy way to deploy a private repository from Github to a staging/development server on each push (or at least manually)? (Best would be if only FTP-data of development server would be needed for this).I found this:How can I automatically ...
Easy Deployment with Github?
Yes wildcards can support sub domains of already existent sub domains, but there are different criteria to secure your domain and sub domains and multi level sub domains.First:If you only need to secure your *.subdomain.domain.comIn this case you can secure your all sub domains with single Wildcard SSL. CSR require to ...
I'm not sure if I could word it right. I know that Wildcards SSLs will support any amount of subdomains in a domain. But does it also support subdomains of already existent subdomains?I'm about to buy a wildcard SSL but I need to have this kind of setup: subsubdomain.subdomain.domain.comWill I need more certificates or...
Wildcard SSL - Do I need another SSL for subsubdomain.subdomain.domain.com?
Thewhenever Gem documentationis pretty clear on how to use the Gem in rails, but it may be unclear to you how to configure cron jobs ('whenever' is simply a front end for cron).As an alternative to cron, I would suggest using Heroku Scheduler (and deploying to Heroku instead of hosting it locally/on a Linux instance wi...
I need to use whenever in my app How can I for example send an email to my Course.teacher on certain days between Course.start_at and Course.end_at . I dont understand the use of whenever gem and it seems there is no good tutorials using this in models and using their methods .
Ruby on rails using whenever
You can use it like this![PyTorch Logo](https://raw.githubusercontent.com/pytorch/pytorch/master/docs/source/_static/img/pytorch-logo-dark.png)Now, the question comes, how can we get this URL. So, for example, you want to get this image (https://github.com/pytorch/pytorch/blob/master/docs/source/_static/img/pytorch-log...
I've readthis, but I'm still having issues.I have an image (.png) saved on my GitHub account, and I want to show it in a Jupyter notebook markdown cell.[IMAGE](https://github.com/user/repo/blob/master/imagename.png)doesn't work. It provides a link to the image instead of showing the image itself when the cell is run.Ho...
Jupyter notebook: image from github
TheEXPOSEdirective seems to be for documentation purposes mostly (only?).Fromthe documentation:The EXPOSE instruction does not actually publish the port. It functions as a type of documentation between the person who builds the image and the person who runs the container, about which ports are intended to be publishedS...
Here I have a Dockerfile.Notice I am using a large base image with many libraries (~2Gb), running my build, then copying the output to a smaller image for execution. I understand this to be a common practice.# Create a base from the .net core 2.2 debian image FROM microsoft/dotnet:2.2-sdk AS base #<======== Base i...
Does exposing ports in a Dockerfile base image, expose them in a final image?
The following command could help. It basically gets the RoleBindings and ClusterRoleBindings which .subjects[0] is the name of the ServiceAccount.$ kubectl get rolebinding,clusterrolebinding --all-namespaces -o jsonpath='{range .items[?(@.subjects[0].name=="SERVICE_ACCOUNT_NAME")]}[{.roleRef.kind},{.roleRef.name}]{end}...
I tried with thekubectl get sa defaultcommand, but only see some very basic values. What's the command to view the permissions/roles associated with a specific service account in k8s?
How to view the permissions/roles associated with a specific service account in k8s?
I'm not sure if you resolved this but I got additional information by using JSON.stringify(e) on the error generated by the creation function (i.e, api.createNamespacedCronJob(...)). If you look at the github repository for the k8s javascript client the HttpError object contains a response, body and status code. That w...
I'm trying to use the Kubernetes JS client library, and when i try it on a local environment (i am using docker to run a local kubernetes) it works fine, i am creating a pod for testing purposes and the pod is created. When i try on Google Kubernetes Engine i get "HttpError: HTTP request failed".Here is how i am using ...
Kubernetes Javascript Client Library works on local but not on GKE
I had the same issue, My solution was to add the correct ip address of the database. Insted oflocalhost:1433I added10.2.16.100:1433. Hope this will help
I run a grafana docker container and tried to connect to my ms-sql database on my hostsystem, but I get an error instandly, if I click on "save and test".Error Message in logs:2023-03-20 15:12:51 logger=context userId=1 orgId=1 uname=admin t=2023-03-20T14:12:51.934877922Z level=error msg="Plugin health check failed" er...
Docker/Grafana: Instandly get "Plugin health check failed"
I checked the advice:https://github.com/ethereum/go-ethereum/issues/16377#issuecomment-430642197I can say that it worked. Our server has been stable for 3 weeks.My actions:1.Allow only a specific ip address to an open RPC port on the server where your node is installed:$ iptables -A INPUT -p tcp --dport [rpc port] -s [...
I often got the problem of memory leaks when working withethereum node(Geth). I could not understand the reason, the problem arose at an indefinite point in time. The server could work for a week, and sometimes it took a day to break.We are developing in the local network:"chainId": 15Mygenesis.json{ "config": { "c...
Ethereum geth: out of memory
12 I just had the exact same problem. Boils down to the imagePullPolicy: PC:~$ kubectl explain deployment.spec.template.spec.containers.imagePullPolicy KIND: Deployment VERSION: extensions/v1beta1 FIELD: imagePullPolicy <string> DESCRIPTION: Image pull polic...
I have successfully built Docker images and ran them in a Docker swarm. When I attempt to build an image and run it with Docker Desktop's Kubernetes cluster: docker build -t myimage -f myDockerFile . (the above successfully creates an image in the docker local registry) kubectl run myapp --image=myimage:latest (as ...
Docker for Windows Kubernetes pod gets ImagePullBackOff after creating a new deployment
Yes, it's because void return type. The @CachePut annotation places the result of method into the cache. In your case there is no result so nothing is put to the cache.Change method signature to return User:public User addUser(User user) { ... }
I am attempting to implement caching in my application using Ehcache and the Spring 3.1 built in caching annotations (@Cacheable, @CacheEvict, and @CachePut).I have created a cache as follows:@Cacheable(value = "userCache", key = "#user.id") public List<User> getAllUsers() { ... }I am attempting to update this cache wi...
Will Spring's @CachePut annotation work with a void return type?
I'm saying "I want to revert to this prior version, exactly as it was then" Actually, you're not: Given one or more existing commits, revert the changes that the related patches introduce, and record some new commits that record them. Given this simple history D [master] | C | B | A git revert B generates a new c...
So I've been trying to revert to the a prior version of my project. But I keep getting merge conflicts when I do a git revert. Why on earth does this make sense? I'm saying "I want to revert to this prior version, exactly as it was then" and now it's saying I need to keep some of the current code. No, I want none of i...
Why do I run into git merge conflicts when I do a revert?
In your Grafana configuration file, there is a [help] section where you can disable this menu.Depending on how you've deployed Grafana, you want to ensure that you update your configuration like below.[help] enabled = falseDocumentation reference.
Does anyone know how to remove the Help Menu from Grafana, I want this icon not to appear in the Grafana console.I'm using Grafana 10.1.5 OSS
How to remove Help Menu from Grafana
2 The namespace (System.DirectoryServices.AccountManagement) is not supported when we use docker container to host our application. But we can do the similar setup to validate user credentials on Active Directory with this nuget package https://github.com/dsbenghe/Novell.Di...
I have web api implemented in .NET Core 2.0 with Basic Auth & Active Directory implemented. we are using docker for deployment. Following code I've written for Active Directory Authentication: using (PrincipalContext pContext = new PrincipalContext(ContextType.Domain, "xyz")) { try ...
Linux Hosting & .NET Core Docker : PlatformNotSupportedException: System.DirectoryServices.AccountManagement is not supported on this platform
TheNamefield in the configuration entry has to match the name of the service as registered in Consul. By default the Helm chart uses the name "ingress-gateway" (https://www.consul.io/docs/k8s/helm#v-ingressgateways-gateways-name).You can customize this with thenamefield which must be defined for each ingress gateway li...
I'm looking to set up a consul service mesh in my Kubernetes Cluster and need to enable ingress-gateway. My plan is to run ingress-gateway as a ClusterIP Service and Kubernetes Ingress (Nginx ingress) to direct traffic to that ingress. I've been going through the tutorials on Ingress Gateway on Consul.io and am conf...
Question about Consul Ingress-Gateway in Kubernetes
Following answer is in chronological order corresponding to 3 questions.You can attach only identity_id (user) to IoT policy. Also, I can see you have used "attach-principal-policy" API which is deprecated now, so instead of that please useAttachPolicyAPII'm unsure here, still I'd recommend to evaluate and verify it on...
I am trying to make a connection between AWS IoT and my React JS APP.I followed this tutorial (https://medium.com/serverlessguru/serverless-real-time-reactjs-app-aws-iot-mqtt-17d023954045), and it is not clear to me how to attach the Cognito Identity ID to the AWS IoT Policy.During all my investigation, I found that th...
How to attach Cognito Identity ID to the AWS IoT Policy?
I thinkrestart policyis part of thePODspec.apiVersion: v1 kind: Pod metadata: name: test spec: containers: - name: 1st image: image-1 command: ["./bash", "-test1"] - name: 2nd image: image-2 command: ["./bash", "-test2"] restartPolicy: NeverRestart policy gets set the atPOD speclevel, and get ...
Does anyone know whyrestartPolicyfield is defined on the Pod level instead of the container level?It would seem that this setting is more closely related to the container, not the Pod.Then how to controll restart policy of single container in multi-container Pod?
Why container restart policy is defined in Pod specification?
0 As auto trigger is enabled only for master branch, I would suggest you add one more branch filter. Click on the add button and include other branches also. Share Improve this answer Follow edited Dec 20,...
I can't seem to get my VSTS build to trigger for GitHub pull requests. It works fine when i commit to the master branch, but not when i open the pull requests to the master branch. Here's the screenshot from VSTS: I can also see the 2x Webhooks in GitHub: I can see the pull_request webhook fires successfully when i ...
VSTS GitHub Pull Request Trigger Not Firing
You could version cache data and keep each version immutable. Every time the data in the database changes you increment an integer version column. The cache key must include the version number. Clients can then first look into the database to look up the current version number and then talk to the cache.Keeping caches ...
Suppose the strategy for using an in-memory cache (such as redis/memcache) in front of a database is:Reading: client will first try to read from the cache. On cache miss, read from the database and put the data in the cache.Writing: Update the database first, followed by deleting the cache entry.Suppose the following s...
Dealing with stale data in in-memory caches
That is because ofMultiViewsoption.Add this line on top of your .htaccess:Options -MultiViewsShareFollowansweredDec 19, 2013 at 15:36anubhavaanubhava771k6666 gold badges582582 silver badges649649 bronze badgesAdd a comment|
I have a problem with theRewriterules. I'd like to redirectdomain.xx/exampletodomain.xx/index.php?content=exampleThis would actually work, but I also have a file named example.php in the same folder (domain.xx/example.php). Whenever I opendomain.xx/example, the server opensexample.phpinstead of redirecting me toindex.p...
RewriteRule on apache2
The C language doesn't keep track of all the copies you make of a pointer variable. C++ can do this with the concept of smart pointers, however C can't because it doesn't have functionality similar to a destructor. It's up to the programmer to keep track of any references and manage them appropriately. One way to d...
I want to set all the pointers pointing to a freed memory location to NULL, so that no dangling pointers or double frees are possible. Is this possible in C? For example, I have the following structures: struct B { int *arr; unsigned int len; }; struct A { struct B *b; }; // Freeing and setting them to N...
Is there a way to set all the pointers pointing to the freed memory to NULL?
We ended up writing our own daemonset to properly collect the logs from the nodes instead of the container level. We then stopped writing to shared volumes from the containers and logged to stdout only.We used fluentd to the logs around.https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart/splu...
Our setup:We are using kubernetes in GCP. We have pods that write logs to a shared volume, with a sidecar container that sucks up our logs for our logging system. We cannot just use stdout instead for this process.Some of these pods are long lived and are filling up disk space because of no log rotation.Question: What ...
How can I get log rotation working inside a kubernetes container/pod?
I see two things that may help:Check/var/lib/kubelet/kubeadm-flags.envif it is properly configured.In addition to the flags used when starting the kubelet, the file also contains dynamic parameters such as the cgroup driver and whether to use a different CRI runtime socket (--cri-socket).More details can be foundhe...
I'm trying to set which cri-o socket to use by kubeadm !To achieve this I should use the flag--cri-socket /var/run/crio/crio.sockThe current command is in the formkubeadm init phase <phase_name>. I must add the--cri-socketflag to it.I edited the command this waykubeadm init --cri-socket /var/run/crio/crio.sock phase <p...
kubeadm compatibility between "--cri-socket" flag and "init phase" argument
A good start would be the section "Configuring cron to make daily backups"To schedule a cron job that backs up your repositories and GitLab metadata, use the root user:sudo su - crontab -eThere, add the following line to schedule the backup for everyday at 2 AM:0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create...
By runningsudo gitlab-rake gitlab:backup:createwe can create backup for Gitlab manually. But is there any way to take Gitlab backup periodically, like daily or monthly.PS: I want the backup file to be in Local folder not any cloud storage
Take backup for Gitlab periodically
Thanks for asking question! There are two ways to get the JVM heap dump file as below.Command "jmap -dump:format=b,file=.hprof "Add the JVM arguments for java startup. Option "-XX:+HeapDumpOnOutOfMemoryError" enables heap dumps when an OutOfMemoryError occurs. And option "-XX:HeapDumpPath=" specify the dump location, ...
web service hosted at azure . web service crashed due to OutOfMemoryException error . so need to analyse the root cause . For this I have to configured heap dump in azure.Can someone help me for how to configured heap dump in azure portal.
Create heap dump in Azure service
You can try to use one of below commands:git config http.sslVerify falseorexport GIT_SSL_NO_VERIFY=trueShareFollowansweredSep 29, 2014 at 19:08Piotr OktabaPiotr Oktaba77511 gold badge55 silver badges1414 bronze badgesAdd a comment|
I am behind a corporate firewall. When I try to push code I get the following error...ssh_exchange_identification: read: Connection reset by peerWhen I connect outside the firewall everything works fine.Windows is logging these errors...The certificate received from the remote server has not validated correctly. The e...
BitBucket SSH connection issues
The alerts in the Alertmanager templates have aStartsAtattribute you could use.ShareFollowansweredDec 9, 2016 at 22:54brian-brazilbrian-brazil32.8k66 gold badges9797 silver badges8888 bronze badges61Hi Brian, Thanks! But currenlty I can't seem to extra the StartsAt attribute. I probably just don't know how to reference...
So i have an alert rule that gets fired in prometheus when a queue length has been long for a certain period of time.Through the alert manger, I am able to create and receive e-mails.My question now is, as part of my e-mail body, I want to have the Date and Time that either the alert manager triggered the e-mail, or of...
Populating a Date/Time in Prometheus Alert Manager E-mail
Here is a script I used on my Linux box to perform the same type of task. Basically I just a raw image of each disk to a folder. I had another script I ran later that mounted each and dumped a directory listing into a file. #!/bin/bash floppydev='/dev/sdb' savepath='/srv/floppy_imgs' while true do echo "Press a k...
I still have a large number of floppies. On some of them there probably is source code I don't want to lose. I also don't want to take look at each one individually, as that's going to take a lot of time. What software would be best for copying all data to a hard disk, preferably while creating an index at the same ti...
What software do I use to put floppies as images on a hard disk?
Configure the root_url option of [server] in your Grafana config file or env variable GF_SERVER_ROOT_URL tohttps://grafana.company.com/Fromthis SOQuestion and answer.Thisshows to set root URL As well. I'd say this is likely a duplicate question.ShareFollowansweredFeb 16, 2021 at 14:43PatientOtterPatientOtter2,1641818 s...
I configured my grafana alerts to be directed to telegram, but the url in the message is localhost:3000 I changed the domain already in grafana.ini but it didn't work, I still get localhost:3000 in the alert message. Are there any other configurations to be made?
Grafana URL Alerting
nope the NSNumber objects are autoreleased.Adding them to an NSDictionary will cause a retain message to be send to each NSNumber object you add.According to the Memory Management Rules you don't own these objects - NSDictionary does that somehow - and thus you are not responsible releasing them, the NSDictionary objec...
I'm creating an NSDictionary which maps objects to integers, and because NSDictionaries don't handle anything but objects I have to wrap each integer in an NSNumber object with [NSNumber numberWithInt:30] or what have you. What I'm not clear about is whether or not I need to release all of those NSNumber objects I'm cr...
Do I need to release NSNumbers added to a NSDictionary myself?
6 Old question, but for future reference: Make sure you did setup a push remote. It worked for me when I got both the Cannot get remote repository refs-problems ("... Passphrase for..." and "Auth fail" in the "Push..." dialog). Provided that you already: Setup your SSH key...
I have been trying to get gitHub and Egit to cooperate, with no success. I installed github's software bundle and made an SSH key that way, but Egit gives me no prompt for the passphrase, and it gives me this error: Cannot get remote repository refs. Reason: ssh://[email protected]:22: passphrase for C:\Documents and ...
Egit ssh problems
there is currently no container support in Spinnaker. Google is actively working on adding Kubernetes support. But there is currently no plans to integrate Spinnaker directly with either docker or ecs.
I wonder if Spinnaker (http://spinnaker.io) can be used for docker container deployment?What we do is:Poke the repoIf the code is new there - we build 3 containers (nginx, django app container, fluentd logger container)we are spinning up fluentd container in order to collect the logs from the rest 2 containers and send...
Is it possible to deploy Docker containers using Netflix's Spinnaker?
It should be easy to imagine and understand if you know the C programming language. Anything you write in C is very close to the actual machine code that gets generated when compiling the program. The abstraction of an object in C is often done with a "struct". In your example imagine a very simple "Player" struct: st...
I'm using a memory editing application known as Cheat Engine. I attach Cheat Engine to a game. In my game, I have a 32-bit integer known as HP. HP is stored at a memory address A. If I restart my game, HP is stored at a new memory address B. It seems that using Cheat Engine, I can do a pointer scan and find a static m...
What is the benefit of offsets to pointers?
It took me an insanely long time to gather scattered information and finally find the very best answer to this question, but now I know I have it. In just two lines, no code and no hooks:# required for a bare repo git config core.logAllRefUpdates true git reflog --date=local masterSimple at last.Warning: you probably ...
I am wondering if there is a way to view a push date associated with each commit in the git log. If that is not possible, is there a way to see all the commits under a certain push.I writing a program that needs to keep track of the commits as they are pushed. Because the git log is ordered by the commit date, not th...
Is there a way in git to obtain a push date for a given commit?
Before providing any input please confirm if you are using any pointing service?Ifhttp://foo.comis working whereashttps://foo.comis not then you may need any service like pointDNS or cloudflare.
Using Google Domains, I've set up a synthetic record to redirect foo.com -> www.foo.com. Just like in this example:https://support.google.com/domains/answer/6346300?hl=enHowever, it doesn't seem to work withhttps://foo.com.How do I configure it so that the subdomain forward works with https as well?To give it more con...
How to setup a root domain redirect for https with google domains
Actually you're asking two things. One how to call a function in a python file from commandline. Two how to do this via Docker.For the first, in the handler.py you'd need a main function to be able to do this. Something like this for example.import sys def greet(username): print("Hello %s!"%(username)) if __name...
Suppose I have a file calledhandler.pyinside a docker container (which is not yet running or up from image). Let the image name betestimage.Insidehandler.py, we have a functiongreetsuch thatdef greet(username): print("Hello %s!"%(username))Now I want to start my docker container from this image such that I invoke t...
Start docker container through an entry point function with arguments
Or is the "correct" way to do this to create a new clone of the GitHub repo in a new working directory, then do the desired checkout in that directory?If you really want to work on both simultaneously, yes.git clone your-git-url new-directory cd new-directory git checkout -b new-branch old-commit-hashShareFolloweditedN...
I have git 1.8.3 installed on my Windows 8.1 PC.I'm using GitHub and its companion, GitHub for Windows version 1.2.3.0.As you can tell from the question, I'm new to git.Currently, my repo has only one branch (“master”). I need to go back to an earlier commit and check it out on a new branch to make some changes. This...
Git checkout to new working directory
From github documentation: You can only push to one of two writeable protocol URL addresses. Those two include an SSH URL like [email protected]:user/repo.git or HTTPS URL like https://github.com/user/repo.git. So you need open port 22 or 443 to work, git protocol is read only.
I am trying to connect to github at school but port 443 is blocked. The admin told me to use port 9418 instead which I believe is the default port for the git protocol. But in git bash (windows) if i try to do git remote set-url origin git://github.com/me/myrepo.git and do a push, it tells me I can't push to this URL...
Git - Use port 9418 for remote on github
See the "pushing a branch" section from GitHub help page: Dealing with “non-fast-forward” errors From time to time you may encounter this error while pushing: $ git push origin master To ../remote/ ! [rejected] master -> master (non-fast forward) error: failed to push some refs to '../remote/' To prevent you...
git push origin master shows an error failed to push some refs to '[email protected]:xyz/abc.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details. What is this?...
I am not able to push on git?
Open your terminal, enter your project root fold, and add your remote: $ cd path/to/your/projcet $ git remote add origin [email protected]:me/java.git I think it should detect your setting, then check how your IDE set your github repository.
I am very new to Github. I just created one github account and it says as bellow: Step 1) Global setup: Set up git git config --global user.name "MyName" git config --global user.email [email protected] Next steps: mkdir Java cd Java git init touch README git add README git commit -m 'first commit' ...
How to setup github repository in my NetBeans IDE?
6 Find this in cache.php 'redis' => [ 'driver' => 'redis', 'connection' => 'cache', ], and change it to: 'redis' => [ 'driver' => 'redis', 'connection' => 'default', ], Share Improve this answer ...
I am trying to use redis for caching in laravel. I have install redis locally and I know it is working as I am able to run horizon queues and workers. I also get a response when doing redis-cli PING but when I try this code $user = Cache::get('User:' .$Id , function ($Id) { return User::where('id', '=', $Id)->fir...
Redis connection [cache] not configured error with laravel
To run Kubernetes on AWS you have basically 2 options:using kops, it will create Master nodes + workers node under the hood, in plain EC2 machinesEKS + Cloudformation workers stack (you can use also Terraform as an alternative to deploy the workers, or eksctl, that will create both the EKS cluster and the workers. I re...
What does AWS' Elastic Kubernetes Service (EKS)do exactlyif so much configuration is needed in CloudFormation which is (yet) another AWS service?I followed the AWS EKS Getting Started in the docs at (https://docs.aws.amazon.com/eks/latest/userguide/eks-ug.pdf) where it seems CloudFormation knowledge isheavilyrequired t...
What exactly does EKS do if CloudFormation is needed?
It depends. You may have enabled usage quotas in the Grafana config. Then those limits will be applied. Usage quotas are disabled by default, so then used database is your limit (in theory). E.g. MySQL InnoDB table may have ~64TB data, so that can be ~1G records (if one row needs 64kB, that again depends on the dashboa...
An application is composed of multiple services.I will create a folder for each application and a dashboard for each service in the application. Therefore, I need to know the maximum number of folders and dashboards in Grafana.
What is the maximum number of grafana folders and dashboards?
3 Not with the CVS client. You need to install git for Windows or a git plugin for Eclipse. CVS and git are two different source code version control systems. Other popular choices are Subversion or Mercurial. You have to use different clients or Eclipse plugins for each of...
I am playing with my eclipse cvs functionality (on my windows box), is there a way to check out a project hosted on github? Anyone shows me a pointer? Thanks,
Checking out a project on github with the Eclipse CVS client?
Thanks to community userBimal.It can be applied like:{{- if contains "," .Values.xxx.name }} some_data: {{ .Values.xxx.name }} {{- end }}For further reference please followString Functions:
I'd like to use some code like below to describe a comma is the substring of the string.{{- if contains '\,' .alias }}But it reports the error in the line when usinghelm lintinvalid syntaxHow to write it correctly?
How to check if the comma exist in helm charts?
You can use the--forceargument to "reset" a remote branch to the same commit on your local repo:$ git push origin --forceNote that this is considered a bad practice, though, as you may cause quite a mess for people relying on this branch. A friendlier approach would be to acknowledge the mistaken commit and fix it bygi...
I have adevbranch on which we push everything. The last commit breaks our entire build and I need to remove the same. For local i usedgit reset --hard <SHA_ID>Which works well for local repo but when I try to push the changes are rejected because the tip of current branch is behind remote and shows me to usegit pullbef...
Delete commits on remote git
1 The NGINX server process runs as user nginx (see the first line in nginx.conf). You run mkdir as root so that will be the owner of /var/log/nginx. You need to give write access rights for the user nginx to the folder /var/log/nginx. In the simplest form you can give write...
In the Dockerfile, there is RUN mkdir -p /var/log/nginx right after the FROM, but for some reason it doesn't get created in the container as shown below root@c6d43f610a51:/etc/nginx# cd /var/log root@c6d43f610a51:/var/log# ls This is the nginx configuration on the container. It clearly states that the nginx logs are ...
/var/log/nginx not present in docker container and directory fail to be created by Dockerfile
The best practise is to not force a garbage collection. According to MSDN: "It is possible to force garbage collection by calling Collect, but most of the time, this should be avoided because it may create performance issues. " However, if you can reliably test your code to confirm that calling Collect() won...
In my experience it seems that most people will tell you that it is unwise to force a garbage collection but in some cases where you are working with large objects that don't always get collected in the 0 generation but where memory is an issue, is it ok to force the collect? Is there a best practice out there for do...
What is the risk of calling GC.Collect()? [duplicate]
Each region in AWS is independent of the others, and the API endpoints are different.It you aren't specifically configuring your code to send your request to the "us-west-1" region, then by default you're actually askingus-east-1to create the instance in an availability zone that it's never heard of.The AWS SDK for Jav...
I'm attempting to create instance on us-west-1c (though I get the same error when trying 1b, or any other AZ) and I'm getting this error:Caught Exception: Status Code: 400, AWS Service: AmazonEC2, AWS Error Code: InvalidParameterValue, AWS Error Message: Invalid availability zone: [us-west-1c] Response Status Code: 400...
Invalid Availability Zone when creating Instance
You could bind an arbitrary container / empty content to the popup and instead listen for the popupopen event on the relevant Map, Marker or Path. scope.on('popupopen', function(ev){ var src = 'image.jpg?v=' + Date.now(); ev.popup.setContent('<img src="'+ src +'"/>'); });
I'm using a Leaflet map with popups which load updating images. However the images end up cacheing. I thought I'd fix this by adding Date.now() but this only adds the date when the page loads rather than when the pop up opens. .bindPopup('<img src="image.jpg?'+ Date.now()+'" width="260" height="196" border="0"><br>Lo...
Cache Busting in Leaflet marker popups
You could make a new image base on your container image, and a different starting script (one which runs the node command for testing, and then opens a bash for instance) You could need to COPY that script COPY myscript /usr/local/bin CMD ["/usr/local/bin/myscript"] That way, you can test your current image as wrappe...
How can I debug docker container that I set to always restart. I have a container that launch nodejs app, with a CMD ["nodemon", "/usr/src/app/app.js »] that work very well on other container but not on the new one i created it says with docker logs containerName : Usage: nodemon [nodemon options] [script.js] [args]...
Debug set always restart container docker
Ok I finally figured this one out. The reason I had no cloud watch logs was because the image was not getting pulled from ECR. I was always under the impression that "latest" was some magical docker tag. Apparently it's not and I have to actually tag it latest for it to find it.I think the cloudwatch logs would have be...
Here's part of my task definition:"logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-group": "/ecs/main-frontend-production-php", "awslogs-region": "us-west-1", "awslogs-stream-prefix": "ecs", "awslogs-create-group": "true" } },If I go view the task...
ECS awslogs Log group not being created for Task
To clear all apps cached data:SettingsStorage & USBCached data - asks clear cached data?Tap "Ok"To clear each apps data and cached dataOpen the Settings menu either through your notification shade (drop-down) or through the Settings app in your app drawer.Navigate down to “Apps”. This may be renamed to something like A...
I know this question has been asked so many times, as I read all the answers but none gave me the complete solution. If Android 6+ is not allowing to clear all apps cache data then how Clean Master app is working. Android has added this permission in Signature|Prvilege category , then how to get access. Please help.
How to Clear all apps cache data in Android Marshmallow
Meanwhile, found a way. I run the Win10 build-in tool diskpart twice, using command clean (carefully!). After that, I could initialize, format and partiton the drive "as usual" with the Win Disk Management. With the drive having 4 TB memory, I had to use GPT as partition style to access it fully; with MBR style not al...
I have recently made a backup of Windows 10 using Macrium Reflect v6.1; the backup consists of an image written to an external hard drive, following these "widely used" instructions: http://www.everydaylinuxuser.com/2015/11/how-to-backup-windows-10-safe-way-with.html For some reason I would now like to remove the imag...
delete macrium reflect backup image
The filesize is small because thegit initcommand is creating an empty repository for you. It does not add anything. To put your files into the repository, you should usegit add .andgit commit.However, as Cad pointed out in his comment, if the folders you are trying to add are themselves git repositories, then you shoul...
I have several favorite github repository and I put them all in one folder A. The total size is 14mb. Then in the folder A. I want to record them also by using git. I usegit init......But it seems git only add and commit empty folder since the.gitfolder is only 190k size. Why?. ├── .git ├── FreeCodeCamp ├── Front-end-D...
record github repository collection by using git
You never destroy singleton object in any of the classes that use it. The very reason the singleton is a singleton is that there is only one instance of it in your system, created once, and kept forever, until your program is about to exit. John Vlissides discusses one way to destroy singletons in his C++ Report artic...
Let's say I have 3 classes(A, B and C). Every class has an instance variable of the Singleton class and uses this instance variable in some functions of the class. This class could look like this: SingletonClass* mSingletonClass; // declared in header file mSingletonClass = SingletonClass::getInstance(); // called in...
C++ how to delete Singleton object's used in many classes
You have two separate but related problems here.First, GitHub shows your commits with your full name instead of your handle when you use an email address that is not registered with your GitHub account to commit (usually viauser.email). If you want to see both the author and the committer information on your local mac...
I am able to commit an push from my terminal but I am showing up as both coauthors of the commit. I am not sure why. I've tried many things online but none of the solutions solve mine.I've triedgit config --global user.email "my email"but I get"error: could not lock config file /.gitconfig: Permission denied".My user.n...
For a GitHub commit I am showing up as both coauthors
The increased ram is completely normal in your case. By using the depends_on flag you are spinning up each container one at a time and without it you are spinning up multiple containers concurrently.Docker-compose is going to use extra RAM behind the scenes to spin up your containers. Because it worked using the depend...
I have a docker compose file with multiple docker containers. If I put these Docker containers independs_onone after the other, all containers start without problems and I end up with 300MB of RAM memory left.But when I try to start all containers at the same time I get an OOM error.Is the increased RAM consumption nor...
Why does a docker container need more RAM at startup than during operation?
This feature is now officially supported by VSCode:https://github.com/Microsoft/vscode-node-debug/issues/8
I'm trying to attach the Visual Studio Code debugger to a node.js app that is running inside a Docker container.I start the app like:node --debug-brk app.jsI expose the debugger port indocker-compose.yml:app: build: . working_dir: /code volumes: - .:/code command: npm run debug ports: - "3004:3000" ...
How can I attach VS Code to a node process running in a docker container
I think you need to wait fork8s v1.17.0or update your current installaion, this issue fixed inhereorginalIssue
kube-system coredns-f68dcb75-f6smn 0/1 Pending 0 34m kube-system coredns-f68dcb75-npc48 0/1 Pending 0 34m kube-system etcd-master 1/1 Running 0 33m kube-system kube-apiserver-master 1/1 Running 0 34m ...
Two coredns Pods in k8s cluster are in pending state
Your css link is not correct. It is starting with/publicwhich means Apache will attempt to find it in thepublicfolder under site root.You should update your path to relative one:<link href="public/assets/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="public/assets/bower_components/bootstrap-extensi...
i have.htaccessfile and this is a script within it:<IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^register/$ index.php?c=Page&a=register [L] </IfModule>in my layout file, i load css and js with absolute path lik...
css/js is not working after add htacess
It's strange that you are having this problem. Perhaps you have a rule that is doing it. I would really look more at fixing that. But anyway, here is how to make your mod_rewrite work.This is not glob matching, so you can's use star on its own like that, it refers to the previous character or group, so in this case you...
I am facing issues of 404 errors with images on a Magento site, due to auto adding a trailing slash/on some images only. I am not able to shout out by coding.So I am wanting to rewrite that url by.htaccessfile but it's not working.Wrong url:http://www.example.com/subdirectory/media/cpd/images/59480c2039d1e.png/And to c...
Images url rewrite on magento site
If you haven't ever used a version control system before you might be in for a steep learning curve.Git allows you to manage source revision across distributed repositories. In your case, it might make sense to set up a GitHub account and create a git repository there, then use that as your master repository. You use...
I'm beginner on rails, heroku and git, but I've done all installation stuffs. I created two projects on heroku.com, but I don't know how to change them from my PC (the way I looked from help doesn't work such as "$ git push heroku master"). So, how can I edit one of my herokuapp in different computers?As I understand, ...
Building site on Heroku
How about usingifPresent:customer.getFirstName().ifPresent(name1-> customer.getLastName().ifPresent(name2-> final String firstName = name1; final String lastName = name2; ); );
I receive a Customer object which contains lastName and firstName. In the conversion I check if both values are not empty and then pass them into the DTO:if (customer.getFirstName().isPresent() && customer.getLastName().isPresent()) { final String firstName = customer.getFirstName().get(); final String last...
"Optional value should only be accessed after calling isPresent()" although checked in if for multiple values
Apparently something wrong with the key. I've re-added the key to the credential store of jenkins, turns out now it work.ShareFollowansweredMay 24, 2018 at 16:02papanitopapanito2,39833 gold badges3333 silver badges6161 bronze badgesAdd a comment|
I try to dynamically load a shared library in jenkins, hosted on github as followslibrary identifier: 'custom-lib@master', retriever: modernSCM( [$class: 'GitSCMSource', remote: 'ssh://[email protected]:papanito/jenkins-pipeline-helper.git', credentialsId: 'git'])However, this fails with the following errorhuds...
Jenkins Shared Library: Permission denied (publickey)
If I heard you properly, then my answer is: you can. And it ishelm templatecmd. See$ helm template --help Render chart templates locally and display the output. Any values that would normally be looked up or retrieved in-cluster will be faked locally. Additionally, ...
Is there a way to obtain the manifest file from a helm chart? The manifest file needs to be able to run just like ahelm install. This will need to have all values populated and aggregated into one manifest file forkubectl apply -f
How to get the manifest file with all values populated from helm chart?
Versioning is defined by git branches and git tags. If you want to release a version you just create a tag.Same, you have to tag releases for them to be stable. Branches are dev/unstable since they can change at any time. Tags are fixed points in time.Not sure what to say there, but might be fixed by 1/2No there is no ...
Today, I've putted my first project on Github and Packagist and I have a couple of questions on using both of them combined. Be aware that I am still unexperienced it this domain.Composer documentation is vast in teaching how to get the dependencies, but not how to create one, how to create the best composer.json for G...
Composer, Github, Packagist inquiry
I can only think in two ways to do it:Having a cron job to call your send script every x minutes$database->query("SELECT * FROM `mail_queue` WHERE `time` < " . time()); while($object = $res->fetch_object()){ mail($object->to, $object->subject, $object->message, "FROM:[email protected]"); }(If you're using a webhost...
I am creating a service where users submit data that is stored in a MySQL database or text file and emailed to a specific address at a certain time each week.I understand that this is not what PHP is for and I've read of something called Cron that does the job, but I was wondering if there are any other options? Is the...
Scheduling emails with data from MySQL database or text file
This kind of policy is best managed in GitHub Organizations: it has a richer set of permissions. You can define teams, and make the reviewer team the owner of the repo which accepts PR. If you want the reviewer to not accept their own policy, then GitHub permissions wouldn't be enough, and you would need to put in pla...
We have a practice in our company that people can't merge their own pull requests. PRs are only allowed to be merged by reviewers. What can we do on GitHub to enforce this? Is there some way which would disallow people to merge their own pull request or is there something which will be a good alternative for this poli...
Disallow merging your own pull request on GitHub
"The BSS segment of executable files isn't stored on disk" Because the BSS segment is expected to be zero-initialized when a new process is created, and just storing a bunch of zeros in the executable file wastes space, the executable simply indicates where the BSS segment should start and how big it should be. "and t...
I read from here that "The BSS segment of executable files isn't stored on disk, and the kernel maps the zero page to the BSS address range." Can someone please provide a detailed answer about what is going on here?
What is the implication of mapping BSS to the Virtual Memory Segment 0?
My question now is, the way of doing this consumes 3 git repositories, could it be done by 1 repository?literal answer is "yes". You could store several disconnected histories in one repository, you just need to name them as different branches. You still would have to have 3 repositories locally, but they could have sa...
The story starts from a git repository. Let's call it pet-shop. The pet-shop has 2 folders containing different projects.--pet-shop <== this is a repository --web <== subfolder angular project --rest-api <== subfolder python projectDue to within the same git repository, there is an issue...
How to include git submodules and their physical files in parent repository?
Issue netstat -an from an MS-DOS command and try to find what are all ports opend as given in the artilce athttp://support.microsoft.com/kb/287932and configuring SQL 2005 to allow connections athttp://support.microsoft.com/kb/914277these may help according those articles:Client-Server Communication Over a Firewall Sett...
We recently installed a sonic firewall on our network. We have a SQL 2005 express server that's configured to listen on dynamic ports. In its configuration manager the dynamic port number is set as 1067 with its default port still 1433.From my understanding we need to have the following ports open for it to work:Tcp 14...
SQL Server Ports
Apparently this has to do with the proper ssh - keys to be set with aptana. There are two possibilities 1) If you've installed the github for Windows application than you already have a key-pair. It will also be already registered with Github. You can find these underhttps://github.com/settings/sshonce you've logged on...
I tried to import an existing project from the github repository into aptana studio but an error says Permission denied (publickey). fatal: The remote end hung up unexpectedlyI made sure to add my ssh to my account in github. I also ran $ssh -vT[email protected]and this is what it says that the private key cannot be fo...
Using Aptana Studio to import git project but Permission denied (publickey)