Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
8 Yes, It can be used outside AWS. One just needs to change a few configuration options. Specifically, the dataCenterInfo option to let the server know that its in a non-AWS environment. Have a look at https://github.com/Netflix/eureka/wiki/Configuring-Eureka to see how t...
I'm looking for a good discovery service to use in a growing, privately-hosted microservice architecture. Netflix's Eureka looks promising. It says it is "primarily used in the AWS cloud for locating services", but I can't figure out whether it can be used outside AWS or not. A cursory glance at the POMs revealed that...
Can Netflix's Eureka be used outside AWS?
A simple RUN yum -y install make solved the problem
I have a very basic Dockerfile which uses FROM centos:7, then downloads Python-2.7.9.tar.xz, and attempts to ./configure && make && make altinstall. I get the following error upon make: creating Makefile /bin/sh: make: command not found The command '/bin/sh -c cd /root/Python-2.7.9 && ./configure -- prefix=/usr/local ...
make not found with Dockerfile and centos:7 image
The contract for the Task Queue API is such that it is possible for tasks to be executed more than once - though such occurrences are rare, and they wouldn't result in the same task being executed multiple times simultaneously. If re-execution does occur, it's entirely possible that they'll be executed on different ins...
From what I gather, AppEngine fires up "Application Instances" (for a lack of better terminology that I know of) as a function of demand on the said application.Now, let's say I define Scheduled Tasks for my Application, is it possible that the said tasks might end-up being run by multiple Application Instances?The rea...
AppEngine: scheduled tasks per Application or per Application Instance?
I know it's a little late, but I think you need to ensureflanneld.serviceservice is running. If you're following the CoreOS step-by-step documentation for building a Kubernetes cluster with CoreOS, then flanneld is a dependency for the docker engine.If you made a systemd drop-in replacement in/etc/systemd/system/docker...
Dependency failed for Docker Application Container Engine. May 20 13:06:52 localhost systemd[1]: docker.service: Job docker.service/start failed with result 'dependency' when I do a systemctl status docker.Using the CoreOS install documentation, Kubelet(master) all on same node.Where would I start looking to debug this...
Q: Kubernetes Install on CoreOS showing Dependency failed for Docker Application Container Engine
The problem was, that HTTP had no force redirect to HTTPS. So, some browser/phones used HTTP, others HTTPS when typing in the pure domain in the browser.
When I visithttps://matchflix.chon a PC or Android 8 phone, the connection is secure:However, when visiting from an Android 12 Samsung phone, it says that the connection is NOT secure. I just don't understand how this can be?PS: The site is currently not yet live and therefore needs a username to access which is "demo"...
Website connection is not secure depending on device
Pretty sure this is just due to recent updates adding the incoming and outgoing changes feature. In particular see,https://code.visualstudio.com/updates/v1_86#_incomingoutgoing-changes-improvementshttps://code.visualstudio.com/updates/v1_85#_source-controlSee thescm.showIncomingChanges,scm.showOutgoingChanges, andscm.s...
I use VS Code to handle most my code and to manage branches with GitHub and generally it works like a charm. However today while trying to merge a branch I didn't get a merge handler that allows me to pick and choose which files I want to push. It staged everything and moved it into a all changes section which I've nev...
VS Code merge handler view changed to show incoming/outgoing changes?
Assuming you want a 301 redirect, using this RewriteEngine example should work:Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?example.com$ [NC] RewriteRule ^wp-content/uploads/(.*)$ http://www.example.com/blog/wp-content/uploads/$1 [R=301,L]
I recently moved my WordPress website to a subfolder. I want to add a redirect in the .htaccess file so that the links to images I've uploaded originally to ~/wp-content/uploads/ will pass to ~/blog/wp-content/uploads. The .htaccess file must remain in the root folder for WordPress to read it properly. This is what I t...
.htaccess Subfolder Redirect
When you are working on a project, you should always create a new branch for each set of changes that you want to make. This allows you to submit pull requests which only contain specific changes. If you have already been committing to the master branch of your fork or all of your commits are on a single branch, you s...
How does one deal with submitting a new pull request after a previous one was declined? For example, I forked a repository, made some changes to my fork, then submitted the changes in the form of a pull request. These were declined for the time being, but the authors say they might include them in the future. Now, I...
How to exclude declined pull request code from new pull requests
You can't expect the __brkval to decrease just because you called free() on a single memory block. The memory block will be marked as free and available for reuse, but in general the __brkval will only move in one direction according to the maximum amount of memory that your program uses at any one time.
I'm trying to free up RAM by removing a variable after it is used with the free() function, yet my RAM is not cleaning up. I suppose there is no garbage cleanup taking place? The space cleans up after I exit the section of code (scoped if-statement, while-loop or function), but not the free() statement itself. I'm d...
Why is free() not freeing up RAM on my Arduino Uno
UsinggrailsApplication.getArtefacts("Domain")you get a list ofGrailsDomainClassinstances that hold meta-information regarding the domain class. The domain class itself is returned by Calling getClazz(). In short:grailsApplication.getArtefacts("Domain")*.clazzreturns a complete list of the existing domain classes.
how can I get a list of alle domain classes I use in my project? Something likeGORM.domains.list().
List of all domain classes in Grails
You should not usetzlocalin server-side code. It is meant for desktop applications only.Most servers, especially in cloud-based services, set their system time zone to UTC.You have noguaranteethat the server's time zone is set to anything in particular (including UTC, or a regional time zone).Your code should not beha...
I'm using tzlocal.get_localzone() to get the local time zone. However, on AWS Lambda this returns "local" instead of the actual TZ such as "Americas/New_York" I'm then trying to use the return value with datetime.replace(tzinfo=new_time_zone) however, this fails when passed in as "local"Does anyone have a trick on how...
python getting local time zone?
For the-fcheck, you do need an absolute path like you thought. It seems like this shouldn't be much of a problem in your case, as you can just use%{DOCUMENT_ROOT}:RewriteCond %{SERVER_NAME} ^m\. RewriteCond %{DOCUMENT_ROOT}/$1.mobile.html -f RewriteRule (.*)\.html $1.mobile.html [L]
I'm trying to add an optional mobile layout to an existing website. Under certain circumstances, I'd like to be able to serve entirely different content for the mobile version than for the same page on the regular version. If the user visits, say, m.example.com/food/apple.html, he'll see an entirely different page th...
Using mod_rewrite to serve mobile version of a page
I was experiencing the same issue in Laravel 5.7, using Ubuntu 16.04: My jobs in the job table were being queued but not being executed:This is what I did:Ssh to your server i.e.ssh username@ipThen runsudo nano /etc/crontabAdd the following line inside the file* * * * * username php /var/www/your_laravel_project/artisa...
I have problem to run artisanqueue:workcommand using task scheduling in laravel 5.3app/Console/Kernel.php code<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { protected $commands = []; \Lo...
Laravel task scheduler for artisan command queue:work not working in shared hosting
You can declare a environment variable with the ENV statementENV foo=helloShareFollowansweredMay 15, 2016 at 11:59NotBad4UNotBad4U1,52211 gold badge1717 silver badges2323 bronze badges11Well that's how you do it, so you need to explain what happens and what you want to happen.–Adrian MouatMay 15, 2016 at 15:42Add a com...
I want to set bash environment variable in Dockerfile.How I can do it?Host: OS X 10.11.4Guest: ubuntu:latestDockerfile:RUN mkdir ~/gopath_dir RUN apt-get install ubuntu-make RUN umake go # I want to set $GOPATH to ~/gopath_dir
How can I set .bash_profile environment variable in Dockerfile?
So- mounting docker inside the container means that containers started from in there are running on your HOST machine.The end result is you have two containers on host- one with/Path/to/service:/src/serviceand one with/src/data:/srcIf you want to share a volume between two containers you should usually use a "named" vo...
I am running a docker container with docker mounted inside using :docker run -v /Path/to/service:/src/service -v /var/run/docker.sock:/var/run/docker.sock --net=host image-name python run.pyThis runs a python script that creates adatafolder in/srcand fills it. When printingos.listdir('/src/data'), I get a list of files...
Docker inside docker : volume is mounted, but empty
In kubernetes a Service exists of a IPand portpair (or multiple). It does not represent anything. The IP is just virtual and not assigned to a network interface. This is the reason, why you can't ping a service (pings do not get sent to a specific port).Using curl/nc/telnet to access/connect to the API server via its s...
I read in theKubernetes docsthat from within a pod you can access the Kubernetes apiserver with thekubernetes.default.svcDNS name. This name does resolve to an IP address, however, it seems that there's no response from this service endpoint.// from within a container in a pod # nslookup kubernetes.default.svc nslooku...
Can't access the Kubernetes apiserver from within a pod
I changed the way of doing it and instead of having it in the yaml list in runcmds, I created a script and instead put this command inside and call the script in the runcmds. By doing so, I got rid of the tricky handling of ":" and quotes in cloud-init.UserData: 'Fn::Base64': !Sub | #cloud-config write_...
I'm trying do this simple command but it keeps failing:echo "secret_backend_command: /home/ec2-user/dd-get-secrets.py" >> /etc/datadog-agent/datadog.yaml"I tried all the following:- [ sh, -c, echo "secret_backend_command: /home/ec2-user/dd-get-secrets.py" >> /etc/datadog-agent/datadog.yaml ] - 'sh -c "echo \"s...
Cloud-init runcmd syntx of a command that adding a line to file
Runningnginx -tthrough your commandline will issue out a test and append the output with the filepath to the configuration file (with either an error or success message).
Working on a client's server where there are two different versions of nginx installed. I think one of them was installed with the brew package manager (its an osx box) and the other seems to have been compiled and installed with the nginx packaged Makefile. I searched for all of the nginx.conf files on the server, but...
Locate the nginx.conf file my nginx is actually using
If origin/master is a local copy then why git branch does not display this branch.Usinggit branchdoesshow the local tracking branches, if you run it like this:git branch -aThe reason why plain vanillagit branchdoesn't show tracking branches by default is because normally you would not be manipulating these branches dir...
I have gone through some Q&AIn Git, what is the difference between origin/master vs origin master?Git branching: master vs. origin/master vs. remotes/origin/masterI got to knoworigin/master is a remote branch (which is a local copy of the branch named "master" on the remote named "origin")remotes/origin/master is a b...
Git 1.9.1 : does origin/master represents the local copy of the branch master at origin?
The arguments to thekubectl execcommand are executed directly, without a shell. Because you're passing not a single command but a shell expression, this isn't going to work.The solution is to explicitly invoke the shell:kubectl -n namespace exec -it pod -- sh -c 'command1 | command2'For example:$ kubectl exec -it fedor...
I have a executedcommand1 | command2which runs from inside a container.I am trying to run the same command by passing it to the running container, but it doesn't work. I triedkubectl -n namespace exec -it pod -- 'command1 | command2'Any ideas? If pipes are not supported, any alternatives to run these 2 commands in sequ...
Passing sequence of commands to a running container
-2Hi As per your question it's seem that you are trying to implement CI/CD in your project. You can integrate fastlane that will take care of uploading certificates on a git repo. It will upload all your certificates and provisioning profile on git repo and help's to fetch on your device's keychain.
I am implementing github actions in my project for Build, test and Deploy. While Building the app, it gives me an error,"Code Signing Error: No profile for team 'XXXX' matching 'XXXX' found" Xcode couldn't find any provisioning profiles matching 'XXXX/XXXX'. Install the profile (by dragging and dropping it onto Xcode'...
Github Actions - Where do I upload the Certificates and provisioning profiles
5 You can use the mmap (MAP_ANONYMOUS) and mprotect functions to manipulate the virtual memory system and use the corresponding protection flags. Your variables need to be constrained to a multiple of the system page size of course. Lots of small variables will present a si...
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions see...
Linux C debugging library to detect memory corruptions [closed]
10 There's is no attribute called create_time for EC2 instance, only launch_time is available. However, you can use the following Python code to know when the volume was created, which in turn gives you instance creation time (note that I'm talking about the volume attac...
Is it possible to determine (via boto) when a particular EC2 instance was created? http://boto.readthedocs.org/en/latest/ref/ec2.html doesn't seem to be giving anything helpful in this case. Need to find out the creation date of a particular set of EC2 instances. Thanks!
Determining Amazon EC2 instance creation date/time
As already mentioned, this is due to a break in JaCoCo maven plugin code. You can (temporarily) specify the version in your jenkins maven command like:clean org.jacoco:jacoco-maven-plugin:<version>:prepare-agent installe.g.clean org.jacoco:jacoco-maven-plugin:0.7.4.201502262128:prepare-agent installThis was the workaro...
I'm using SonarQube for code quality control and suddenly builds that would otherwise pass can't be analyzed and fails.[INFO] [00:00:03.630] Analysing /mySuperProject/target/jacoco.exec -> java.io.IOException: Incompatible version 1007When I invoke maven build with debug switch, this cause is revealedCaused by: java....
JaCoCo SonarQube incompatible version 1007
1 What you are getting back is chunked encoded response. 4 is the length of the chunk with content "test". The 0 in the end of chunked message marker. Most likley nginx is not adding Transfer-Encoding: chunked header to the response. Share Improve this answer ...
I recently came across with POCO project for c++ and pretty interested about it. It has also a builtin HttpServer that I want to play around. I'm following the examples and built a simple http server listening on port 8000. Then I'm configuring my nginx to proxy_pass all requests to port 8000. With proxy, browser show...
POCO HttpServer with nginx proxy
-1you can use the time range selection to get the required of particular time stampShareFollowansweredJan 21, 2016 at 11:34Pandiyan CoolPandiyan Cool6,45788 gold badges5252 silver badges9090 bronze badgesAdd a comment|
I am using grafana to show some data stored in elasticsearch.I want to know if it is possible to get some latest data (like 10 docs, use a timestamp field to judge) from elasticsearch and show in a table without any aggregation.For example.doc saved in elasticsearch like.{ timestamp: 1453369151115, status: true...
How to get latest doc from elasticsearch in grafana?
I believe you want file_path =docker/Dockerfileor perhaps, to prevent things like otherdir/docker/Dockerfile from triggering it, file_path =^docker/DockerfileIf you go through the Github web interface and view the repository's webhooks (Settings->Webhooks) and click "Edit" next to the webhook created by CodeBuild and t...
I have created AWS codebuild pipeline. It triggers automatically whenever I push to the Master branch. Now, I want to trigger it only when something is changed in Dockerfile. Below is my project structure:casestudy | | |->Docker->Dockerfile |-> Infrastructure -> infrastructure-filesBelow is the screenshot of codebuild ...
Specify file_path while triggering AWS codebuil
So i've tested your command and it works perfectly. You are however missing a quote at the end of your command.kubectl get pod nginx-5dfd5597bb-tp8h7 --watch -o json | jq '.metadata.name'gives me"nginx-5dfd5597bb-tp8h7"if you can this command to work but not your own; it is probably related to the brackets and quotes o...
I want to filter the output of akubectlcommand running in--watchmode to keep an eye on changes to a certain k8s annotation. I'm using the following command:kubectl get pod my-pod --watch -o json | jq '.metadata.annotations["my-annotation"]'Problem is - nothing is printed until I stop the command. I'd like thejqto proce...
How to apply a jq filter to kubectl output in watch mode?
curl $URL --data-urlencode[email protected]
I have a service listening to github service hooks, to perform automatic deployment. Sometimes I need to trigger this manually (without github intervention). For that, I am emulating the POST request that github is sending (post-receive-URLs).My data (my.json) looks like this (a limited subset of what github is sending...
Emulate github service hooks wih curl
0 What is the problem exactly? Read this. To start a container in detached mode, you use -d=true or just -d option. In foreground mode (the default when -d is not specified), docker run can start the process in the container and attach the console to the process’s standar...
I am very new to linux, so I can't quite understand the difference between daemon, foreground process and background process. As I understand that: Daemon is simply a background process that runs in the background and has init as its parent process. Foreground process is a process that we simply invoke from the conso...
Daemon vs process
0 Your question is unclear, but here are a couple of basic technologies that you should consider: (1) Set up another MySQL server which is a replication slave of the master. The two servers communicate so that the slave is always up-to-date. (2) Use version control such ...
I have a primary server, where I'm running couple off websites. A friend of mine has configured everything there. Im running Debian on my server. ISPConfig (Where I manage all my domains, mails, ftp) Apache Mysql PHPMyadmin Now, I have very important websites which needs to up and running all the time and I want t...
Create a failover server, with all configuration files and everything from master server
In case of DispatchQueue closures don't add any capture list at all, nowhere. DispatchQueue closures don't cause retain cycles because self doesn't own them. Basically capture lists inside a singleton object are not needed as the singleton is never going to be deallocated.
I came across a tutorial from raywenderlich were the author gave some good tips on handling threading issues in singleton. But when using closures from within the singleton class he is using 'weak' reference cycle. Is it really required so since the class is a singleton, it should have a single instance always right? ...
Is it required to to use weak reference's within a singleton class?
Thedocumentationclearly states that"if multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact."Therefore, you need to either avoid specifying multiple paths or copy the files to a flattened staging directory.You can upload two files to ...
I useactions/upload-artifactto upload artifacts after a successful workflow run like this:path: | path/to/firstbin.app path/to/secondbin.dmgThe binaries are stored inbundle/app/firstbin.appandbundle/dmg/secondbin.dmg. GHA uploads the bundle folder. So I get a useless folder in the artifact file. How to upload...
Upload file with GitHub action instead of folder
A simple, workaround would be to add more scheduled jobs in cron...i.e.30,35,40,45,50,55 21 * * * /job_to_run */5 22 /job_to_run 5,10,15,20,25,30 23 * * * /job_to_runp.s. Cron usually has the following order:Minutes Hour DayOfMonth Month DayOfWeek Command
If I want to schedule a job to occur every five minutes between 9 until 11 pm I can use the following cron trigger:0/5 21-22 * * *(or something like5,10,15,20,25,30,35,40,45,50,55 21-22 * * *for finer control over the minutes if needed).Is there a way to specify "every five minutes from 9:30 until 11:30"? The trickin...
Crontab syntax for non-aligned hourly range?
1 Instead of pushing your messages directly into SQS you could publish the messages to a SNS Topic with 2 Subscriber registered. Subscriber: SQS Subscriber: Lambda Function Has the benefit that your Lambda is invoked at the same time as the message is stored in SQS. ...
I have 2 FIFO SQS queues which receives JSON messages that are to be indexed to elasticsearch. One queue is constantly adding delta changes to the database and adding them to the queue. The second queue is used for database re-indexing i.e. the entire 50Tb if data is to be indexing every couple of months (where everyt...
Consume SQS messages using AWS lambda function
nginx is unrelated here. I would recommend the syslog module for Drupal. Put that on and then everything goes to syslog which would go to watchdog, that catches PHP errors too.PHP has a native syslog() function as well.If you are using syslog-ng I think you can route the normal php log into syslog, but I've never hea...
I'm looking into migrating my Apache based Drupal installs, but need to have rsyslog based remote error logging. We're using Amazon EC2, and error_log files written to instances that come and go is a bit of nightmare. In particular, if an application hits a PHP error, we need to see those as soon as they happen.Assum...
Using syslog with nginx / php-fpm
0 It seems like there is a permission issue to the files and folders which you are tying to backup to Azure. Please check if the folders or the drive you are backing up is formatted in NTFS. Thanks Hope this help. Share Follow ...
We are using MS Azure Backup to backup our files from a specific folder on a local disk to an Azure backup service however it is not updating the cloud version of some files when they have been updated locally. The errlog has recorded a number of the following errors Failed: Hr: = [0x80070005] : CreateFile failed \?\V...
MS Azure backup failing to backup new versions of files
0 Your best bet remains json.loads() to convert it to a dict. However, the above string isn't a valid json format, the below is ... {"NetworkInterfaces": [{ "AssociatePublicIpAddress":false, "DeleteOnTermination":false, "Description":"Primary network interface", "DeviceIn...
This is the AWS backup restore metadata I have the below key-value pair data where value has whole string contains multiple data which need to be changed like false to true or true to false. NetworkInterfaces key has the string value which has multiple key-value pairs which I am not able to change as it is a whole str...
Key-Value has the data with string value however value string as multiple data which needs to be changed
I finally found the solution .. the docker set the memory as 2GB while the MS SQL server requires 3.25GB... All i had to do was go to the Docker preferences and changed the memory to 4GB and it works :). I was using sql server on docker on Mac.
while trying to log in using this .. mssql -u sa -p mypassword .i get this error, Error: Failed to connect to localhost:1433 - connect ECONNREFUSED 127.0.0.1:1433 I have installed sql server on docker using this https://www.microsoft.com/en-us/sql-server/developer-get-started/java-mac tutorial and started it. I am usi...
Mssql login fail ECONNREFUSED 127.0.0.1:1433
I found the solution myself. I hope it would be helpful for others.function do_this_in_an_hour() { $postid = "1"; //Supply post-Id here $post->ID. wp_update_post(array( 'ID' => $postid, 'post_status' => 'draft' )); } add_action( 'my_new_event','do_this_in_an_hour' ); wp_schedu...
I am developing a plugin for a Wordpress website in which I would like to generate a report on the first day of every month and send it to the users/admin.Creating a Cron job in the server would be a perfect solution but there are few hurdles in creating Cron Job programmatically as the procedure differs from Server to...
How to run a function automatically on scheduled Intervals?
Before doing yourgit pullcommand, it seems you have uncommitted or unstaged files on master. What agit statuscommand say ?If you have files to commit to master, commit them before changing the branch from master branch to your feature branch.If you need to commit these files on the feature branch only, you can do :git ...
I have a very hard to merge master changes to my feature branch. I just tried to merge master changes to my feature branch to test the code. I know there are files that have conflicts but I don't think I did it correctly.I tried to rungit pulland got the following error. When I rungit checkout mybranchand saysneeds mer...
unable to merge master changes to my feature branch due to conflict
How can I take all pods of a Kubernetes deployment offline?I would recommend to scale the Deployment to0 replicasin this case.Use e.g.kubectl scale deployment <my-app> --replicas=0You can easyli restore this by scaling up to the number of replicas that you want.You can also scale multiple deployments at the same time, ...
We have a Kubernetes cluster that has several deployments, each of which can have multiple pods running at a time (so far so standard). We need to do some database migrations (not hosted on the cluster), and can't have any of our code potentially altering values while that is happening - as such we need to take offline...
How can I take all pods of a Kubernetes deployment offline?
The Web Service does not allow to query this information.
For my release automation i'm creating a document generator that includes the current measurements from sonarqube. In this document i would like to report the differences between several versions of the code. I managed to get the list of versions without any problem usinghttp://nemo.sonarqube.org/api/events?resource=or...
How can i get a metric from a specific version in sonarqube using the webservice api
You have to associate every project in Eclipse with the corresponding module in Sonar. For instance, in your example, the "module1" Eclipse project should be associated to the "con.example.project:module1" Sonar project.
I have a maven project of the form<project> <groupId>com.example.project</groupid> <artifactId>project</artifactId> <module>module1</module> <module>module2</module> <module>module3</module> </project>I am able to run Sonar analysis using maven. The project key is com.example.project:proje...
sonar-eclipse plugin analysis for multi-module project
As @Raxi commented correctly, buster and bullseye are the the Debian versions v10 and v11 respectively. Omitting it by using php:apache, it pulls the latest supported version which is bullseye at the time of writting. So php:apache and php:apache-bullseye should be equivalent. You can check the "Image hierarchy" of a ...
What is the difference between PHP Official docker Images? php:apache-bullseye php:apache php:apache-buster
What is the difference between PHP Official docker images "apache-bullseye" and "apache" and "apache-buster"
Check out the repository, rungit commit --amend --author='"Your Name" <[email protected]>', and then rungit push -f. The old merge commit will be replaced with a new one with the new author information. This assumes that no other commits have been made since that merge; if this is not the case, then you'll have to merg...
I'm working on a university course's task, but sadly I was in a hurry and forgot to change my public name to my real name. Now their algorithm won't be able to pair that merge with me.Now I changed my GitHub public name on my profile.How could I change that merge's commit's author name to my real name?
I merged a pull request on GitHub and I have to changed that commit's author. How?
You should use SSL every time you send sensitive information over a network like passwords, credit card information, your bank account, ...Is it really necessary to always use SSL when a user is logged in?Not always however it is pretty easy these days to steal someone's session cookie over an unencrypted wireless netw...
I have read that you should use SSL not just when the user is logged in, but for the entire time the user is logged in. It read, "Many web sites log in via SSL and redirect back to HTTP after you’re logged in, which is absolutely the wrong thing to do." I think they're talking about session hijacking.Ref.http://blogs...
Proper SSL Usage
You have one more * than required in your crontab entryTry0-59 * * * * php -f /Documents/Programs/WeeklyHours/weekly_hour.phpThe 0-59 is so that it will run every minute
What is wrong with this cronjob?* * * * * * php -f /Documents/Programs/WeeklyHours/weekly_hour.phpI have combed through the various cron questions on StackExchange and nothing is working. When I run php -f /Documents/Programs/WeeklyHours/weekly_hour.php in the terminal it works perfectly. I know the cron jobs are runni...
Running php script using cron on a Mac
A Safer way to get a PID of the last background process is to remember the value of $!:nohup scrapy crawl third_job & PID=$! wait $PID
i am running python scripts on a ubuntu server though cronjob bellow is my bash file content#!/bin/bash cd /home/ubuntu/ PATH=$PATH:/usr/local/bin export PATH nohup scrapy crawl first_job & nohup scrapy crawl second_job & nohup scrapy crawl third_job & wait $(pgrep third_job) nohup scrapy crawl fourth_job &what i want ...
cronjob wait issue
Seehttp://www.gotw.ca/gotw/009.htm; it can describe the differences between the heap and the free-store far better than I could:Free-store:The free store is one of the two dynamic memory areas, allocated/freed by new/delete. Object lifetime can be less than the time the storage is allocated; that is, free stor...
Dynamic allocations withnew/deleteare said to take place on thefree-store,whilemalloc/freeoperations use theheap.I'd like to know if there is an actual difference, in practice.Do compilers make a distinction between the two terms? (Free storeandHeap, notnew/malloc)
C++, Free-Store vs Heap
Interestingly your issues seems to be with the type of quotes you have chosen to use. If you change this line:ENTRYPOINT ['docker-entrypoint.sh']toENTRYPOINT ["docker-entrypoint.sh"]then everything starts to work as expected.If you checkthe documentation for the type ofENTRYPOINTyou are usingall of the examples have do...
I am creating a simple image with the followingDockerfileFROM docker:latest COPY docker-entrypoint.sh /usr/local/bin ENTRYPOINT ['docker-entrypoint.sh']Inside my container:/ # ls -al $(which docker-entrypoint.sh) -rwxrwxr-- 1 root root 476 Jul 26 07:30 /usr/local/bin/docker-entrypoint.shSo the entryp...
Docker entrypoint not found although in PATH (and executable)
Maybe try this in your .gitignore. This should ignore the entire .vscode directory, no matter where it is located. **/.vscode/
I'm having trouble using .gitignore with my .vscode folder in my repository. I added a rule in my .gitignore to ignore my entire .vscode/ folder: # Visual Studio Code # .vscode/* .vscode/settings.json !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json .history.vscode/setting...
How to fix .vscode tracking in gitignore
For anyone who wants to mock the client directly, you can use the library aws-sdk-client-mock which is recommended by the AWS SDK team. Here is an introductory tutorial The initial steps: import fs from 'fs'; import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3'; import { mockClient } from 'aws-sdk-client-m...
Testing an s3 upload? The method to test is export class ProcessData { constructor() {} async process(): Promise<void> { const data = await s3Client.send(new GetObjectCommand(bucket)); await parseCsvData(data.Body) } This is my attempt at the test case. import {S3Client} from '@aws-sdk/client-s3'; jest...
How do I mock AWS S3 GetObjectCommand with jest using the v3 sdk?
The immediate cause of your problem is that your application is filling the heap. (Obviously! That is what an OOME means.)The band-aid solution that you have been trying is to make the heap progressively larger, and larger with various-Xmx...arguments. Apparently it isn't working. You keep increasing the heap size ...
I am getting erroroutOfMemoryErrorJava Heap Space while executing project..My project is on Theft detection of Java Programs by using abirthmarktechnique.. A heapsnapshot is taken from google chrome developer tools where it contains lots of nodes to store in the database.. Am usingnetbeansIdeMYSQLdatabse..When insertin...
I am getting error outOfMemoryError Java Heap Space while executing project
There isn't a native integration between Kubernetes Secrets and Google Secret Manager. As described inthe documentation, the best solution is to use the Secret Manager client library to interact with secret manager and especially to access them.At the security point of view, using Workload Identity is also the best sol...
Some secrets need to be fetched by the PODS, secrets are stored in GCP secret manager, what is the secure and efficient way to fetch the secrets within the pod ?Thank you !
Access secrets in GCP secret manager from PODs
Unfortunately there is no built-in feature to do it using labels in k8s. But since your jobs are scheduled based on unpredictable user requests, you can achieve your goal like this:create a new namespacekubectl create namespace quota-pod-nscreate a ResourceQuotaapiVersion: v1 kind: ResourceQuota metadata: name: pod-m...
I would like to be able to limit the amount of jobs of a given "type" that run at the same time (maybe based on their label, e.g. no more than N jobs with labelmylabelmay run at the same time).I have a long running computation that requires a license key to run. I have N license keys and I would like to limit the amou...
How to limit the amount of simultaneously running jobs of a certain "type"?
For your issue, you should know there are differences between Azure Web App and Azure Container Instance.In Azure Web App, you just can use only two ports: 80 and 443. And they are exposed in default. You just need to listen to one of them or both in the container. But in Azure Container Instance, you can expose all th...
Our web app runs on two ports azure web app exposes port 80 by default which we have used for part 1 but for part two we need another port how can we expose it?Our web app runs perfectly on local.Our web app runs perfectly on container instance on two ports (there is an option in Azure for multiple ports while creating...
How to expose web app for container on two different ports in azure?
To configure a redirect you should use an URL record as described in ourredirect documentation.However, it's not possible toredirect an HTTPS URLbecause of the priority between SSL negotiation and HTTP headers. In this case, because you also wanthttps://ourdomain.comto redirect tohttps://www.ourdomain.com, then you nee...
We're using DNS simple to point our domain to our SSL-enabled Heroku app. The behavior we're seeking is as follows:http://ourdomain.comhttps://ourdomain.comhttp://www.ourdomain.comShould all permanently redirect to:https://www.ourdomain.comWe've already created a CNAME for www.ourdomain.com that points to our app's .he...
Redirecting naked domain to www with DNSimple
You cannot download the private key for an SSL certificate from ACM - ACM certificates are only for use on AWS ALBs, CloudFront, API gateway and other AWS infrastructure. ACM keep hold of the private key and will use it whereever the certificate is used. You can download the certificate using awscli with aws acm get-c...
I have a public SSL certificate in Amazon Certificate Manager. I want to upload this certificate to an instance that is not hosted in amazon. How can i download the certificate from Amazon Certificate Manager. I need to download both certificate and private key
How to download a public certificate from Amazon Certificate Manager
I was able to fix this with the following command, usingsudoas suggested:sudo docker-compose run pishrink /pishrink/pishrink.sh /pishrink/big-image.img /pishrink/small-image.imgShareFollowansweredMar 26, 2019 at 1:56charliesneathcharliesneath1,99733 gold badges2222 silver badges3636 bronze badgesAdd a comment|
I'm trying to runpishrinkon MacOS using a Docker host, as explainedhere. Thepishrinkscript shrinks the size of an.imgso it's quicker to burn onto an SD card.I have Docker Desktop running, and I've add the repo to the top-level in my file system (/pishrink) and and running the following command:docker-compose run pishri...
"OCI runtime create failed " issue running script on MacOS using Docker host
I found out that this issue resolved after a few hours by itself.
I am trying to upload an image to my Amazon S3 bucket. But I keep getting this CORS error, even though I have set the CORS configuration correctly. This is my CORS configuration:<?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</Al...
response for preflight is invalid (redirect) for aws s3
I suspect that before you have changed the settings you have made commits which mention your real email. You should now modify your local commits so that they use the github's proxy emailBased onthis answer, it would be like (I did not test it!):$ git filter-branch --commit-filter ' if [ "$GIT_AUTHOR_EMAIL" = "RE...
If I rungit config --global user.emailI get:[email protected].Then if I rungit pushwith "Block command line pushes that expose my email" ticked in my Github email settings, it doesn't work, witherror: GH007: Your push would publish a private email address.in the output. I can't add this email address to Github because ...
Is there a workaround for git push using the Github provided noreply email, without unticking "Block command line pushes that expose my email"?
location /assets/ { expires 30d; add_header Pragma public; add_header Cache-Control "public"; proxy_pass http://localhost:2368/assets/; # or proxy_pass http://localhost:2368; proxy_set_header Host $host; proxy_buffering off; } Nginx doc for proxy_pass say that: If the proxy_pass directiv...
I have the following base Nginx configuration (pre-installed Ghost platform on DigitalOcean droplet): server { listen 80; server_name xxx.com; client_max_body_size 10M; location / { proxy_pass http://localhost:2368/; proxy_s...
Nginx setting expires header with proxy
I'm guessing not, yet. Taints and tolerations are in alpha and alpha features are only supported on GKE temporary clusters. Even in alpha, I'm not sure to what degree taints and tolerations actually work. There are a lot of changes being made at the moment and this feature should move to beta and be usable in 1.6.Pleas...
So it is possible to usekubectl taintand its counterpart tolerations to restrict Kubernetes pods to/from being scheduled onto specific nodes. However I can not currently find a way to configure Google Cloud so that a taint setting will persist across node creation. Is it possible?Article about taint
Automatically apply Kubernetes taint in Google Cloud
Neither GitHub nor Bitbucket are SCMs -- they are just hosting services built around Git and Mercurial, which are the underlying SCMs. If your question is actually whether you should use Git/Mercurial as an SCM, then most people will answer "yes", but it sounds like you should read up on exactly what these are before ...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be imp...
GitHub or BitBucket? [closed]
+50I think you need to rename you modules like if your project is abc. Please change your modules like abc_xxx etc...it may work for youShareFollowansweredSep 22, 2015 at 5:16anilanil51Add a comment|
We have a case where there are multiple projects configured in sonar. All the project have different modules with same names.With this, as and when we execute sonar for one of the project, the execution is getting terminated with below error.[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar ...
We have a case where there are multiple projects configured in sonar. All the project have different modules with same names?
I see this line in your hs* files:Memory: 4k page, physical 502752k(372080k free), swap 0k(0k free)Is it true, that your machine has only around 370M of free memory? And you try to start JVM process with "jvm_args: -Xms1g" ? Where from this 1G could come?
I'm running an Java app on Ubuntu 12.04.3 x64 VPS using Oracle Java. After few minutes the process gets killed by the OS: "killed" appears in the console.Before the crash, excessive memory usage can be seen using TOP (few gigabytes of virtual memory). In order to inspect the leak I have installed the Java VisualVM and ...
Java process gets killed after depleting system memory. Why?
Not sure about why it doesn't resolve the variables. Maybe the resolution of the variable doesn't take place in your environment (Windows?).For the time being, can you set the version values explicitly inside the docker compose yml file and run to see if it sets up correctly?
I am a newbie to spring-cloud-data-flow. I am following the documentation of Spring Cloud Data Flow (https://dataflow.spring.io/docs/installation/local/docker/). I have downloaded docker-compose.yml file and put it in D:\Dev\spring-cloud-dataflow> directory. When I try to run following commands:D:\Dev\spring-cloud-dat...
Error with docker-compose up for Spring Cloud Dataflow - "DATAFLOW_VERSION is not set!"
You could have the started process write its process ID to a file when it starts up. Then make another cron job that reads that file and kills the process ID in that file.You could alternatively (rather than modifying the started process) make a 'starter' bash script which writes the started process's ID to a file:#!/b...
I have a python code that generates the command to record a live stream from Ustream.I want to set a cronjob to run this script once a week to record a show, is there a code I could use in the python code so that after generating the right command it's executed for a given time and then stop it?I guess there should be ...
Run a shell script for a given time in Python
Fabric doesn't support running arbitrary python code on a remote host. Fabric mostly runs by invoking shell commands over SSH (for remote machines). The remote machine doesn't even need python installed for Fabric to work.Theexecnetproject allows you to run python code over the network like you're imagining, you can ru...
This Fabric command works just fine forfab local grab_from_s3:bucket=...:def grab_from_s3(bucket, path, localfile): s3_connection = S3Connection() s3_bucket = s3_connection.get_bucket(bucket) s3_key = Key(s3_bucket) s3_key.key = path s3_key.get_contents_to_filename(localfile)Of course, if I feed it ...
Fabric: executing inline Python on target host?
If you want to use API Gateway with an access token you have to jump through a few extra hoops.For full details take a look at "Integrate an API with a User Pool", especially the section on configuring a COGNITO_USER_POOLS authorizeron methods.Specifically, from the Method Request's Settings > Authorization:Choose the ...
I am using API Gateway and an Authorizer to control access to a folder in an S3 bucket. The Authorizer is configured to use a Cognito User Pool. This user pool has the OAuth Scopesphoneandemailassociated with it and also a custom scope which I intend to grant read access to the S3 bucket.I am finding however that the A...
API Gateway Authorizer Accepts ID_token But Not Access_Token
It sounds like Workload monitoring and logging may not have been enabled and currently it's only doing system monitoring and logging. Please see the docs here on how to change the logging settings:https://cloud.google.com/stackdriver/docs/solutions/gke/installing#installing
I have a deployment on google gke, and I can't see the pod logs on the console even though the Cloud logging is enabled on the cluster? So what could be the issue? did I miss something?
Can't see the pod logs on google GKE
you still need your github repository. git remote add heroku {heroku repository path} will add another remote repository to your code, then git remote will list all your remotes, probably -- origin -- heroku and then git push {remote name} {branch name} will push to the appropriate remote: git push heroku maste...
This question already has answers here: How to attach my repo to heroku app (3 answers) Closed 8 years ago. I have been creating a GitHub project. Now I'm planning on hosting it on...
Use Heroku with an existing GitHub repository [duplicate]
I discovered the following link in theAmazon DocumentationCreating a Procfile apparently is the way to go.
I'm a relative newbie to AWS and Elastic Beanstalk.I have a Java application which requires me to pass JVM arguments on the command line. I need to pass a jasypt password and heap size settings.I've read theAmazon documentation, which describes how to accomplish setting environment variables which I can read in Java us...
Passing JVM Arguments to a Java application on AWS Elastic Beanstalk
Since the ffmpeg package is not available with yum package manager, I have manually installed ffmpeg and made it part of the container. Here are the steps:Downloaded the static build fromhere(the build for thepublic.ecr.aws/lambda/python:3.8 image is ffmpeg-release-amd64-static.tar.xzHereis a bit more info on the topic...
I'm trying to install ffmpeg on docker for amazon lambda function. Code for Dockerfile is:FROM public.ecr.aws/lambda/python:3.8 # Copy function code COPY app.py ${LAMBDA_TASK_ROOT} # Install the function's dependencies using file requirements.txt # from your project folder. COPY requirements.txt . RUN yum install ...
install ffmpeg on amazon ecr linux python
You need to change your img src attributes in your index.html file, I added <!-- Edit Line Below --> comments before lines you should edit <!DOCTYPE> <html> <head> <title>Google Homepage</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="topnav"> <ul> <li><a href="https://a...
I am currently working on the Google Homepage assignment with the Odin Project. I finished the code and committed all of the files to my google-homepage GitHub repository and then uploaded to the GitHub pages to make a website through GitHub. Everything is working fine but the images are not loading onto the website. ...
The images on my GitHub page are not loading
From the C++ Standard, section 5.3.5/2: the value of the operand of delete shall be the pointer value which resulted from a previous array new-expression. If not, the behaviour is undefined
I saw some code as below during a peer-code-review session: char *s = new char[3]; *s++ = 'a'; *s++ = 'b'; *s++='\0'; delete []s; // this may or may not crash on some or any day !! Firstly, I know that in Standard C++, pointing to one-past the array-size is O.K. though accessing it results in undefined behaviour. So ...
delete[] supplied a modified new-ed pointer. Undefined Behaviour?
Make a new repository outside the DocumentRoot of your webserver. Copy your website into this new repo and rungit initThis might be inefficient when you make changes to your website, but I wouldn't want visitors viewing the contents of my .git folder...
I'm developing a website and I wonder where I should put the .git folder ? in the same dir of the /var/www/html/mysite?I got GitHub account btw, what do you think its good or there is better providers?
git - where I should put the .git folder?
Usekubectl get all -A --show-labelsget all -A will list all resources, with -A it will check in all namespaces, --show-labels will give display all labels in output.ShareFollowansweredOct 24, 2023 at 8:17Meetu GuptaMeetu Gupta30422 silver badges66 bronze badgesAdd a comment|
I want list all labels ofall resources(include namespace, ingress, configmap etc.) in a K8s cluster, but I can't find easy way for that. Any K8s APIs provide similar feature? The labels result is unique better.
How to list all labels in Kubernetes?
The issue is due to ruby bug with directory with spaces.Move your project out of the$USER_HOMEdirectory or choose to have your username without any space (it will save you some issues if you have to work with some Linux tools)Your Vagrantfile does not contain any information about the box to be used. make sure to edit ...
I tried to run a virtual machine through vagrant over VirtualBox. I installed VirtualBox and then Vagrant. Then, I cloned a repository from github usinggit clone http://github.com/<username>/fullstack-nanodegree-vm fullstack. Then, I changed directory tofullstack. In the git shell, I then run vagrant init and then trie...
unable to run virtual machine through vagrant up
In general, goto is unstructured control flow that interferes with many compiler optimizations, regardless of platform. The CUDA C compiler should handle code with goto in a functionally correct way, but performance may be suboptimal. Part of that suboptimal performance may be the compiler's placement of convergence ...
For simple intra-warp thread divergence in CUDA, what I know is that SM selects a re-convergence point (PC address), and executes instructions in both/multiple paths while disabling effects of execution for the threads that haven't taken the path. For example, in below piece of code: if( threadIdx.x < 16 ) { A: ...
The impact of goto instruction at intra-warp divergence in CUDA code
If you search for "ruby netfilter" there's more to be found. NetFilter (http://netfilter.org/) is the underlying framework behind iptables.http://rubyipq.rubyforge.org/(traffic shaping)https://github.com/johnl/netfilter.rb(DSL)http://rubyforge.org/projects/iptcext/(IPTC library interface)The last is most like what you ...
I've been crashing around on the netfilter/iptables home page as well as beseeching The Google, but no luck so far.I have a Rails application which needs to control packet filtering for its Linux host. It could do this by just dumping rules into /etc/sysconfig/iptables and bouncing the iptables startup script, of cours...
Is there a Ruby API for manipulating packet filtering chains a la iptables?
I fix it by removingnginx.pidin/usr/local/var/runand then usingbrew services start nginx
Greeting, i have a server installed nginx streaming i did stop nginx and then did reload it, but it show me below error and was not start:nginx -s stop nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)i did below command and nothing:sudo nginx nginx: [emerg] open() "/usr...
Nginx reload error in mac osx
Generate the impex export scriptGo toSystem->Tools->Script Generator.In the popin click ongenerate. In the textarea you'll then have te export impex for each model.Copy the models you want to export.Export modelsGo toSystem->Tools->Export.Paste the impex copied previously and cick on save. Click onnextthenstart.Downloa...
How can I transfer data from one environment to another using impex export and impex import cronjobs through Hybris 6.1 HMC
Impex export and Impex import cronjobs in Hybris
This is something that the Karate project would like to do in future, but for now, pull-requests are welcome.Here is a thought. Since Karate canoutput the JUnit XML formatwhen you use theRunnerbuilder API you should be able to use any GitHub action that supports that format, and it is widely supported. For example I fo...
I am running Karate framework tests to do integration testing in a Github repo.My boss would like the main build summary to show a quick summary of the tests kind of like this (but this does not work)- name: Karate Test Result Report uses: dorny/test-reporter@v1 if: success() || failure() # run this step eve...
Is there a re-usable github action to display the results of my Karate framework tests on the main build summary page?
IMO this isn't much of a NEST usability issue as it's just non-trivial to do this in Elasticsearch itself. I have had success by negating a wildcard query (.Wilcard) on that field and/or using.Existsto find documents which do not have that field because null values are not stored on a document and empty values are diff...
Everyone know that Nest Elasticsearch is not easy and boring to make clarified queries for looking something. I also stumpled upon this issue . As a result I could't use 'not empty' and null in my query.var list = client.Count<LogMessage>(s => s.Index("xxx-*").Query(q => !q.Term(t => t.Field(f => f.Test.Su...
How can I use not exist or null in elasticsearch query (EQL) by using Nest C#?
Have you tried this option -s, --storage-path "Configures storage path [$MACHINE_STORAGE_PATH]"? You can see it in docker-machine --help.
My development machine is a laptop with a smallish SSD and a huge external disk. Ideally I'd like docker-machine to use the external drive rather than filling up my internal disk. I know that I can hack it with mounts and so on but is there a way to make the docker-machine command use a directory that I specify instea...
How can I make docker-machine create a VM in a specific location
I've find a way to solve the problem.Instead of trying to usetelepresenceas for the inverse use case, solution comes by using aport-forwardwithk9s. When creating it, it's important to do not leave the default interface, that is set tolocalhost, and put0.0.0.0instead to ensure that it listens traffic from all interfaces...
I'm used to connect to my cluster usingtelepresenceand access cluster services locally.Now, I need to makeservices in the cluster available to a group of applications that are running in docker containers locally. We can say that it's the inverse use case.I've an app that is running in a docker container. It access ser...
Make k8s cluster services available to local docker containers
What is the standard solution in this case?There is no 'standard' solution.Should I publish the instructions of how to open the ports on different firewalls?That would solve the problem, but I doubt all your customers have the technical skills to do it. Some installation programs contain instructions to open port on a ...
I just wrote a P2P video chat similiar to theCirrus example applicationon my web site. It works great, as long as both users manually open theports required for RTMFP. Naturally this is a deal breaker for me - since no one will use it.What is the standard solution in this case? Should I publish the instructions of how ...
P2P video chat - open firewall ports
you can use the scipy.sparse function to read sparse matrix and then convert it to numpy , see documentation herescipy.sparse docs and examples
I have a huge sparse matrix. I would like to save thedenseequivalent one into file system.The problem is the memory limit on my machine.My original idea is:converthuge_sparse_matrixtondarraybynp.asarray(huge_sparse_matrix)assign valuessave it back to file systemHowever, at step1, Python raisesMemoryError.One possible a...
Load a huge sparse array and save it back as a dense array
This feature is not planned for the moment - even though it has already been discussed a couple of times.Multiple inheritance offers some good features that we can understand. Your use case is a good example. But it also brings complexity when it comes to decide what to do when you inherit the same rule from 2 quality ...
I see a need for multiple inheritance for Quality Profiles to avoid unnecessary manual work when we upgrade.For example we would like to inherit all rules from "Sonar Way" and from "Android Lint" and restore the built-in profiles after each upgrade, making sure we are always up to date.Is this feature planned for?
Multiple inheritance for Quality Profiles
Yes, you need to have the trailing dot.You enter the entire hostname followed by a period when the hostname is not inside your domain. Since google is outside your domain, you need the "extra" dot.For example (usingexample.comas our domain), with the trailing dot, the CNAME would redirect toghs.google.com. Without th...
I'm not too experienced with DNS records and I'm trying to point a www subdomain to Google App Engine via the registrar gandi.net.When updating the CNAME record to direct traffic to ghs.google.com, is it critical that there be a period at the end of ghs.google.com in the zone file?Currently the raw zone file line looks...
App Engine Domain CNAME Record - "ghs.google.com" or "ghs.google.com."
git reset is the wrong tool to use if you just want to go back and look at an old commit, since in many modes it actually alters the history by removing commits, as you've discovered. If you want to temporarily get an old commit back in your working tree, just use git checkout. In this case, git checkout HEAD^ will ta...
So I just did a git --reset soft to go back to a previous commit. Now what if I want to go back to the latest commit that I was at before? i.e: the latest commit? I tried doing git log, but the commit listed there didn't have the latest commit.
git reset --soft and going back to the latest commit
PromQL of the displayFirst, you need to know the PromQL of the display information obtained from Prometheus e.g you have metrics like thisprobe_success{env="xxx",instance="http://xxxx.com",job="xxxx-job"} 1so, you can query byprobe_success{env="var1",instance="var1",job="var1"}Declare the variables you need in grafana....
I need to filter a table based onjob and theninstanceIn prometheus.yml I have "node_exporter" job with targets (port:9100) and "telegraf" job with targets (port:9273) In grafana dashboard I have a variable for each job showing the proper targets,How do I query the table to present the relevant data from each variable? ...
Grafana filter jobs and targets
Theifstatement works in the wrong direction: thethenclause is executed only if the script is already installed. Also, it can be simplified:if ! crontab -l | grep -q start.sh; thenThis works becausegrepsets a proper exit code.
Can anyone see what I have done wrong here? This is a simpler piece of my own code that works just fine. I have never tested it on sh though. Perhaps something just isn't working on sh? The if statement opens cron and looks for an identical line before writing. This prevents duplicates.if [ "`crontab -l | grep $SCRIPT`...
bash/sh cron not writing
0 Disallowing pushes to a branch where the pull request has unresolved conversations would be counterproductive; many issues are resolved by adding (or amending) commits to fix the raised issue. But if you mean you want to disallow merges of that branch (either in GitHub it...
I have a questions regarding GitHub pull requests. Is there a way in GitHub, not to push to the branches if there are unresolved comments? Also, is there a way, when the PR is closed, the same branch not to make any push? Thank you in advance. Greetings, Felipe
GitHub pull request unresolved comments
How you are authenticating the script using the SA or ?# If running inside pod config.load_incluster_config() v1 = client.CoreV1Api() v1ext = client.ExtensionsV1beta1Api() w = watch.Watch() mydict={} webhook_url = ''; while True: pod_list= v1.list_namespaced_pod("default"); for i in pod_list.items: ...
I'm using api python kuberntes and callread_namespaced_job_statusmultiple time to get status of job.However, approximately in250 timesto called the api, appears the follow messageReason: Unauthorized HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date':...
Call multiple time kubernetes api
The easiset way to achieve what you want would be usingkubectl port-forward service/hello-app 3000:3000and appending following entry to/etc/hostsfile127.0.0.1 hello.someurl.comThen you can just open your browser and go tohttp://hello.someurl.com:3000
I have a local Kubernetes cluster based onMicroK8srunning on an Ubuntu 18.04 machine.What I want to achieve:Generally I want to expose my applications to DNS names and test them locally.My setup:I created the following test deploymentapiVersion: apps/v1 kind: Deployment metadata: name: hello-app labels: app: he...
How to assign a DNS name to an application in a local Kubernetes cluster?
Like Repox said above, you need to determine the full path to your PHP binary. Typing "which php5" should give this to you.Also if you want to redirect errors as well as normal output to your cron.log file, you should try adding "2>&1" at the end of the line.This will redirect all standard errors to standard out (your ...
I have installed php5-cli to execute it from the shell# aptitude update # aptitude safe-upgrade # aptitude install php5-cliI edited the crontabcrontab -eWith this code30 11 * * * (php5 /var/www/dreamteam/jobs/save_events_to_db.php) >> /var/www/dreamteam/logs/cron.logI tested it manuallyphp5 /var/www/dreamteam/jobs/save...
Error CRON for php script - DEBIAN
The following may work.From repository YYY, run the following:git remote add XXX https://github.com/YourUsername/XXX.git git fetch XXXNow, you should have branches likeXXX/masterand any other branches that were in repository XXX, prefixed withXXX/.If you want to merge, for example,XXX/masterand your current branch on Y...
I have a github repository XXX. I want to merge into a branch of repository YYY. After the merge, YYY should have a branch named XXX. How can I do this?
How to merge a git repository into a branch of another repository