Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The command git clone http://url will clone the repo without visiting GitHub. Maybe your repo's name is an easy misspelling of another repo, or someone attempted to download all repos by cloning from a list of URLs, looking for loose passwords or doing statistical research. It could be cloned by you from another IP (o...
As the pictures show below, the git clones of my repo is 26, and the visitor of my repo is 4. According to the literal meaning, the cloners means who look my repo page and decide to clone my repo to local or somewhere, and also, in the meantime, they should become the visitors of my repo. However, the traffic data of ...
Some confusion about the traffic of github repo?
11 For the resource and method where you want the header, go to Method Request → HTTP Request Headers → Add Header and set the Name as CloudFront-Viewer-Country. Click the circled checkmark to add. This exposed the header to the remainder of the execution flow. Then, in...
I'm using AWS API Gateway and its HTTP Proxy. I need to pass the CloudFront-Viewer-Country header to my endpoint. I tried following the same setup outlined in the following question Access headers in AWS API Gateway using HTTP Proxy? and I'm getting the following headers on my endpoint server. Array ( [host] => ...
Accessing cloudfront-viewer-country header in AWS API Gateway using HTTP Proxy?
I'm curious to see the group's thoughts on this, but I'm of the opinion that I never want to lose data. I still find myself digging through SVN commits from 10 years ago to see where my head was, and finding little ideas I forgot about that I want to bring to life again with my new, more powerful programmer brain. Als...
We are using Gitflow for all developments but we never set upstreams for feature branches and Gitflow removes our local branches when we execute the finish command. There is only three of us and usually we work off of the develop branch which is upstreamed to track our develop branch on the remote repository. 2 Quest...
Is it a good idea to never delete branches from the remote repository?
3 You can refer to the documentation below which will help you to get to the Beanstalk console and add the SQLite3 to the AWS. This is for the MySQL but you can change the database engine to SQLite3 from Database settings. https://docs.aws.amazon.com/elasticbeanstalk/late...
I made a website that uses a sqlite3 database, and I'm trying to get my program on AWS using elastic beanstalk. I've been googling, but can't find any instructions/tutorials on how to get a sqlite3 database running on AWS. Does AWS support sqlite3? Is there some trick to making it work? And if not, what do you recomme...
Can you get a sqlite3 database on AWS?
1 I used this Dockerfile FROM php:7.3.5-apache RUN apt-get -yqq update \ && apt-get -yqq install --no-install-recommends libzip-dev git RUN apt-get update && apt-get install -y libmcrypt-dev libtool zip unzip \ && docker-php-ext-install mysqli pdo_mysql \ && p...
I'm trying to install php-ast extension to my project. This is my Dockerfile: FROM php:7.3.5-apache RUN apt-get -yqq update \ && apt-get -yqq install --no-install-recommends libzip-dev git COPY ./php/php.ini /usr/local/etc/php/ COPY ./php/php_errors.log /var/log/php_errors.log COPY ./apache/error.log /var/log/apac...
Unable to enable php-ast in docker php 7.3.5
looks to me that the surprise is that your master doesn't have a clean merge from their master. You expect that there isn't any change that you made in your local master since all your changes are in a branch that you are working on, so "merging" their master into your master should be a simple "fast-forward". But git...
I am working on an open source project with a company. I forked their repo and cloned the repo on my machine and set my master branch to track company's original repo. I started working on the project and made some changes in a new branch. In the meanwhile, the organization made around 1000 commits. Now when I want t...
Conflict in merging from upstream
The message Error response from daemon: No such image: docker/whalesay (tag: latest) is a little confusing, but the real error is the line just above it: Repository docker/whalesay already being pulled by another client. Waiting. If you begin pulling a repo and then controlc, the Docker daemon will hang out for a w...
i have installed docker on ubuntu14.04-64bit,when i want to run a demo,error occurs, y7:~$ docker run docker/whalesay cowsay boo Unable to find image 'docker/whalesay:latest' locally Repository docker/whalesay already being pulled by another client. Waiting. Error response from daemon: No such image: docker/whalesay ...
failed to pull docker/whalesay from dockerhub,
Permission denied (publickey).^MThe^Mat the end that your script might have\r\neol (end of lines) characters instead of\n: trydos2unix.Also make sure your script is executable:chmod 755 /var/www/nginx/yok/laravel/commit_data.shTheOP hamobimentions another reasonin the comments:problem even more basic. had to move users...
I've looked this up and found lots of answers but I am a unix/linux dummy. Not able to follow peoples instructions. Not sure which files to edit etc..need simple step by step instructions hereI have a shell file set up like so:#!/bin/bash exec &>> /var/www/nginx/yokohama/laravel/storage/cron.log today='date +%Y-%m-%d...
running git from crontab - permission denied
Luckily this is a rather painless process. First you'd convert your compose files to Kubernetes manifests usingkomposeand typically would also need to manually adjust the mapping; suggest you create Helm charts here. Then, you would test them locally usingMinikubeand once you're satisfied, move into a prod environment....
Actually, my organisation is using the docker compose files and they want to migrate it to Kubernetes and they had a plan to use stackpoint.io for the Kubernetes, so what is the best procedure and steps to implement Kubernetes.
Docker compose to Kubernetes migration
Generally speaking, Terraform always needs to evaluate provider configurations during the planning step because providers are allowed to rely on those settings in order to create the plan, and so it typically isn't possible to have a provider configuration refer to something created only during the apply step.As a way ...
I am trying to utilize Rancher Terraform provider to create a new RKE cluster and then use the Kubernetes and Helm Terraform providers to create/deploy resources to the created cluster. I'm using thishttps://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/cluster_v2#kube_configattribute to create...
How to make Terraform provider dependent on a resource being created
0 Java is designed to have seperate regions of memory. on heap like byte[] which is designed to be re-allocable and is zero'ed out and not lazy. The reason this is so is that the memory is managed. off heap which has the advantage it can be lazy but it can't pretend to be...
I am trying to implement a proof-of-concept memory-aware scheduling functionality by extending an existing Java program. The program uses buffers under the form of byte []. For my purpose byte [] are problematic because they are garbage collected they are allocated upfront instead of lazily (the JVM seems to touch ...
Java, buffer lazily allocated, free-able on demand and addressed as byte []
After searching, I decided to do it another way. As you can't easily modify theprometheusendpoint itself to include other paths(Tried withWebEndpointExtension, but didn't have any success), I created my own custom endpoint that fetches data from a service that contains the main registry that is autowired by Spring Boot...
Currently, we are experimenting with setting Prometheus up for monitoring for our services, internal as external. The problem is that we cannot configure Prometheus for some of our external services, but we would like these to be still included as a separate job in Prometheus.I want to have 2 different Prometheus endpo...
Spring Actuator: Configure multiple Prometheus endpoint with different data
Figured it out. My VPC was set to Dedicated Tenancy, which doesn't support all types of instances. The Dedicated setting was done in error actually. I deleted the VPC (you can't seem to change its Tenancy setting) and then created a new one, followed the steps for the Launch Configuration and the ASG created the insta...
I have created a Launch Configuration with which I am creating a Auto Scaling Group. When I create the Auto Scaling Group from the Launch Configuration, I get the below error: Description:DescriptionLaunching a new EC2 instance. Status Reason: The requested configuration is currently not supported. Please check the do...
AWS Launch Configuration error: The requested configuration is currently not supported
kubectlneed either a bearer token passed inline or akubeconfigfile with a token or a certificate to authenticate the client to the Kubernetes API Server.By giving--insecure-skip-tls-verify=truekubectl will not verify the API Server endpoints authenticity but that does not mean that you can call Kubernetes API without a...
Would like to know if anyone has experienced the point of need to call kubectl commands from the node?What i'm trying to do for this example is to access the master from the node and get some valuable information.bafontainha ~ kubectl get pods --server https://localhost:6443 --insecure-skip-tls-verify=true ...
Kubernetes - kubectl get pods being called from node
Is it client side or server side?It can be either, or both.Server side caches are generally used to avoid making expensive database operations repeatedly to serve up the same content to lots of different clients.Client side caches are used to avoid transferring the same data over the network repeatedly.How to store cac...
I am confused in "cache". Is it client side or server side? How to store cache client side and how to store cache on server side? And If cache store in server side then why people do clear cache in browser?
Cache is client side or server side?
Theportsdirectiveindocker-compose.ymland theEXPOSEinstructionin a Dockerfile serve different purposes and do not have the same effect.Dockerfile:EXPOSE 3306Container +-----------------+ | | | Application | | Port | --> 3306 (EXPOSED, not accessible from host by default) | ...
Does declaring on a docker-compose.yml:ports: - "3306:3306"and on Dockerfile:EXPOSE 3306have the same effect?
Does "ports" on docker-compose.yml have the same effect as EXPOSE on Dockerfile?
Putting this out there in case someone else needs it.I optimized the merging code to the best of my ability but still the bottleneck was reading or downloading the s3 files which is pretty slow using even the official aws cli.I found a library s5cmd which is pretty fast as it makes full use of multiprocessing and multi...
I have millions of files being created each hour. Each file has one line of data. These files need to be merged into a single file.I have tried doing this in the following way:-Using aws s3 cp to download files for the hour.Use a bash command to merge the files. ORUse a python script to merge the files.This hourly job ...
Merge million S3 files generated hourly
Here is how to change the port. Edit/etc/opscode/chef-server.rbnginx['non_ssl_port'] = 10080 nginx['ssl_port'] = 10443 nginx['url'] = "https://:10443/"and adjust your local~/.chef/knife.rbto readchef_server_url 'https://:10443/organizations/'But currently there is a bug in Chef that prevents the embedded nginx to run o...
I tried to install apache on a machine that chef-server was installed. Apache could not start up due to the occupation of port 80 by chef nginx. If I want to let apache use port 80 as default, is it possible to change chef nginx default http port to another one?I found a solution on the Internet to set virtual host on ...
How to change chef nginx default http port 80?
use this:RewriteEngine on RewriteCond %{HTTP_HOST} ^blog\.domain\.com [NC] RewriteRule (.*) http://domain.com/blog/$1 [R=301,L]
I've researched this for about 2 hours now and although most of the topics are similar, none have explained how to do what I'd like to do.I'm taking a blog that had a structure of blog.domain.com and moving it to www.domain.com/blog/. I need to keep the permalink of the blog post when I redirect so...blog.domain.com/h...
Apache rewrite from subdomain to www but keep all permalinks
4 I have run into this issue several times on different Microsoft OS's when VirtualBox pushes out an update. (just happened today 7-20-2017) A quick fix is as follows: Step 1 a. Go into the VirturalBox Host-Only Network adapter properties in Windows b. Un-check the Virtua...
I am trying to install/run docker. When running the docker quickstart terminal I run into the following error message: Machine default already exists in VirtualBox. Starting machine default... Error setting up host only network on machine start: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create fail...
docker Failed to create the host-only adapter Windows 7
1 Because every clone of a repository is also a fully qualified repository, every clone of a repository is also a full backup. This means, if you want to create a dedicated backup, just clone it somewhere on a separate machine. Share Follo...
i am new to git. i read a few links on how to create a git repo and maintain a back up there but couldn't get any concrete material. what i have to do is that i have a server written in php which stores the files uploaded by the users. i want to create an hourly backup of the files on the git. can anyone tell me how t...
how to create a backup at git
Grafana is a visualization tool that reads the data from a data source, you will need to store your logs in one of the supported data sources,prometheusandelasticsearchare just two of the supported data sources.To send your logs from Logstash to Prometheus you would need an output plugin, but there isn't an official pl...
Hello i have filebeat which is collecting logs and it is connected with logstash.My idea is to show logs from logstash to Grafana.Is there any option to send logstash logs directly to prometheus or grafana?In my solution i dont want to use elasticsearch. I found some logstash exporter but that is for status of logstash...
Logstash logs to Grafana without Elasticsearch
You can obtain information about the GPU usage using the built-in powermetrics command e.g to obtain one snapshot (-n1) over 0.5 sec (-i500 ms) of the GPU info (--samplers gpu_power): sudo powermetrics --samplers gpu_power -i500 -n1 Note: You can check which samplers powermetrics supports by typing: powermetrics -h
In recent versions of Activity Monitor, one can press CMD+4 and get a graphical representation of GPU usage. However, I want to obtain this info from my native macOS app and therefore I'm searching for a way to get this data (shown in Activity Monitor) from macOS command line.
macOS get GPU history (usage) from terminal
Yes. Gunicorn can serve your static too.If all else fails, let django do it for you (although, do this as a last resort before frustration.) To do that, you just have to add another url pattern, as follows:urlpatterns = patterns('', # ... the rest of your URLconf goes here ... ) + static(settings.MEDIA_URL, documen...
I have tried just about every django + nginx tutorial on the web and I cannot get an image file to display on the screen. It's always the old story -404 PAGE NOT FOUND. The web page loads fine but django.png in my/static/folder does not. Not sure if it's a problem in settings.py or with nginx.I am so frustrated with it...
Can Django run on Gunicorn alone (no Apache or nginx)?
First thing -> using the bitnami helm chart is the right way to do things.Although a bit of a different implementation, heres how we implemented the same master slave setup AND also avoided the above problem while ensuring the MAXIMUM availability we ever witnessed (less than 2 secs Downtime for master)We made two serv...
I have a redis sentinel master slave setup with 1 master and 3 slaves and this is in Kubernetes environment.In the spring lettuce configuration, I have to specify the sentinels URLs with port numbers. How should I specify the URL for each sentinel?Spring docspecifies IP and port. In the local it's ok but when in k8s, h...
How to configure Spring redis sentinel in kubernetes
A few things.If you are pasting, make sure you do withpasteset. It’s a used as a temporary setting for letting the text be put without changes. You can usepastetogglefor this, and tpope’s unimpaired has useful (relevant) mappings.Don’t sent filetype-specific things in your vimrc. Just, don’t. See, e.g.,this QA,this one...
In my work I have to copy and paste sample manifest snippet from kubernetes documentation site. After copying many a time I have to correct indent and change some section of the copied content. Many a time challenges comes from the structure of the yaml file, specifically space characters and tab characters. Currently ...
What will be the best .vimrc settings for working with kubernetes
There are multiple ways. But i found out solution this way.~ → 🐳 $ minikube status minikube: Running cluster: Running kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100Here we can connect with the service using 192.168.99.100 and nodeport. Say for Dashboard with node port 30000 the url will be:h...
I am trying to switch my local dev environment to run in minikube. I have all the container images built and I have all the YAML configs and I have all the services I need running and I can access them using the URL returned fromminikube service web --url(web is the name of my front facing nginx server). But there is o...
How to connect to minikube services from outside
2 void* ptr = malloc(512); This provides you with a block of memory which contains 512 bytes of data. That doesn't mean the block is 512 bytes big, it means that it contains 512 bytes or more. Typically, each block has a small prefix which is used by the allocator. struct ...
I'm trying to free all my memory, and I'm not sure if I'm doing it properly for a struct*. A snippet of my code: struct words { char word[40]; }; int main() { struct words* aList = malloc(2*sizeof(struct words)); // A text file is opened and each word is stored in a struct. I use an int variable to count how many tim...
Clarification on freeing memory in C
Wildcards in the AWS S3 CLI only work when using the --recursive flag. So this should work for you: aws s3 mv s3://foobar/Tagger/out/ s3://foobar/Tagger/testInput/ --recursive --exclude "*" --include "*/lastImage.txt" Unfortunately, this will recreate the entire directory structure in your target location, and I'm no...
I am attempting to move a file, from on s3 location to another, using an activity in a AWS data pipeline. The command I am using is: (aws s3 mv s3://foobar/Tagger/out//*/lastImage.txt s3://foobar/Tagger/testInput/lastImage.txt) But I receive the following error: A client error (404) occurred when calling the HeadObje...
AWS CLI moving file with wildcard (asterisk) in path
Useusername.github.ui/baseas your repository with your base templates. This shouldn't be a gh-page.This repository should contain a branch with your base templates. For the moment, I say you are using themasterbranch for that. Branch out and create aproject1andproject2branch in this repo.Every time you change your base...
I'm wanting to have both a user website and multiple project websites hosted on Github Pages i.e.username.github.iousername.github.io/project1username.github.io/project2I'd like them to share a common set of jekyll files so it's easier to change themes, info, etc.. Has anyone managed to do this? Using subtree / submodu...
Using common Jekyll code for multiple github pages websites
You need to encode the '+' to be url friendly, so you need to replace if with%2B. See this page for more information :https://www.w3schools.com/tags/ref_urlencode.asp
Trying to extract issues and getting this error while hitting SonarQube API:api/issues/search?createdAfter=2013-05-01T13:00:00+0100{"errors":[{"msg":"Date '2018-06-05 14:00:00 1000' cannot be parsed as either a date or date+time"}]}
Sonarqube API response with date-time in parameters
Target groups are just a group of Ec2 instances. Target groups are closely associated with ELB and not ASG. ELB -> TG - > Group of Instances We can just use ELB and Target groups to route requests to EC2 instances. With this setup, there is no autoscaling which means instances cannot be added or removed when your l...
I'm a little too confused on the terms and its usage. Can you please help me understand how are these used with Load Balancers? I referred the aws-doc in vain for this :(
How is "Target Groups" different from "Auto-Scaling Groups" in AWS?
0 I believe the ExoPlayer does not support caching or saving the video. At least thats what this issue in Sept 2015 says. You might be able to grab the output buffer and write that as a file. Safest method probably is to persist the video on your own in the background (m...
YouTube uses ExoPlayer in Android to play their Videos/Audios but you may have noticed , once you played a video , the next time it plays from the Cache, not from the server stream. I need to add this functionality on my Player, where should I do the customization to get that? OR anyone else (Except YouTube) did that?...
Cache Implementation for ExoPlayer in Android
Git is refusing to let you pull or push because you have a modified file in your working directory:CDC-WEB/src/main/webapp/src/master/appSettings.htmlYou have a few options here. If you don't want these changes you can reset to the last commit via:git checkout -- CDC-WEB/src/main/webapp/src/master/appSettings.htmlIf y...
In Git Staging viewer, I had ignored .gitignore files,After that Im not able to commit or push to upstram or fetch from upstream are disabled.Git status for the same.updated status after git checkout --- appSettings.htmlHow can I fix This ?
In git, Team -> Push to Upstream and Fetch from up stream is disabled for the work bench
Adding user: root to docker-compose.yml fixes socket access: filebeat: image: store/elastic/filebeat:7.3.0 volumes: - ./config/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro - /var/lib/docker/containers/:/var/lib/docker/containers/:ro - /var/run/docker.sock:/var/run/docker.sock:ro user:...
When I try to run filebeat with autodiscover I get the following error: Exiting: error in autodiscover provider settings: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.22/containers/json?limit=0: dial unix /va...
Windows docker: permission denied /var/run/docker.sock
The cron syntax says to run the command at a fix time not after an interval.The */10 means execute the command if the modulo is 0In your case the code will be excecuted at second 0 of every 10 minutes at every hour at every day and so on.So your cron will be executed for instance at 09:00, 09:10, 09:20, 09:30 and so o...
I am trying to run a cron job after 10 minutes, sometimes it runs after 10 minutes and sometimes it runs after like 2 minutes when I call the webservice. Below is the coderouter.post('/getUser', function (req, res) { var task = cron.schedule('0 */10 * * * *', function () { console.log("cron job started") ...
cron job is not working node-cron
1 If I understand you correctly, you want to take two separate vector objects: vector<fftw_complex> V1, V2; and combine their respective contents to form another vector<fftw_complex> V; without any copying. This is impossible, because the memory occupied by V1 and V2 tog...
I have a numerical computation problem implemented with fourier transformation. I am using fftw to implement the FFT but the signal being FFTed is pretty strange. Half of the signal is from one array and the other half if from other array. In current code, I simply copy the data #include <iostream> #include <vector> #...
is that possible to use shared memory for fftw?
You could use something like:docker exec -it $containerId test -f /tmp/allure-resultsReturns $? as zero if file exists or 1 if it doesn't.
I am using docker cp to copy a file in a running container to the host server (in which contains the running docker container) as follows:docker cp $containerId:/tmp/allure-results $WORKSPACE/allureThis obviously only works if file exists but sometimes there is a delay until file is created. How can I make sure if the ...
how to check if file exists in docker container then copy it
If you read the table carefully you will notice that the last column has a header "Can Be Increased" and value "Yes" for "Maximum number of API keys per account per region".Just contact support once you will be getting close to your limit and ask for an increase. It may take up to 2-3 work days, but otherwise it should...
I'm running a business API on AWS, through API Gateway and Lambda. Currently, I handle rate limiting with the built in usage plans and api keys. Each account tier (think basic, medium, premium) is associated to a usage plan, to which each customer's api key is linked.I just found out that there is a hard (but increasab...
How to rate limit per user in API Gateway?
3 Possible solution would be to download the gist from the url using requests. Then take the file name and import it using import example_file. You could also use a for loop to import all modules found within a directory. Example for downloading files using requests - htt...
This question already has answers here: How can a Python module be imported from a URL? (3 answers) Closed 5 years ago. I like the idea of GitHub Gists. That's where I, and many ot...
Import a Python Module from a GitHub Gist [duplicate]
Based on the comments.The solution was to use the followingcommand inUserData:net user Administrator "new_password"The command, as explained in thedocs, can be used to change admin password.This works becauseUserDataexecutes under administrator account (ref):User data scripts are executed from thelocal administrator ac...
I am deploying a CloudFormation template which launches an EC2 instance from theWindows_Server-2019-English-Full-Base-2020.05.13AMI.By default, the Windows Server image has anAdministratoruser. To connect to the instance via RDP, I have to navigate to the console, click onConnectand then get the generated random passwo...
How to set the administrator password for a Windows Server machine on AWS from CloudFormation?
It depends on if you have Use Lambda Proxy Integration selected in the Integration Request for the lambda. If you have it set then all the token's claims will be passed through on event.requestContext.authorizer.claims. If you are not using Lambda Proxy Integration then you need to use a Body Mapping Template in the I...
I have a Lambda function handling POST requests triggered by the API Gateway. The latter is set up to authorize via a Cognito user pool authorizer. Authorization works - if I pass a user's ID token, the request is processed, if I don't I get a 401. However, I can't get the authorized user's identity in the Lambda fu...
Get Cognito user pool identity in Lambda function
completing @JulienL.-SonarSourceTeam advice:changingsonar:sonartoorg.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonarsolved the problemso now it is:./mvnw -X clean org.jacoco:jacoco-maven-plugin:prepare-agent package org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar -Dsonar.host.url=https://s...
I have an public project on github. i try to attach sonarcloud to it:./mvnw -X clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=xxxx-github -Dsonar.login=yyyyproject is built, tests passes and thensonar-maven-plugin:3.0.1:sonarexecutes:[E...
sonar cloud plugin fails on missing class
Fully achieving all 3 of your goals is impossible. If you are fully contiguous, then you have one memory block with a finite size, and the only way to get more memory is to ask for more memory, which will not be contiguous with the memory you already have. So you have to sacrifice at least one requirement, to at least...
I have been trying to figure out an efficient way of managing dynamic arrays which I may change occasionally but would like to randomly access and iterate over often. I would like to be able to: store the array in a continuous data block (reduce cache misses) access each element individually and independently of the...
C++ how to manage iterators of contiguous dynamic arrays
Error 51 means there is a problem in the TLS, so please enable TLS 1.0 on the registry and increase logging of the SChannel (to get information, warnings and errors about the connection)[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL] "EventLogging"=dword:00000007 [HKEY_LOCAL_MACHINE\SY...
I am working on integration solution with a payment gateway, we are using SSL3 with digital certificates to secure connection between us, I already reached their services and successfully sent request and received the response.The problem is when they trying to consume our HTTPs services which hosted on IIS 7 on our Wi...
The following fatal alert was generated: 51. The internal error state is 1306
http://php.net/manual/en/book.curl.phpcurl_setopt($ch, CURLOPT_VERBOSE, '1'); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, '1'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, '1'); curl_setopt($ch, CURLOPT_CAINFO, getcwd().'/cert/ca.crt'); curl_setopt($ch, CURLOPT_SSLCERT, getcwd().'/cert/mycert.pem'); curl_setopt($ch, CURLOPT...
I have to make a request from PHP to a secure https server with a self-signed certificate. I have a working command line in cURL but have a lot of problems converting it to the correct and working PHP options.The working cURL command is this:curl --cacert cert.pem --key cert.key --cert cert.crt --header ...
cURL command line to PHP
You can get directly the ip by using docker inspect and a proper format: docker inspect containerId --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' More info in the Docker documentation.
A bridge network has been created in docker using the following: docker network create blognetwork And a container has been created in that network with the following: docker run --name=blogdb --network=blognetwork -p 3306:3306 -e --bind-address=0.0.0.0 -e=MYSQL_ROOT_PASSWORD=mypassword -detach mysql How do I access...
How to get a Docker container's IP address, located within a bridge network, from a windows host?
One thing you could try is monitoring your instance CPU load.Although the latency doesn't correspond with usage spikes, it may be the case that there is a cumulative effect on CPU load and the latency you're experiencing occurs when the CPU reaches a given % and needs to back off temporarily. If this is the case you co...
I'm runningflask restplus apion google container engine withTCP Load Balancer. The flask restplus api makes calls to google cloud datastore or cloud sql but this does not seem to be the problem.A few times a day or even more, there is a moment of latency spikes. Restarting the pod solves this or it solves itself in a 5...
Lag spikes on google container engine running a flask restful api
If you want a file to be cached by browsers, you should set the Cache-control header to public:header('Cache-control: public');must-revalidate means that the browser will check to see if the file has been updated, which will invoke your PHP script.ShareFollowansweredMar 7, 2010 at 8:25InspireInspire2,0521515 silver bad...
My CSS file is acutally a PHP file which is served with content-typetext/cssso that I can use PHP variables in that file.style.phplooks like this:<?php header('Content-Type: text/css'); $bgColor = '#000'; ?> body { background:<?php print $bgColor; ?>; }It works as expected, but I am a bit worried if the browser caches...
cache headers for dynamic css (generated via PHP)
Based on Maxim Dounin (an nginx core engineer)'s comment on gzip_static - which I imagine brotli_static behaves similarly to - brotli_static only handles files, not HTTP resources: That is, gzip_static is only expected to work when nginx is about to return regular files. So it looks like brotli_static and proxy_pass...
nginx is compiled with Brotli enabled. In my nginx.conf http { ... brotli_static on; } My .br files are located on a server with proxy_pass. location / { ... proxy_pass http://app; } And .br files have been generated on that app server: $ ls -lh public/js/dist/index.js* -rw-r--r-- 1 mike wheel 1.2M A...
How can I use nginx brotli_static with proxy_pass?
Locking the database with alter database begin backup;, copying the file, and then using alter database end backup; is just as safe as using nbackup, and this is also documented as one of the use cases of begin/end backup. During the backup state, the database file is not changed (the changes are instead made in the d...
I am currently using Firebird 2.1 I found that it is possible to do a backup of a firebird database using nbackup. nbackup will lock the DB when starting the copy and unlock it when restoring as described here . However I also found out that is is possible to lock/unlock manually and also copy the DB using the copy/pa...
Firebird nbackup vs copy/paste
For a singlestat panel what you want to do is use justprobe_success{instance="www.google.com:443",job="clienttest"}as the expression, and under options make sure you are using the Average aggregation.On the PromQL side you can also doavg_over_time(probe_success[1h]), seethis blog post.
I've tried counting the number of probe_success and multiplying it by the probe interval trying to get uptime in seconds and setting the value type to the total. the issue is the minimum step changes as the time frame changes not giving us a correct reading and nulling this option. What we are actually trying to do is ...
Im trying to calculate uptime in Grafana based on the successful responses from Prometheus blackbox exporter
Try:RewriteCond %{HTTP_HOST} ^www\.(.+) RewriteCond %{HTTPS}s/%1 ^(on(s)|offs)/(.+) RewriteRule ^ http%2://%3%{REQUEST_URI} [L,R=301]ShareFollowansweredMar 1, 2012 at 5:15Sudhir BastakotiSudhir Bastakoti99.7k1515 gold badges160160 silver badges166166 bronze badges1Will this respect whatever scheme was entered? E.g.http...
I want to remove the www from https url by .htaccess. for examplei want to changehttps://www.example.com/ tohttps://example.com/I have tried many rulesRewriteCond %{HTTPS} =on RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ https://example.come/$1 [L]andRewriteCond %{SERVER_PORT} ^443 Rewrit...
I want to remove the www from url on https using .htaccess
Since no one answered my question, I'll answer it myself.The answer to that question used to be no but it seems that Apple made some changes in the provisioning portal (which is now calledCertificates, Identifiers & Profiles), and now it's possible to define multiple certificates for the same application and the same e...
I realize there was a question about allowing multiple servers to send Push Notifications to the same application using the same SSL Certificate, but my question is different.Suppose that the developer of a single iOS application would like to allow multiple providers to send Push Notifications to his application, but ...
Is it possible to create multiple SSL certificates for providers that send APNs to the same Application?
In order to have HTTPs service exposed only, you can block traffic on port 80 as mentioned on thislink:You can block traffic on :80 through an annotation. You might want to do this if all your clients are only going to hit the loadbalancer through https and you don't want to waste the extra GCE forwarding rule, eg:apiV...
I want to expose a HTTP service running in Google Container Engine overHTTPS onlyload balancer.How to define in ingress object that I wantHTTPSonly load balancer instead of default HTTP?Or is there a way to permanently dropHTTPprotocol from created load balancer? When I addHTTPSprotocol and then dropHTTPprotocol,HTTPis...
Kubernetes HTTPS Ingress in Google Container Engine
I can only giva advice according to my own experience. I don't know of any guides / best practises.I use them to mark undesired states:major code goals I want to achieve (Blockers > 1 --> RED)minor goals I want to achieve (Criticals > 30 --> RED)I also find it useful to mark metrics, that have been achieved like:code-c...
Our project is usingSonarto analyze and measure technical quality. There is an overwhelming range ofmetricsavailable, along with the possibility to configure visual alerts when metrics drop below a specified threshold.Are there any decent guidelines available on which Sonar alerts are useful for typical projects, and w...
Recommended configuration for Sonar alerts?
use rate format !- schedule: rate(1 minute)
I am using "serverless": "^2.43.1".I am following official docs from:https://www.serverless.com/examples/aws-node-scheduled-cronbut.. this does not seems to work at all.. All I get is:schedule rate "cron" not yet supported! scheduler: invalid, schedule syntax Scheduling [my lambda name] cron: [undefined] input: undefin...
Serverless framework - schedule rate "cron" not yet supported
The problem was that I didn't put quotes around my url. I needed to do this: wget "https://pipelines.actions.githubusercontent.com/serviceHosts/..../_apis/pipelines/1/runs/16/signedartifactscontent?artifactName=my-artifact&urlExpires=....&urlSigningMethod=HMACV2&urlSignature=...."
I am trying to follow these docs to download an artifact from github using githubs API: https://docs.github.com/en/rest/actions/artifacts#download-an-artifact I ran the curl command given in the docs, and it gave me the following url from which to download the artifact (I have replaced the specifics with ...) https://...
download gitub artifact from url using wget
Do you have a /lib/systemd/system/docker.service file? If so, edit it so that the Docker service uses the usual /etc/default/docker as an environment file: EnvironmentFile=-/etc/default/docker. In the /etc/default/docker file then add DOCKER_OPTS="-g /home/rseixas/Programs/Docker/images". At the end just do a systemct...
I am using Fedora 22 and I must change my Docker image directory from /var/lib/docker to /home/my_user/docker Following this How to change the docker image installation directory? I edited the /etc/sysconfig/docker adding: other_args="-g /home/rseixas/Programs/Docker/images" I restarted the service but no cha...
Cannot change Docker image directory
You seegitworking in separate steps because GitLab is probably doing it in another container. They keep your container clean, so you have to install dependencies yourself.Since the image you're using is based on Alpine Linux, the command to installgitis:apk add --no-cache gitYou can also skip the whole thing and use th...
I'm trying to call shell command in.gitlab-ci.yml, whose relevant parts are:image: docker:latest services: - docker:dind stages: - build - deploy ... build: stage: build script: - apt-get update -y - GIT_TAG=$(git tag | tail -1) - GIT_TAG=$(/usr/bin/git tag | tail -1) - docker ...However al...
Gitlab Docker build: calling shell command in .gitlab-ci.yml
You can get the command shell of the container as administrator and run the command: docker exec --user "NT AUTHORITY\SYSTEM" -it yourcontainername cmd Then you can add a proper record to hosts file of the container: echo X.X.X.X mysite.local >> c:\windows\system32\drivers\etc\hosts To make sure you are using proper...
I have a website in IIS of my host machine which is accessible by http://mysite.local address. I also have a windows container running on this host and I'm trying to connect to that website, from my windows container by using "curl http://mysite.local". I'm going to add the proper DNS entry to hosts file of the contai...
How can I add DNS entries to hosts file of a Windows Container?
On 1/22, we updated our SSL certificates due to Symantec's PKI infrastructure set to become untrusted. Some older versions of Java do not have the "DigiCert Global Root G2" CA.There are several options:Import the "DigiCert Global Root G2" CA into your "cacerts" file.Upgrade your JRE to 8u91 (or higher), which includes...
I am using mailgun to send email but from last day it shows error during POST request on email send api as below.I am using java/spring/AWS to my web app.I tried to restart app and to check if certificate is already in the trust store but we never had generate trust store keys.com.mashape.unirest.http.exceptions.Unires...
During post request on send email API of mailgun it shows error using java web application
You want to do a lot with few, when you just start using git. But first, somenthing I think you do in the wrong order. You should start with develop, create a branch, make changes, merge into develop. It works?, ok, merge into release (pre-production), It works?, yes, ok, merge it into master, It works?, yes, delete t...
I'm trying to get into versioning with Git but I'm struggling a bit. If I follow good practices, I have to create several branches (main, develop, hotfix, feature and release). When I'm on my release branch, I want to update my main branch, and the develop branch. $ git checkout main // Switched to branch 'main' $ git...
Git Push from release branch on the main and develop branch on Github
Specify the "Overwrite the existing database (WITH REPLACE)" option:ShareFollowansweredAug 8, 2020 at 12:49Dan GuzmanDan Guzman44.7k33 gold badges4848 silver badges7474 bronze badges2Thanks Dan. I checked this option and I even installed the database with the same name but again I am getting the same error when trying...
I have database backup A.bak I want to restore that backup file, using the SQL Server Management Studio, into database B which has all the same tables/columns but just different name. If I try to do the restore - I am getting error:The backup set holds a backup of a database other than the existingHow can I resolve thi...
RESTORE database with different name Fails - "The backup set holds a backup of a database other than the existing"
In C++ when you delete an object on the heap nothing actually gets cleaned up, it just marks the memory as "free". This means that another call tonewormallocmay overwrite that memory.Accessing a deleted pointer is undefined behaviour because their are no guarantees on the data that resides there. I'm not very well vers...
In a linked list that usesstruct Node { T value; Node* next; }For every usednewoperator(new Node()), there must be adeleteoperator. An example of a destructor for such a list~LinkedList(){ Node* tmp = head; while(tmp! = nullptr){ delete tmp; tmp = tmp->next; } }My question is, what exactly get...
What happens to Node* next when deleting that Node in a linked list?
Fromthis postI discovered that Docker-Compose 3.7 supports targeting individual build stages.So I created a Dockerfile with 2 stages, abaselayer that sets up the container, then adeploythat copies in the codebase:# BUILD STAGE 1 - BASE FROM webdevops/php-apache:7.2-alpine as base # Do stuff # BUILD STAGE 2 - DEPLOY F...
This question already has answers here:Conditional COPY/ADD in Dockerfile?(10 answers)Closed1 year ago.I have an application with a production Dockerfile that copies our source code into the container, i.e:COPY . /appI would like to make this copy conditional, so that passing in aCONTEXT=environment variable prevents/a...
Conditional COPY in Dockerfile? [duplicate]
Prometheus doesn't provide a function, which could be used for calculating the share (aka the percentage) of requests served in under one second fromhistogrambuckets. But such a function exists inVictoriaMetrics- this is Prometheus-like monitoring system I work on. The function ishistogram_share(). For example, the fol...
I'm trying to figure out the PromQL for an SLO for latency, where we want 90% of all requests to be served in 1000ms or less.I can get the90th percentileof requests with this:histogram_quantile( 0.90, sum by (le) ( rate(MyMetric_Request_Duration_bucket{instance="foo"}[1h]) ) )And I can find what percentage ofALLrequest...
SLO calculation for 90% of requests under 1000ms
This is exactly where theQSAflag is created for. By default, if you don't specify a query string, it will re-use the query string of the original request. If you specify a query string, it will overwrite it. If you use theQSAorqsappend(query string append) flag, it will append the original query string to the new query...
I am creating a custom PHP MVC pattern from scratch. This is how my url looks likehttp://domain.com/post/createI could achieve this with the followinghtaccessRewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+) index.php?controller=$1&action=$2 [L]So, whe...
Beautify url with controller and action as query string
I get the same issue on the latest BeagleBone Black with Angstrom Linux, it does not seem to work with https.Works fine with http, though:git clone http://github.com/...So I just use http to get around the issue for now.ShareFollowansweredJun 1, 2013 at 3:39planiusplanius1922 bronze badgesAdd a comment|
I've got a BeagleBone running Angstrom Linux and just finished setting up git and github with thestandard instructionsHowever, when I try to clone a repository...git clone https://github.com/MyUserName/MyRepositoryName...or an individual file...git clone https://github.com/MyUserName/MyRepositoryName/bb.py...I get the ...
SSL/https error when Installing git and configuring github on Beaglebone
Because you have conditions for that.RewriteCond %{HTTP_HOST} abcsite.com$ [OR,NC] RewriteCond %{HTTP_HOST} ^!www\.abcsite\.*$ RewriteCond %{REQUEST_URI} !^/abc/.*$All above rules will pass only its abcsite.comYou add following rules also then it work for abc.com too.RewriteCond %{HTTP_HOST} abc.com$ [OR,NC] RewriteCo...
I am trying to create amod_rewriterule to direct people to a sub-folder. Currently the code looks as follows:RewriteEngine On RewriteCond %{HTTP_HOST} abcsite.com$ [OR,NC] RewriteCond %{HTTP_HOST} ^!www\.abcsite\.*$ RewriteCond %{REQUEST_URI} !^/abc/.*$ RewriteRule (.*)$ /abc/$1 [L]The redirect works if the user typ...
Creating a mod_rewrite rule in an htaccess file
I would start withmtrace. When you have a trace, glibc comes with a perl script mtrace(1) which finds leaks. However, the trace format is easy to understand, so it should be straight-forward process this into fragmentation analysis.
Are there any good memory fragmentation profilers? (linux gcc version would be nice). Valgrind cannot analyze this because it uses custom malloc/free functions.Thanks, Andrew
Memory Fragmentation Profiler
You can use this:RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ /$1 [L,R=301]The first line says: "if it's not a directory" (because then a trailing slash would have meaning). The second line says: redirect everything from start to the trailingslash and end to everything that was in there, without the trailin...
The offending URLs are:(Doesn't work)http://alltheragefaces.com/face/surprised-wut/(Works)http://alltheragefaces.com/face/surprised-wutThe .htaccess rule I have for these types of URLs looks like:RewriteRule ^face/(.*)$ face.php?term=$1What can I do to make both of these URLs to go to the same page?
Trailing slash causes 404, can I fix using htaccess?
.htaccess files - What they are/How to use themexplains how.htaccessfiles workA file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.This means, you can create a .htaccess file in/home/abc/public_h...
I have the following .htaccess directive:<FilesMatch ".(htm|html|php)$"> php_value auto_prepend_file "/home/abc/public_html/_prepend.php" php_value auto_append_file "/home/abc/public_html/_append.php" </FilesMatch>I need to exclude a very specific directory '/home/abc/public_html/exclude/` from the auto_prepend and...
How to exclude a directory from FilesMatch
As Microsoft only published VB script samples,http://msdn.microsoft.com/en-us/library/windows/desktop/aa366415%28v=vs.85%29.aspxYou have to translate them to C++ manually if you don't want to call netsh command in your applications.Generally speaking, there are a few COM objects you can use, such as HNetCfg.FwMgr. The ...
There seems to be a set ofcommands to programatically modify Firewall ruleson Windows Server 2008. I have an app that handles a set of sockets, and from time to time it gets a DDoS.I want to block some IP addresses from receiving the SYN-ACK on the TCP handshake. How can I do that from C++ in MS Visual C++?
Is there any API for changing firewall rules on Windows Server 2008?
ok, I got it working on Ubuntu Server 16.04 I first enabled the docker rest API: 1) open lib/systemd/system/docker.service 2) edit the line that starts with ExecStart to ExecStart=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2375 3) reload daemon: systemctl daemon-reload 4) restart docker service: service docker ...
I've tried to connect my vps Server with the dockercloud-agent, but I am not able to get it running. I've tried multiple Ubuntu-Server versions (14.05, 15.05, and 16.xx) docker is installed, the cloud.docker script execuded. On startup I get "deploying" on the docker-cloud Dasboard, but it always fails. This is the...
Docker-Cloud "own node" doesn't connect (ubuntu server)
imagevalue in pod definition cannot be passed as environment variable usingfieldRef.The onlysupported values aremetadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPsandresourcefields (memory, cpu request/limits) and c...
I was wondering if it's possible to refer to image field in Kubernetes deployment yaml file, asenv: - name: VERSION value: valueFrom: containerField: spec.imagePlease let me know. Thank you.
Set Kubernetes env variable from container's image version
heroku info via cli will give you the last run and next run timeShareFollowansweredFeb 27, 2011 at 15:00John BeynonJohn Beynon37.5k88 gold badges8989 silver badges9797 bronze badgesAdd a comment|
If I log into the Heroku site and view my Cron add-on, Heroku will show me:the next time cron is scheduled to run, andthe last time cron ran.Is there a way to query this info via heroku CLI (or cleanly obtain this via some other way programatically?)Thx.
Heroku Cron: How to find the cron schedule?
0 Yep figured out the details. shell path was not initialised when running as cron Solution was to create as shell script and call it from cron with bash_profile initiated before cron crontab * * * * * bash /path/cron.sh cron.sh . .bash_profile <cron command> ...
I have the below command set up for backing up db:backup --database=mysql --destination=s3 --destinationPath=date +\test/%Y%m%d%H%M%S.sql--compression=gzip Code works fine as command Fails with local.ERROR: exception 'BackupManager\ShellProcessing\ShellProcessFailed' with message 'sh: mysqldump: command not found whe...
Laravel command not working as cron
In your filter have this line: chain.doFilter(httpRequest, new AddExpiresHeaderResponse(httpResponse)); Where the response wrapper looks like: class AddExpiresHeaderResponse extends HttpServletResponseWrapper { public static final String[] CACHEABLE_CONTENT_TYPES = new String[] { "text/css", "text/javasc...
Does anyone know how to go about coding a servlet filter that will set cache headers on a response for a given file/content type? I've got an app that serves up a lot of images, and I'd like to cut down on bandwidth for hosting it by having the browser cache the ones that don't change very often. Ideally, I'd like t...
Servlet filter for browser caching?
Yes - at this time you can replace a deleted package on GitHub.I recently did this with a particular version, deleted the package on GitHub and then rebuilt and redeployed.I was able to publish a new package with the same version name as the previous one.ShareFollowansweredJun 7, 2021 at 7:53shrewdbeansshrewdbeans12.2k...
I've found that you candelete a GitHub package version.And you can alsorestore a deleted package version.However, is it possible to delete a package version, but then publish an entirely new version in its place, with the same tag/version number?The reason I need this is that I've accidentally published a pre-release w...
Is it possible to delete a GitHub package version and then replace it with a new version
kubectl config view --minifywill remove all information not used by current-context from the output
How can I export a single kubectl context?My current kubectl config file has multiple contexts defined, and it would be tedious manual process to try isolate the single context from the rest.Is this supported?
How can I export a single kubectl context?
dns name of the service is in the below formatservicename.namespace.svc.cluster.localservice is virtual. you can use port as 80 in service definition. that way, port can be avoided. in your case, port number is given as 5000. you need to include port number as well to call the service from other pods
Example, I deployed an ASP.NET Core web api "mydotnetservice1". I tried calling the API usinghttp://mydotnetservice1:5000but it does not seem to work, is this the correct address?apiVersion: apps/v1beta1 kind: Deployment metadata: name: mydotnetservice1 spec: replicas: 2 template: metadata: labels: ...
How does kubernetes DNS work and what is the hostname of the service?
2 Ok so after hours of googling and failing miserably at finding a solution, turns out, in a production environment it did need to put the file temporary in uploads/tmp before it pushes it to S3 Bucket Share Improve this answer Follow ...
I have just migrated from paperclip to carrierwave and managed to successfully get uploading to S3 to work locally on my machine, but after deploying the Rails application to my server (which uses Ubuntu, Passenger with nginx, was a mission getting it to work), and when i try to upload an image, it tries to save it to...
Carrierwave + fog + aws s3 and rails in production
One solution is to simply use the "File" -> "New Project from Git" option instead of the "New Project from GitHub" option. You can then just paste in the URL for the project (which is easy to copy from GitHub) and enter your GitHub user name and password and it will clone the repo in, I'm guessing, exactly the same way...
When i'm trying to connect to my Git-hub repository with Zend studio 10.0 shows this message: " parse exception converting JSON to object "
parse exception convert json to object Zend-studio
7 This might be happening due to a large number of tags in your repo. Check this google-group entry, this question and another google group entry. Basically, this is a known issue with msysgit and users on google group suggest using the ssh protocol instead as workaround: ...
I'm having a difficult time pushing to Github..I have a repository that I had cloned, and I have made changes to it that I'd like to push back to github. While in the repository, I do the following: git add * Which seems to work as I get no response, then when I do: git commit -m "test" I get the response: On branc...
Trouble pushing to Github, cannot spawn sh: No such file or directory
The various language standards say:There is no platform independent way of getting this information. Different implementations of malloc may provide this information, but it would be in a non-standard way.Glibc offers:You could use the__malloc_hookfeature to write up a hook that counts how much memory has been allocat...
How do I get the total number of bytes malloc()'d in a program (Assume I am running with glibc)? I do not want to see how much memory the program is taking, I want to see how much memory I allocated. Below is an example program where these numbers would be very different.#include <vector> #include <stdio.h> #include <...
Total glibc malloc() bytes
You are missing a following parameter with your$ kubectl port-forward ...:--address 0.0.0.0I've reproduced the setup that you've tried to achieve and this was the reason the connection wasn't possible. I've included more explanation below.Explanation$ kubectl port-forward --helpListen on port 8888 on all addresses, for...
Summary:I have a docker container which is running kubectl port-forward, forwarding the port (5432) of a postgres service running as a k8s service to a local port (2223). In the Dockerfile, I have exposed the relevant port 2223. Then I ran the container by publishing the said port (-p 2223:2223)Now when I am trying to ...
Double port forwarding kubernetes + docker
No, blobs that were not committed (or pushed explicitely) are never transmitted over the wire.If you added files and never committed, they should get removed with the next call togit gc. If you however committed them, and then removed the commit again (e.g. through git rebase or git reset), they will not be collected b...
We can recover files, which were once added (but not committed) and later removed using git reset --hard. SeeRecovering added file after doing git reset --hard HEAD^When we push in our changes to some upstream repository, Are these blobs also pushed in?Context: While doing any development, I occasionally do a git add o...
Do dangling git add blobs get pushed to master repository?
More on what Rohan has said, it would be on Google's end rather than Amazon's. Delete the Server API Key in the Google API Console, and create a new one, allowing all IP addresses. Add the new key in AWS SNS, and you should be good to go!
I have looked for resources on this particular problem with little luck so far so I thought I would try here. I am attempting to create an Amazon Web Service Simple Notification Service app in the AWS-SNS console using GCM. I have created the APNS app for the iOS version with no troubles, however, when attempting to c...
Cannot create AWS-SNS GCM account, showing invalid credentials message
Kubernetes' scheduler doesn't understand time so not directly. You can set PriorityClasses and PodDisruptionBudgets (in this case the budget being maxDisruptions 0) which control voluntary evictions. It might be possible to write something which changes the PriorityClass value after a certain amount of time but I don't...
On my master node I am runningKubernetes v1.16.3which users will submit some jobs to our servers from time to time, which is working right now. However, in my case I have many users and they should not only have priorites on their jobs, but also aminimumlifetimeof each job / pod.Theminimumlifetime should guarantee that...
Kubernetes: How can I set a minimum lifetime of a job / pod?
It is my opinion thatNo Rebootshould prevent the image creation from rebooting. If you are the api user, it also providesargument--no-rebootto do it.ShareFolloweditedMar 5, 2013 at 15:31jwegner7,19388 gold badges3636 silver badges5757 bronze badgesansweredJul 21, 2012 at 2:14qrtt1qrtt17,77499 gold badges4343 silver ba...
Does Creating an Image of an Amazon EC2 Linux instance cause any downtime? Can I image a running server?
Does Creating an Image of an Amazon EC2 Linux instance cause downtime?
After a lot of searching and testing, this is my resultimage: androidsdk/android-30 pipelines: default: - step: name: Android Debug Application deployment: Test caches: - gradle script: - echo 'Start Building' - apt-get install make -y ...
I am very new to this and probably don't understand some things that i should, so bare with me!I am trying to create a build script for building an android apk on Bitbucket pipeline. I use ./gradlew assembleDebug but i miss a lot of things there.In the project i have a custom library which needs ndk in order to be buil...
Build Script android apk for Bitbucket Pipiline
hope you are well. To answer the following questions I will do so based in the format you have asked. You ask about management of production and development files with source control (namely GitHub). It would be best to store these in different branches of source control. Example: "main" branch being used for product...
How can I properly manage my development files and production files with source control like GitHub (private repo). I am new to Django and while publishing my code to production there are many settings which needs to be changed in order to use it in production but the same setting won't work on my development server....
How to properly manage django production and development files
Add the following to your .htaccess file in the root of your domain.com site.RewriteEngine On RewriteBase / #if request is not on www.domain.com RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] #and it is not for a folder starting with /bbb/ RewriteCond %{REQUEST_URI} !^/bbb/ [NC] #redirect to www.domain.com/bbb/ Re...
I have a multisite with drupal, I created a site which at first should be accessible in multiple ways (subdomains and paths), but now I want keep just one of them; so I whould redirect all the others. Right now I have:aaa.domain.com/bbb.domain.com/domain.com/aaa/domain.com/bbb/www.domain.com/aaa/www.domain.com/bbb/And ...
htaccess redirect subdomain to subdirectory
2 I agree that in this case it would be a bit inconvenient to use a token each time especially since once you create a token in the interface, you can never see it again (since GitHub prudently does not store it in plaintext). However, you can use an SSH key to do this. If...
I work with deep learning models everyday, and in order to do this efficiently I ssh into multiple computers on my network at the same time. For example: Computer A: Running a training script Computer B: Running an inference script Computer C: Creating synthetic data for the next training session. Host Computer: Codi...
Git Password Deprecation - Is my use case still supported?
Look at learn.github: You need to: add your file to the index (git add), and commit it (git commit -m "your modification comment"), before pushing it (git push). See also "working with remotes") So "unstaged changes" aren't linked to GitHub, but are local modifications on your local repo, which you haven't yet ad...
I just changed the README file and want to sync it in github, but it always tells me "You cannot sync with unstaged changes". Could someone tell me what it is and how should I fix this?
What's the unstaged changes in github?
Usually, you allocate small-sized temporary variables on the stack. You request memory from the heap for larger chunks. But you can alsomap a file into memory.Below is a representation of system memory by kind.Source:this very-well explained article:Understanding Memorythat should answer most of your questions.
I know the basics of theStack, and theHeap, but are there any other areas in a PC's memory that a program can access and store temporary data?
Other areas of memory (besides stack and heap)?
You can use Kubernetes Auditing:https://kubernetes.io/docs/tasks/debug-application-cluster/audit/Set the Level to MetadataapiVersion: audit.k8s.io/v1beta1 kind: Policy rules: — level: MetadataMetadata will log: user, resource_name and timestampShareFollowansweredNov 22, 2020 at 23:33CyGCyG13644 bronze badgesAdd a comm...
When I dokubectl top podsI only see NAME, CPU and MEMORY.NAME CPU(cores) MEMORY(bytes) bbox-inference-falcon-79dc678d8c-2fq9b 4m 1272Mi bbox-inference-falcon-79dc678d8c-2nfnk 3m 1503Mi bbox-inference...
Is there a way to see who ran pods/jobs in Kubernetes?
Redirecttakes an URL-path, which doesn't include the query string. So, the firstRedirectnever matches.To achieve what you want, you can try some sort ofcontent negotiationor usemod_rewriteRewriteEngine on RewriteCond %{QUERY_STRING} lang=fr RewriteRule /about/history/ http://www.newdomain.com/fr/history? [R,L] RewriteR...
I've set up a number of 301 redirects in an .htaccess file, but I'm having problems with a query string that makes the redirect not match.Example:Redirect 301 /about/history/?lang=fr http://www.newdomain.com/fr/history Redirect 301 /about/history/ http://www.newdomain.com/nl/historySoolddomain.com/about/history/?lang=f...
301 redirects: match querystring, don't append it to new redirect
The simplest approach is for your app to expose a non-TLS metrics deicated port so you can have all traffic secured and metrics exposed with clear http. That is the way that's suggested for ie. Istio for mTLS and healthchecksYou can use a separate port for health check and enable mutual TLS only on the regular service ...
I am scraping metrics of a service on a Kubernetes cluster. I just annotated the service so that Prometheus detects and start scraping  automatically.    The following annotations were added to the service:metadata: annotations: prometheus.io/path: /minio/prometheus/metrics prometheus.io/port: "9000" prometheus.io/...
Auto detection of TLS ( self signed) scrape endpoint by Prometheus on k8s