Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
First you need to commit any changes you have made to the master branch: git commit -m Made changes to the master branch Next you can push master out to the remote via: git push origin master To see if you have any changes in your local master branch you can type git status.
I created the repository in GitHub and I have not created any branch I edited the same master branch without creating a new branch. Any one please guide me how to push the edited master to remote?
GitHub facing while pushing it to remote
To reduce the amount of space you use significantly, you'll need to reduce the number of copies you keep. This is the 2nd argument to the script. So if you run every 3 days, and want to keep a month of backups, change it to: ../rsyncsnapshot.sh daily 10
Currently on workplaces server we run a daily backup, due to size limits we need it to be only each third day (or something like that). We use Rsync to do the backup. What I'm thinking to do is to just change the run time of the script, so insted of daily it will run every third day. So I want to know wether this is p...
Ubuntu Cronjob with rsync
Here are the steps to follow1. Download the source code fromhttps://github.com/johrstrom/jmeter-prometheus-pluginand build it using"maven clean package".2. Two jar files will be generated in target folder copy them and keep it in JMeter lib/ext folder.3. Open JMeter, to your thread group add Prometheus Listener which w...
How can I use Prometheus database for Jmeter live reporting ?. I want to execute Jmeter in Non GUI mode and get live reporting in Grafana using prometheus as a database..
How to use Prometheus Time Series database for Jmeter live reporting?
Unfortunately not. The SonarC#/VB analyzers only look at the source code files currently.If you want to stop the issue being reported then your options are to mark the instance of the issue as a false positive in SonarQube, or disable the rule entirely in the Quality Profile.You couldreportthis false positive to the So...
I have configured SonarQube to scan my C# solution and it has raisedS3330which says that my cookies do not have HttpOnly setWell, looking at the code only this is an accurate statement. But in fact, I have<httpCookies httpOnlyCookies="true" />in my Web.config which makes all custom cookies http-only. Thus, it seems lik...
Does SonarScanner for MsBuild respect web.config?
6 Their recommendation applies when you use both the App Client ID and the Secret (typically in mobile development). When you create an app, you can optionally choose to create a secret for that app. If a secret is created for the app, the secret must be provided to ...
From AWS documentation (Specifying User Pool App Settings): It is the developer's responsibility to secure any app client IDs or secrets so that only authorized client apps can call these unauthenticated APIs. So is there any schema to do the authentication under secure conditions (not exposing the client ID on ...
Securing AWS Cognito User Pool and Client ID on a static web page
It depends on what you run. If it's your own script, you can implement a locking/lock checking mechanism to avoid running duplicates.But that's notcron's job.
Suppose if i have cron tasks running every minute. And if each time, that task takes more than one minute to run, what will happen. Will the next cron wait for the first cron or will it run without any checks.I want to run a cron task every minute and I don't over lapping cron tasks like that in case of a long running ...
How to handle overtime crons
As far as I know there is no function that clears permgen. On default, jvm holds all the loaded classes indefinitely. But you can change this behaviour using -XX:+CMSClassUnloadingEnabledand -XX:+UseConcMarkSweepGCparameters.If you useCMSClassUnloadingEnabledparameter the GC will also sweep PermGen and remove classes w...
I am using MAT to analyze memory.Size: 14.4 MB Classes: 7k Objects: 350.9k Class Loader: 116I've got the above report using MAT memory analyzer. But I can't find any way to clear those classes, objects.Is there any way to remove all those object and clean permgen memory.Can we clean permgen memory or I have to increase...
How to clear permgen memory space
I agree with the commenters who have suggested that you may not actually want to do what you think you want to do. However:If (a) you're interested in environment variables with a specific prefix and (b) your variables don't contain any whitespace, something like this would work...here, I'm exposing all theXDG_*varia...
Using docker run with a bunch of -e flags or even a .env seems cumbersome.Is there any simply way to just pass all of the host env variables to a docker container
Simplest way of passing all host environment variables to docker container
7 You will need two load balancers, one for each environment. For uploading the certificate, it sounds like you are creating your Beanstalk environment through the console. In that case, after you create the environment, go to the EC2 tab, then 'Load Balancers', then 'Lis...
I'm not the most advanced AWS user there is, and have come across a bit of a roadblock. I've got 2 Elastic Beanstalk Environments, each with a Load Balancer, 2 EC2 instances and they share a RDS instance. One environment is for Development and the other for Production. I have purchased a wildcard SSL certificate from ...
Install Wildcard SSL Certificate on AWS Elastic Beanstalk
TheConfiguring the AWS Command Line Interfacedocumentation page lists various places where configuration files are stored, such as:Linux:~/.aws/credentialsWindows:C:\Users\USERNAME \.aws\credentialsThere is also adefault profile, which sounds like something that might be causing your situation:Linux:export AWS_DEFAULT_...
I seem to be having difficulty deleting the access key profile i created for a test user usingaws configure --profile testuserI have tried deleting the entries in my~/.awsdirectory however when i runaws configure, i am getting the following error.botocore.exceptions.ProfileNotFound: The config profile (testuser) could ...
aws configure delete access key profile
You can try force no-caching requests in request headers this way:// Force the request expires requestHeaders.setExpires(0); // Cache-Control: private, no-store, max-age=0 requestHeaders.setCacheControl("private, no-store, max-age=0");I had similiar problem and it worked fine.ShareFollowansweredNov 9, 2017 at 16:00Jorg...
In my Spring-boot project for REST HTTP calls I am using org.springframework.web.client.RestTemplate.The problem is that it is caching the response, meaning that when I call it for the first time I get back the right response, but when I update data on server related to current API and when I call same API for the seco...
How to stop org.springframework.web.client.RestTemplate caching the response?
You can use below script#!/bin/bash USER=root PASS=root123 mysqladmin -h remote_server_ip -u$USER -p$PASS processlist ###user should have mysql permission on remote server. Ideally you should use different user than root. if [ $? -eq 0 ] then echo "do nothing" else ss...
I want a bash shell script that i can run using a cron job to check if mysql on a remote server is running. If it is, then do nothing, other start the server.The cronjob will be checking the remote server for a live (or not) mysql every minute. I can write the cron job myself, but i need help with the shell script that...
Shell script to check if mysql is up or down
29 It looks like you have an invalid region. Check your ~/.aws/config Share Improve this answer Follow answered Sep 15, 2019 at 11:18 ChickenSoupsChickenSoups 97788 silver badges1818 bro...
When EMR machine is trying to run a step that includes boto3 initialisation it sometimes get the following error: ValueError: Invalid endpoint: https://s3..amazonaws.com When I'm trying to set up a new machine it can suddenly work. Attached the full error: self.client = boto3.client("s3") File "/usr/local/lib/pytho...
ValueError: Invalid endpoint: https://s3..amazonaws.com
The cronjob runs from home directory by default. So you should see the file to be created under /home/ec2-user or /root if you run it by root account.If you need generate the new file with the nominate path, one way is to use absolute path as @yftse said. The other way is* * * * * cd /home/ec2-user/Test/; bash /home/ec...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
Crontab script not generating text file [closed]
You can use Hashicrop Vault or kubernetes-external-secrets (https://github.com/godaddy/kubernetes-external-secrets).Or if you just want to restrict only, then you should create a read-only user and restrict the access for the secret for the read-only user using role & role binding.Then if anyone tries to describe secre...
I am trying to avoid kubernetes secrets view-able by any user. I tried sealed secrets, but that is just hiding secrets to be stored in version control. As soon as I apply that secret, I can see the secret using the below command.kubectl get secret mysecret -o yamlThis above command is still showing base64 encoded form ...
How to secure kubernetes secrets?
Since I do not know exact data, here's some information that could be useful: A partial path of a shortest path is itself a shortest path. I.e. you might split up your matrix into submatrices and find (all) shortest paths in there. Note that you do not have to store all results: You e.g. can save memory by not saving...
I'm facing a hard problem: Imagine I have a map of an entire country, represented by a huge matrix of Cells. Each cell represents a 1 square meter of territory. Each Cell is represented as a double value between 0 and 1 that represents the cost of traversing the cell. The map obviously is not fittable in memory. I am...
Optimal algorithm for path-finding in a matrix that does not fit entirely into memory
No; there's no way to specify repository credentials in adocker-compose.ymlfile. (And you definitely would not want to commit them to source control or distribute them in a plain-text file even if it were possible.) You need to manually rundocker loginon each system.ShareFollowansweredFeb 1, 2022 at 14:43David MazeDa...
I am relatively new to docker and have a docker-compose file where I want to access a private repository.Since the docker-compose file will also run on other computers, I would like to integrate thedocker logincommand into the docker-compose file. So thatdocker-compose upis executed and then as withdocker loginthe user...
Executing docker login in docker-compose file
Privileged mode means you have all the capabilities enabled, seehttps://stackoverflow.com/a/36441605. So adding CAP_SYS_ADMIN looks redundant here in your example.You can either give all the privileges or do something more fine-grained by mounting /dev/fuse and giving only SYS_ADMIN capability (which remains an importa...
Following thisguide,I am trying to run gcsfuse inside a pod in GKE. Below is the deployment manifest that I am using:apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gcsfuse-test spec: replicas: 1 template: metadata: labels: app: gcsfuse-test spec: containers: - ...
Is it possible to run gcsfuse without privileged mode inside GCP kubernetes?
Answer seems to be nothing technical but how input is shown on spark web ui for executors. This input to the executors is nothing but the sum of inputs at the time of checkpoints set by spark itself. Means it is nothing but the sum of all inputs shown in the total tasks list, as it is summary. That's why spark sql tab ...
I am running an amazon emr cluster with 20 spark applications having cluster configurations as 1 master node and 2 worker node as c5.24xlarge instance. Giving 3 executors and one driver to each application. Butspark web ui for executor inputI can see input to executor is more than the file size to be processed, while i...
Why executor input for spark application running on amazon emr is showing more than the actual file size its processing?
Well, after finally finding an excellent guide (http://duartes.org/gustavo/blog/post/how-the-kernel-manages-your-memory/) and some hours digging the Linux kernel, I found the answers... Indeed, brk only pushes the virtual memory area. When the user application hits *allocated_integer = 5;, a page fault occurs. The pa...
This is actually a theoretical question about memory management. Since different operating systems implement things differently, I'll have to relieve my thirst for knowledge asking how things work in only one of them :( Preferably the open source and widely used one: Linux. Here is the list of things I know in the who...
What happens in the kernel when the process accesses an address just allocated with brk/sbrk?
I can see that the record have been propagate correctly.So to recap my comment for better visibility:If you want to manage domains purchased from google on another website (e.g. OVH, GoDaddy, Cloudlare, etc.) you must change name servers ondomains.googleas describedhere.This change may take up to 72 hours, although is ...
A few weeks back I have aquired a domain name on Google DNS and i would like to change nameservers to cloudflare. Following Cloudflares Documentationhttps://support.cloudflare.com/hc/en-us/articles/205195708I have disabled DNSSEC and changed Nameserver accordingly:My Cloudflare Dashboard shows following NameservesGoogl...
GCloud DNS Nameserver change stopped propagating
I suppose you could do something like:if(nb.getOps() != null && String.valueOf(nb.getOps()).length() > 0) { builder.setOpS(String.valueOf(nb.getOps()); }... assuming you don't need to explicitly set the builder's value as null if nb.getOps() is empty.
I have made a simple method in Java and I have a major error telling me that "Assigning an Object to null is a code smell. Consider refactoring.". Thus I should consider refactoring my code, but I am not sure I can find a way to re-write my sample of code differently.Here is the code :public static Key buildKey(TypeA a...
Refactoring the code in order to avoid assigning an Object to null
Not very elegant, but works: redis: image: "redis:5.0.3-alpine" command: [sh, -c, "rm -f /data/dump.rdb && redis-server"] # disable persistence /data/dump.rdb is where Redis stores the database.
According to this link, persistence of redis instances can be prevented by setting --save ''. However when I try to use that argument in my docker-compose.yml the redis instance still loads a database from disk and persists all data: version: '3' services: redis: image: "redis:alpine" command: ["redis-server...
Disable redis persistence in docker
It will be better if you post your code for initWithTitle for these 2 lines: [challengeCell initWithTitle:challengeTitle subTitle:challengeSubtitle _votes:challengeVotes content:challengeContent _time:challengeTime _image:challengeImage noComments:challengeCommentsNo]; //Warning coming at this line return (UITableView...
I'm getting a memory warning: "Incorrect decrement of the reference count of an object that is not owned at this point by the caller" for challengeCell at the marked line. myIdentifier = @"ChallengTblVwCell"; ChallengeTableViewCell *challengeCell = (ChallengeTableViewCell *)[tableView dequeueReusableCellWithIdenti...
Incorrect decrement of the reference count of an object that is not owned at this point by the caller in iphone
You can configure the framework bundle to do this:http://symfony.com/doc/2.0/reference/configuration/framework.html#trust-proxy-headersframework: trust_proxy_headers: true
I'm running a Symfony2 web application on AWS, and am using an Elastic Load Balancer.In a controller method, I need to do the following to get the IP of a user requesting a web page:$request->trustProxyData(); $clientIp = $request->getClientIp(True);Does this present any security risks? I'm not using the client IP for ...
symfony2 behind Amazon ELB: always trust proxy data?
From the docshttps://github.com/kubernetes/kops/blob/master/docs/instance_groups.md#converting-an-instance-group-to-use-spot-instancesFollow the normal procedure for reconfiguring an InstanceGroup, but set the maxPrice property to your bid. For example, "0.10" represents a spot-price bid of $0.10 (10 cents) per hou...
I am currently using kops to create AWS EC2 clusters. But it does not seem to have an option to specify 'spot' instances.Does anybody know how to create instances of type 'spot' with kops or with kubernetes?
How to create AWS spot instances with Kops or Kubernetes?
I found just one workaround so far. Assume that Jinja uses some kind of caching/optimization depending on Custom Filter's function input:Here:B Channels: - A: Foobar item - A: Foobaz item CSo the most obvious workaround is to send new input every time, i.g.{{ loop.index | next_id }}:Template:Channels: {% for ite...
I need to generate a document with letter indices, like this one:Channels: - A: Foobar item - B: Foobaz item - ...I have input file withFoobar,Foobaz, etc and I wantjinja2to generate it with indecesA,B, etc from template file, like this:Channels: {% for item in items %} - {{ None | next_id }}: {{ item.name }} item...
How to use Python Generator in Jinja2 Custom Filter
No, a configmap mount is read-only since you need to go through the API to update things. If you just want scratch storage that is temporary you can use an emptyDir volume but it sounds like you want this to stick around so check out the docs on persistent volumes (https://kubernetes.io/docs/concepts/storage/persistent...
I have application run inside the kuberentes pod that update the user configuration file and on every deployment it flush the data, as the file reside in a folder which cann't be mounted so I created the empty configmap to mount that file as configmap with subpath mounting and also set the defaultmode of file 777 but s...
Is it possible to mount a file in read/write mode in kubernetes deployment
Yanick,Is the reason you can't use PowerShell down to the restrictions in BladeLogic? If so, we've developed a workaround for calling Powershell scripts from BladeLogic! :)-John.ShareFollowansweredJan 6, 2014 at 16:06John LandellsJohn Landells11211 silver badge77 bronze badges1Yes and no. I know how to execute Powersh...
I'm trying to write a post-install script that will be used to validate the install and configuration of a BladeLogic RSCD Agent on a server. One of the things I need to check is if the Windows Firewall is enabled and if the port TCP 4750 -or- executable named RSCD.exe is allowed (inbound) in the firewall.Since Windows...
How to check if port or program is allowed in Windows 2008 firewall using netsh advfirewall commands
3 I've head good about Redis, that's one. I've also heard extremely positive things about memcached. It is suitable for binary data as well. Take Facebook for example: These guys use memcached, also for the images! As you know, images are in binary. So, get memcached, get a...
I pre-generate 20+ million gzipped html pages, store them on disk, and serve them with a web server. Now I need this data to be accessible by multiple web servers. Rsync-ing the files takes too long. NFS seems like it may take too long. I considered using a key/value store like Redis, but Redis only stores strings as...
What's the best way to cache binary data?
Then answer is in the http header. Web pages are served with a Content-type header set to text/html. If you use text/plain instead, browsers will show it as pre-formatted.
I want to know why does github's raw code(like this) appear to be formatted how it is without using <pre> tags. I've tried to copy the code to a file and use browser to open it, but if I don't add a <pre>...</pre>, it won't display in the correct format and use the Monospace font.
How does github raw code work? It can display text like code without <pre> tag
It depends on what type of HTTP proxy and protocol you're using.In most cases you're likely to encounter the web browser will pass the fully-qualified domain name to the HTTP proxy, which will perform the DNS lookup and forward the request (and potentially take other actions).However, there are cases where your web bro...
How are DNS lookups managed when using a proxy ? I tried tonslookupgoogle.com and it is unable to find it from my local DNS so what is the path of DNS lookups with a simple HTTP proxy ?
DNS lookup and HTTP proxies
Before 2018-03-06statxisn't included in thedefaultseccompwhitelistused by Docker as of present date.You can use--security-opt seccomp=/path/to/seccomp/profile.jsonto specify a different profile (presumably, one with this syscall added).After 2018-03-06moby/moby#36417wasmerged to masteras of March 6th, 2018.It should be...
I have a Qt project that uses a plugin interface which compiles fine on my system. However, when the same project is compiled inside docker it stopped working with Qt 5.10.1, giving the messageError: Undefined interface. After somestraceing themocrun, it turned out that a header file that defines the interface is not f...
Which capabilities are needed for statx to stop giving EPERM
It's up to your need as per the reason below.from PPA. This is a quick and easy way to install NGINX Open Source. The package includes almost all NGINX official modules and is available for most popular operating systems. See Installing a Pre-Built Package for details.compiled from the sources. This way is more flexibl...
Nginx source seems far different from the Nginx PPA. Mostly the way PHP is configured, and the different sites-available config. Should I be installing the source version, or the Nginx from the PPA?
Should I be installing Nginx from source or PPA?
2 1'st question : No you don't have to delete it. It will be deleted when the parent is deleted. So you have to delete the parent which is probably a form or dialog. When you create the dialog with Qt::WA_DeleteOnClose flag Qt deletes this widget when the widget has accept...
I'm not that familiar to memory handling, but i am currently working on a Qt project (c++), developing an app for Symbian devices, using the Qt Nokia SDK. Platform: Windows 7 1'st question: If i create a pushbutton like this: QPushButton *button = new QPushButton(parent); Do i have to delete it? (I think no, since i...
How to handle memory leaks?
To run Nginx docker container as a service in swarm mode one should ensure that all the services, used into the nginx as a upstream server, are running otherwise service discovery would get fail and your nginx service would also get failed.
I am trying to create a service in docker with following command. docker service create --name nginx-proxy --network my-net --replicas=1 -p 8088:80 -p 8043:443 --mount type=bind,src=/opt/my/nginx,dst=/etc/nginx/conf.d,readonly=true --constraint 'node.labels.nginx == yes' nginx I am getting following error: 7p5u1...
Docker swarm mode create service with --mount
Try switching the directory locations like this: $ docker run -it -v /home/<username>/scripts:/opt/scripts dnraikes/kali-net /bin/bash From the documentation on volumes, -v takes [host-src]:[container-dest]. Also note that host-src must be an absolute path so replace ~/scripts by /home/<username>/scripts or the full ...
I am working with a kalilinux-based docker container (dnraikes/kali-net). I am developing some proprietary scripts to run various security tools against our in-house servers so I don't want to embed the scripts inside the docker image using either the COPY or ADD commands in my Dockerfile. My scripts are in ~/scripts ...
docker how do I make host scripts available inside a container
The allocation is for each container.Containers are not used by more than one invocation at any given time -- that is, containers are reused, but not concurrently. (And not by more than one version of one function).If your code is leaking memory, this means subsequent but non-concurrent invocations spaced relatively c...
In aws lambda the ram allocated for a lambda is for one instance of that lambda or for all running instance of that lambda? Till now I believed its for each instance.Let's consider a lambda 'testlambda' and I am configuring it to have 5 Minutes timeout and 3008 MB (current max) RAM and have "Use unreserved account conc...
Lambda instance ram allocation
How should I expose this application to the outside world?You should use aServicewith atype: LoadBalancerLoadBalancerwill give you an External Ip that will allow you to connect to it from outside the cluster.If you only need it for testing and this is why you are usingminikubethen port forward should cover the requirem...
I have installed minikube in EC2 Linux Instance.Minikube IP : 192.168.49.2, EC2 Instance IP: 10.X.X.XI've deployed an application as NodePort service type whereport: 80 targetPort: 80 nodePort: 32768 and able to access it with curl http://192.168.49.2:32768 within the cluster.How should I expose this application to th...
How to access a service deployed as NodePort in Minikube in EC2 from outside
10 Use the following rule, it should work. No need to add account and region fields. I think primary reason why it wasn't working was because the state 'SUCCEEDED' was in lowercase. { "source": [ "aws.glue" ], "detail-type":[ "Glue Job State Change" ], "...
I have created one AWS Cloud watch Rule where I have defined the following event pattern. To capture the AWS Glue Job and keep an entry in SQS Queue. { "source": [ "aws.glue" ], "detail-type": [ "Glue Job State Change" ], "detail": { "state": [ "Succeeded" ], "jobName": [ "Glu...
Capturing AWS Glue Event in Cloud watch
Based on your last log I suggest try running prometheus with 'storage.tsdb.no-lockfile=true'I had several cases on win7 that data folder got corrupted and prometheus not starting. When I used the above flag I had no issues running prometheus on win7 or win10
I am currently working on scraping metrics from WebLogic server usingweblogic monitoring exporter. I am trying to display these metrics using prometheus. My prometheus.yml file contents are:-# my global config global: scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. ...
Why doesn't prometheus.exe execute?
Assuming you declared a weak property in the header like this: @property (nonatomic, weak) Bar *foo; you can simply implement the setter method like this: - (void)setFoo:(Bar *)foo { _foo = foo; // do your custom things here } where _foo is the automatically generated instance variable for your property.
I have to do some operation on setter method which have weak property attribute. But, I don't know how to do it. Could anybody help me on this?
How to define the setter method with weak attribute in iOS programming?
This may not be exact answer, but it should be similar for public repo. I have a private repo and paid account with one additional user license, so I can review and require approval of other user's PRs.This is how I setup protection. repo -> Settings -> Branches (under code and automation) -> Branch protection rule -> ...
I have a private Github repo which I want to make public, but:I don't want people to be able to merge their PRs without my approvalI want to be able to merge my own PRs without anyone's approvalIs this possible and how ?I couldn't find a combination of the above while looking at my repo's settings, unless I pay for a P...
Github: How can I require PRs to be approved by me, unless they are my own?
NSArray *myNewArray = [[NSArray alloc] initWithObjects:.......]; NSString *nameString = [myNewArray objectAtIndex:2] [myArray release]; That's it, no need to bother any more with it. NSString will be released by environment itself.
What is the right way to get an NSString object from an NSArray, keeping Memory Managment in mind. Suppose I have an array NSArray *myNewArray = [[NSArray alloc] initWithObjects:.......]; Now I want to get an object from this NSArray at index 2. NSString *nameString = [myNewArray objectAtIndex:2]; // is it the right...
What is the right way to get an NSString object from an NSArray, keeping Memory Managment in mind?
If you are running the yml with docker-compose, you can just rundocker-compose up -dand it will recreate any containers that have changes and leave all unchanged services untouched.$ cat docker-compose.env2.yml version: '2' services: test: image: busybox # command: env command: tail -f /dev/null envi...
docker-compose.ymlversion: '2' services: app: build: context: . command: python src/app.py restart: on-failure depends_on: - db environment: - TJBOT_DB_HOST=db - TJBOT_API_KEY - TJBOT_AUTO_QUESTION_TIME env_file: - .env db: image: mongo:3.0.14 volu...
How to reload environment variables in docker-compose container with minimum downtime?
Rather than creating 20 different instances, use one, but clear the list (which allows the GC to collect old elements) so that you have more memory to work with. Also, moving to a 64 bit environment might be wise if you require huge amounts of memory.
First of all, I am aware that this question has been discussed many times in this forum, such asLarge array C# OutOfMemoryExceptionandOutOfMemoryExceptionThe object I am having problem with isDictionary<long, Double> resultswhich stores ID in long and calculation result in DoubleI will have to reuse the same object abo...
OutOfMemoryException - Strategies to overcome this problem?
Each query parameter is exposed as avariable prefixed with$arg_in the configuration file. For example,devicewould become$arg_device. Using this you can make the comparison check within your location block, for example:location / { if ($arg_device = desktop) { return 301 $uri; } }
Nginx, I am trying to permanently redirect the URLs with adeviceGET parameter (http://www.example.org/page?device=desktop) to the relative URL without this parameter (http://www.example.org/page).I did this, but it doesn't work.location { rewrite ^(.*)\?device=desktop $1 permanent; }
Nginx redirect URL with specific query parameter
Please try:docker run -p 70:80 kitematic/hello-world-nginxbinding port is probably mistyped in the command you provided.
I am new to docker. Just tried to run a container on port 80docker run -p 80:80 kitematic/hello-world-nginxand it seems to be working fine. I can get to the site athttp://192.168.99.100/but i tried changing the port todocker run -p 70:50 kitematic/hello-world-nginxand i cannot get to site athttp://192.168.99.100:70. So...
Docker run container on different port
The answer to your question is generally Yes, on a page (usually 4K) basis. For CPU->GPU copies, the driver copies CPU pages lazily by tracking dirty bits. After a kernel launch, the managed memory is marked nonresident so CPU accesses will fault. Then after a CPU/GPU sync operation, it is left nonresident and the d...
The doubt I have about cudamallocmanaged is that if I malloc N numbers, after GPU finish a operation on those numbers(let say a scan operation), I only need the last number in the array and access only this number in the host. Will cudamallocmanaged only copy this number back?I did a test and my answer is no. So I thin...
Is cudamallocmanaged smart enough to not copy data which is not needed?
In Case if you want to use just kubectl without jq :needed to print both namespace and the pod namekubectl get pods --all-namespaces -o jsonpath='{range .items[?(@.spec.serviceAccountName == "default")]}{.metadata.namespace} {.metadata.name}{"\n"}{end}' 2>/dev/nulli have added 2>/dev/null to avoid printing whole json t...
We have a k8s cluster with 10 workers. we run hundreds of pods in the cluster. we want to avoid running pods with default service account. Need to find out the pods that are running with default service account. am able to find the number of pods using default service account with grep command but also need the pod nam...
Find out all the pods that are using default service account
Can you please tell us how exactly you did the HTTP request? The 404 sounds like you were using a wrong path, probably. But to give a reliable answer instead a wild guess, we need to see your request, including how you are sending your token, just mask it with 'xxx' or something.I'll show you in the meantime an example...
I’m trying to use the Github v3 API - I already implemented the required OAuth flow and it works well.Now I’m trying some of the Repos API endpoints (http://developer.github.com/v3/repos/).So far, I’m able to get a List of my repos using: GET /user/repos However, when I try to create a repo using POST /user/repos, I ge...
Github v3 API - create a REPO
I have a solution.CEST FATAL: role "root" does not existThis appears also every 5min in my postgres log. I have searched with htop to find this nasty program that pollutes my logs. It was monit! Monit checks postgres every 5min if it is still running or not. Here the monit config (monitrc):check process postgres wit...
less /var/log/postgresql/postgresql-9.3-main.loglooking inside postgresql log file I've found many lines with this:CET FATAL: role "root" does not existAfter many google research I've only found the way to create user , but that is not what I'm looking for. How can I check what kind of postgresql cron job is this?Than...
CET FATAL: role "root" does not exist in postgresql-9.3-main.log postgreSQL
Format and Orderdocker psList containersdocker psSynopsisdocker ps [--format="TEMPLATE"] --format="TEMPLATE" Pretty-print containers using a Go template. Valid placeholders: .ID - Container ID .Image - Image ID .Command - Quoted command .CreatedAt - Time when the container was created. .Ru...
I haven't found any way to order my results when usingdocker psIn my case I want to order by .Portsdocker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}"How do I order the result?
How to sort or order results docker ps --format?
4 After some experimentation I noticed this was associated with my "SQL Server" database project (.csproj) Visual Studio tends to lock certain files which causes issues for the docker build process, it's possible to confirm this by closing visual studio, and then using powe...
When I attempt to build a Docker image from any of my .NET core projects, if the project's solution file is open in Visual Studio 2017, the Docker build process immediately fails when attempting to create the build context: ERROR: Error processing tar file(exit status 1): unexpected EOF If I close the solution, the Do...
Docker image unable to build when solution is open in Visual Studio 2017
I thought about was having the container query the kubernetes/AWS API to fetch this information however that would mean adding quite a lot of complexity to my containers.This is currently the recommended approach for getting information not available in the downward API. To avoid the additional complexity in your conta...
I am looking to deploy services to a Kubernetes cluster running over multiple zones and would like to be able to inject the region/zone labels into my pods using environment variables.I have looked into the downward API however this only seems to allow you to inject labels/metadata from the pod/service and not from the...
Inject node labels into Kubernetes pod
0 You probably need to turn core.autocrlf off. Share Improve this answer Follow answered Apr 5, 2011 at 13:10 rlcrlc 2,8181818 silver badges2323 bronze badges 9 Is core.au...
Ok, I have a git repo. All clones running same-ish version of git (pretty much latest). 'origin' is on GitHub.com clones on various CentOS servers, no problems with line-endings encountered clone on my Mac OS system (using git via cmd line, and/or Tower GUI), no problems with line-endings either.. BUT another clone...
git line-endings issue with just one clone of a repo
This is not supported currently (version 6.1). You can track this ticket to be informed of the progress:https://jira.sonarsource.com/browse/SONAR-6763
I am currently working with SonarQube v5.6 and have a need to generate comprehensive "preview" reports locally before pushing the results to my remote SonarQube server. Specifically, I need to be able to see technical debt, code coverage, and duplicated blocks in the local HTML and/or console reports which are created ...
Can SonarQube be configured to show code coverage in "preview" mode reports?
1 I fixed this issue in a roundabout way. In my docker-compose.yml file, I created a network and bound a static IP as the gateway ip like below version: '3.4' services: service-name: networks: local_net: ipv4_address: 172.18.0.2 networks: local_...
My windows docker container cannot resolve host.docker.internal, but it's working with Linux containers. I would prefer to stay with Linux containers, but I am having trouble with an old .Net framework 4.7.2 application. My application connects to RabbitMQ on the local machine. This works as expected in the Linux co...
Docker Windows container can't resolve host.docker.internal
1 I really don't know what effect grouping by brush will have, but there are some things you should check first: Make sure all brushes, pens and other freezables are frozen. Simplify your visual tree, try to reduce element count. Try to reduce the number of elements that c...
In Direct2D they recommend drawing similar things together, to avoid unnecessary GPU state changes. They also do some drawing operation reordering behind the scene just for that. I have to draw a lot of rectangles which can have one of two colors. I'm thinking of doing the drawing in two passes, one for the rectangles...
WPF high performance drawing - should I group by brush color?
I recently tested remote debugging with Visual Studio 2013 Update 3 to an AWS EC2 instance.I only needed inbound security group rules for TCP 4018-4019.(Previously with Visual Studio 2012 I only needed inbound security group rules for TCP 4016-4017.)
I have a 3rd party firewall blocking VS 2013 Update 2 Remote Debugging. I want our domain admin to open the necessary ports, but there seems to be a discrepancy in the documentation.Online versionmentions:DCOM (TCP Port 135) and IPSEC (UDP 4500 / UDP 500)Installed documentation mentions:...To do so, allow traffic on TC...
Firewall ports needed for Visual Studio 2013 Remote Debugging
Got to github repo which has those proto files:- https://github.com/googleapis/googleapis/tree/master/google/api/servicemanagement/v1
This might be a stupid question, i am not able to find any client lib on github or any way to download proto files to call Google's Service Management API. There is an http client lib at maven central but i want to make grpc calls and can't find a way to get proto files.
How to get proto files of service infrastructure
Yes there is a limit on extent size - either 2048x2048x2048 or 4096x4096x4096 depending on which hardware you have (from the details in your question I presume you have a Fermi card). But that true source of your problem is your make_cudaExtent call. For cudaMalloc3DArray, the first argument of extent should be given ...
Calling: cudaExtent extent = make_cudaExtent( 1920 * sizeof(float), 1080, 10); chanDesc = cudaCreateChannelDesc ( 32, 0, 0, 0, cudaChannelFormatKindFloat); err = cudaMalloc3DArray ( &(devYAll[0]), &chanDesc, extent, 0); is failing with err=cudaErrorInvalidValue. When I use the first arguement to extent as 1024 or ...
cudaMalloc3DArray fails with bad value -- limit to size?
From the docker documentation (https://docs.docker.com/engine/reference/builder/):CMD ["executable","param1","param2"] (exec form, this is the preferred form)CMD ["param1","param2"] (as default parameters to ENTRYPOINT)CMD command param1 param2 (shell form)...Note: Unlike the shell form, the exec form does not in...
I have been studyingDockerfileimplementations of several projects and I noticed that some of them start the application with:CMD executablewhile other do:CMD /bin/sh -c "executable"I have been trying both versions for each project, and don't really notice a difference.Is there a difference? If so, when is which version...
When do you have to use `/bin/sh -c "..."` in the CMD directive in a Dockerfile?
If other services are running and you want to restart only one, you can use docker-compose -f docker-compose.yml restart service1 Edit: Regarding error: ERROR: Service ‘service1’ depends on service ‘service2’ which is undefined. It is because the docker-compose.yml which is used to up the services is not acceptab...
We are using docker-compose in our dev environment to start all the services. Does any one know if I can start just 1 service using docker-compose without checking if dependencies are running or not (since I know they are running)? $ docker-compose -f docker-compose-service1.yml up it gives an error: ERROR: Service ...
How do I start one service in docker-compose without checking for or starting any dependencies?
This AWS Documentation guide will help you to configure your Code Build Project with your VPC.But I am sure, you must have gone through it. Please share the error as well.Link
How to enableVPCaccess forAWS CodeBuild/Code Pipeline?I am working on the Neptune database and it requiresVPCto access. While building code insideAWS CodeBuild. My tests are failing because it's not able to access the Neptune database. How can I configure the pipeline to allow CodeBuild to access the VPC?
How to enable VPC access for AWS CodeBuild/Code Pipeline?
5 First of all, why would you want to ignore the file, it is supposed to be checked in. If you want to ignore it, you can enter it into .gitignore itself, but it is probably better to handle local ignores differently: don't put them into the workspace .gitignore (but .git/i...
If I change a bunch of files and then run command git add . it includes all the files along with .gitignore in my commit list. If I use git rm --chached .gitignore then it is showing as deleted: .gitignore and git add . is adding the deleted .gitignore file How can I IGNORE .gitignore itself so that git add . command ...
git add . or -A is adding .gitignore file in commit list, how to get ridoff this?
Is there any way for us to restore and reopen this pull request?You can at leastcheck out hos PR branch locallygit fetch origin pull/ID/head:BRANCHNAME git switch BRANCHNAME(RenameBRANCHNAMEwith a local branch name which makes sense in your case)From there you can:pushBRANCHNAMEto your repositoryopen a new PR from ther...
I'm overseeing a small open source project and we use github. A contributor sent us a PR with some good work we really want to have, and would struggle to replicate, including some files that aren't codeDirect link if it's helpful:https://github.com/DS-13-Dev-Team/DS13/pull/1994Unfortunately, this contributor got into ...
Retrieve deleted pull request on github?
You'll find out what the object is when you break in the debugger. Just look up the call stack and you will find where you free it. That will tell you which object it is.The easiest way to set the breakpoint is to:Go to Run -> Show -> Breakpoints (ALT-Command-B)Scroll to the bottom of the list and add the symbolmalloc_...
I'm programming an application in Objective-C and I'm getting this error:MyApp(2121,0xb0185000) malloc: *** error for object 0x1068310: double free*** set a breakpoint in malloc_error_break to debugIt is happening when I release an NSAutoreleasePool and I can't figure out what object I'm releasing twice.How do I set hi...
How to find the cause of a malloc "double free" error?
The pod secondary CIDR ranges and sub-networks can be shared across multiple clusters. However, Services secondary CIDR ranges must be different across multiple clusters and cannot be shared because secondary service ranges are unique to a given cluster.Sharing IP ranges is not recommended as :1.It can add extra noise ...
I have created subnets in GCP with allotted secondary IP ranges for pods and services. And have started a GKE cluster by providing the above secondary IP ranges for services and pods. Lets call this cluster-A.Now I want to create another GKE cluster within same region, and want to use same subnets. Can I use the same s...
Can you share pod and service secondary_ip_range between GKE clusters?
Worked it out. Apparently I had put an expiration on my auth token (that I forgot about) and it had expired. Renewing the token in my GitHub security profile did the trick.ShareFollowansweredNov 4, 2021 at 17:04CodeCrafterCodeCrafter4144 bronze badgesAdd a comment|
I'm running PyCharm community edition (latest) and having problems getting it to stay authorized to GitHub. About every 5 - 10 minutes I get a pop-up asking to authorize to GitHub with either sign-in (which I've done) or using a token. I had problems initially with the token so did the sign-in option which worked for a...
Pycharm not staying connected to GitHub
9 You are severely conflating many things which are logically different: Just because a variable is a local variable in C# does not mean that it is on the short term storage pool in IL. Local variables in C# can correspond to short term storage, long term storage, or evalu...
I'm just going inside the CLR and IL and I'm confused by this thing. I have the following C# code: int x = 1; object obj = x; int y = (int)obj; And IL disassemble for this // Code size 18 (0x12) .maxstack 1 .locals init ([0] int32 x, [1] object obj, [2] int32 y) IL_0000: nop ...
Where does local variables actually allocated within CLR?
When you merge a commit into your project, that also merges in all of its ancestors. So merging in a subsequent commit built on the original patch will also pull in the original patch. It's possible to use a commit (rather than a branch) as the argument to git merge, but also it is easy to create a branch pointing to...
So I'm relatively new to the more interesting parts of git besides push, pull, commit, and branches. I was looking at the android subreddit and found a link to the source of a new feature for the Paranoid Android rom. When I looked at it, I noticed that the ENTIRE feature was a single set of 2 individual commits pushe...
Using Git to Merge Updated Features to Forked Projects
I ran into this problem and did some digging. It turns out that v1.21.0 of serverless broke packaging of binaries. https://forum.serverless.com/t/serverless-1-21-0-breaks-sharp-library/2606 https://github.com/serverless/serverless/issues/4182 The recommended fix is to upgrade to v1.21.1.
I'm having an issue getting a node module to load in AWS Lambda using the Serverless Framework. One of my node packages uses native libraries so I used an EC2 to create the node_module folders and then copied them to my Serverless project. Everything works if I manually zip the project and upload to AWS Lambda but if ...
Serverless NodeJS / Native node_modules
I just tried, I created subfolder successfully inside thecachefolder.I'm assuming maybe you've gotten a folder with the same name, maybe that's why you failed to mkdir?ShareFollowansweredApr 8, 2022 at 21:14SongzhwSongzhw14111 silver badge33 bronze badgesAdd a comment|
Does Android not allow creating subdirectories in the cacheDir? Given that third party (such as advendors) surely will need to cache their own files, it makes lots of sense for me to create a subdirectory for my cached files and let third parties I've integrated manage their own cached files.Does anyone know how to se...
On Android Context.getCacheDir() seems to return a directory I cannot create subdirectories in
I think a minute is a long time if you are servicing 200 requests a second and I would have thought that SO uses asp.net output caching for the front page. They will also most likely use some sort ofdonut cachingaswell to cache the non-user specific portions.Asp.net MVC uses the standard ASP.NET caching provider unchan...
I'm looking into caching with ASP.NET MVC and I am also in middle of finalizing web-host. I've two questions...1) Does caching pose issue when done on shared hosting environment since resources are shared and all? This question may sound silly, but I just do not know how caching works behind the scene.2) Before I imp...
asp.net mvc - caching
This question is fairly vague, but I'll see if I can give you some pointers. My first guess is that your app is spending a lot of time doing database related stuff, see below for my advice. As for the odd memory usage, are you looking at the correct part of the free -ml output? Just to clarify, you want to be looking...
We are running a big server (12 threads, 6 cores, 64Gb ram, 2 SDDs raid-0) for our rails app deployed with nginx/passenger. Unfortunately, pages are taken forever to load something like between 10 and 40 seconds. However, the server is under a really light load, with a load average of 0.61 0.56 0.53. We have ram used ...
Identify Bottleneck with Passenger
You can just usekubectl get pod <your pod name> -wwhenever any update/change/delete happen to the pod, you will see the update.You can also usewatch -n 1 kubectl get pod <your pod name>This will continuously runkubectl get pod ...with 1 seconds interval. So, you will see latest state.
I'm trying to build a script that can follow(-f)kubectl get podssee a realtime update when I make any changes/delete pods on Ubuntu server.What could be the easiest/efficient way to do so?
Script to continuously follow kubectl get pods
You do not need to pass the Key value as an absolute path. The following should work: upload_file('/tmp/' + filename, '<bucket-name>', 'folder/{}'.format(filename))
Everything with my code works. The only pitfall I am currently facing is that I cannot specify the folder within the S3 bucket that I would like to place my file in. Here is what I have: s3.meta.client.upload_file('/tmp/'+filename, '<bucket-name>', filename) I have tried both: s3.meta.client.upload_file('/tmp/'+filen...
uploading file to specific folder in S3 using boto3
From the github issue seems like it not possible as there is no EC2 instance or Host ivolvole in Fargate.the workarounds for themax_map_counterror appear to be settingmax_memory_mapdirectly on the host (which may result in undesirable side effects, or using the sysctl flag on on the docker run command.Unfortunately, ne...
I am trying to run a sonarqube app on the AWS fargate platform. When I run the raw docker image it works like a charm. But If I pass the JDBC properties to the container as an argument I am facing the following issue. Apparently, the elastic search needs a new config. If it is an ECS cluster I would have ssh into the E...
How to increase the vm.max_map_count in AWS ECS fargate?
Your assumptions are mostly correct. However there are plenty of times where proxy_ directives would be used when placing nginx in front of an application, notably if you're running rails via thin, or any sort of Jetty-based Java application. But you are right — in your given configuration (fastcgi_pass), the fastcgi_...
I inherited an nginx config and I'm trying to optimise it for security, speed, and/or maintainability by removing rules/directives which are superfluous or not doing anything. With this in mind, inside my server {...} directive, I have: fastcgi_buffer_size 16k; fastcgi_buffers 256 32k; and nested within, I have indiv...
What is the difference between proxy_buffer and fastcgi_buffer?
Your CloudFormation resourcepgDBshould be of the typeAWS::RDS::DBInstance, and therefore, it instructs CloudFormation to create one RDS instance. Each RDS instance can contain variable number of databases or database schemas.CloudFormation does not provide means to provision the instance upon creation. To create Postgr...
I have a requirement to create multiple databases in Postgres RDS provided by AWS using Cloudformation. I am able to create single database.Below is snippet of my template :"pgDB": { "Properties": { "AllocatedStorage": { "Ref": "Storage" }, "DBInstanceClass": { "Ref":...
Create multiple databases in AWS Postgres RDS using Cloudformation
The majority of Kubernetes maintainers (as of now), does not intend to make kubectl command more advanced than external tools made especially for data set parsing (e.g. grep, jq), and suggest still to use external tools in use case similar to yours. There is a PR planned for making this limitation more visible in Docs ...
I have the following list of pods:user@compute:~> kubectl get pods -n test --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' test-1 test-2 test-3 abc cdf dfgI would like to get just the pods which includestestin the name. Is any way to accomplish that without using grep or for, but using template or any Ku...
Get specific Kubernetes pods
Are you using MAMP? This happened to me, and had to do with a newer version of MAMP. In your MAMP Dir go to : /bin/php/php5.5.3/conf/php.ini And comment the Opcahe lines: [OPcache] ;zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so" ; opcache.memory_consumptio...
I've been working on a set of web development projects over the last few months, and have encountered the following problem: no matter what I do, every browser I have caches every page I load, which makes it impossible to know if an edit hasn't worked or if I'm viewing a cached version. I've tried Google Chrome, in In...
Stop caching my pages during local development
1 There is a feature to run multiple architectures on the same kernel. I use this to run i386 binaries in an amd64 container on an amd64 host OS/kernel. Debian call this Multiarch. I haven't tried this on arm, but in theory this could work the same as on Intel. Look at the ...
I’m try to use picamera, raspistill on raspberry pi. I recognized that these modules are Only work in 32bit os. But I want to use another development that works in 64bit os. So my question is this. Is it possible to make or install container that is different from host os? Host: 32bit, Container: 64bit I think dock...
Is it possible to install 32 bit container in 64 bit host, or the other ways?
2 Virtual inheritance is usually realized using function pointers, so both of your ideas boil down to the same thing (from compiler point of view). On a second thought, you are considering performance of a something as basic as function call. Are you 100% sure you're optimi...
This is a c++ question. We would like to have 2 utility functions that have different implementations depending on a certain parameter, during runtime it is determined which implementation should be called based on this parameter, what design could be best in terms of memory usage and performance? We are thinking of t...
class instance pointers or function pointers?
It's bad approach - because nginx works with virtual hosts in very-very fast manner, opposite to working with conditions. Generally spealing, conditions are interpreted by "simple virtual stack machine" (seehttp://nginx.org/en/docs/http/ngx_http_rewrite_module.html#internals) and are slow.Also, using virtual-host will ...
I'm trying to rewrite a URL for only one specific subdomain. The logical solution seemed to be using if-else to check whether the current subdomain was that one.I don't want a new virtual host, because I have a lot of things set to subdomains in general and it would be chaotic if I made a long section for every subdoma...
Nginx, rewrite url for one subdomain with condition, without new virtual host
I think you want to add the parameter --tty is to create a terminate and interact with the container instance. But it's not a parameter supported by Azure Container Instance. You can see all the supported parameters in CLI commands az container. To create a terminate and interact with the container instance, you could...
Is it possible to start docker containers in Azure with the docker --tty argument through the Azure Command-line Interface? I see nothing in the documentation and I'd like to be able to attach to a tmux session.
Using pseudo-TTY with Azure Container Instances?
If you already have the repo on the second computer, just fetch the remote. That will bring in all the remote branches. If you don't have the repo, then clone, again that brings down everything. Once you have everything in the local repo you want to merge or create a local branch to access the new stuff.You should p...
Basically I am trying to figure out how I can work seamlessly on both my laptop and desktop. So, I start off on my laptop and make a blank html page. I push that change to github. I then sit down at my desktop, clone it, and then start a new branch called crazy_idea, do some crazy stuff. Push it. Now I want to go get s...
How can you fetch your whole repository from github?
You would likely have to have some kind of naming convention for the tests you wish to exclude. Then, you can readily exclude them using something like the following:In yourbuild.gradlefile, add:test { if (project.hasProperty('excludeTests')) { exclude project.property('excludeTests') } }From the comma...
I am using POSTGRES SQL as DB for my springboot application .Sonarqube integration test cases fail as SonarQube is unable to connect to DB.How can i disable my integration test cases using gradlew command during Jenkins build ?Below is link where i have shown my code in detailSonarQube does not calculate code coverage
Disable Integration test case using gradle command in springboot
After, a long research i found just simple solution :I just input these wrong fields in SMTP Pro's > General settings :Username -[email protected]Password - •••••••••••••••Simply changed it with my cPanel username / password and now it's working fine.Thank you!
I am usingmagento 1.8.1 version. After place a successful order email not sending to customer. Even contact form also not working. In-short magento can't sending any email. Already follow many questions here but not helping me.Currently I used Gmail services for email with SMTP Pro Email Extension.Here is I've already ...
Email not sending on new order in magento
I suggest usingdeployment keysinstead of creating virtual accounts and inviting servers. It's a common setup if you need to pull changes only. That's what deployment keys are made for.
I had 2 github accounts setup for my organisation, the main account "software" and an account "servers" that I used only on our servers to pull updates (and switch branches)They were both personal accounts, "Software" was a paid account "Servers" was a free account.This setup has been working fine, but we've now had to...
What is the prefered way to setup a read only github account for servers
These headers should work fine:$expires = 60*60*24; // how long to cache in secs.. header("Pragma: public"); header("Cache-Control: maxage=".$expires); header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT'); header('Content-type: text/css');
I want to create a stylesheet in a PHP file (styles.php), such that the stylesheet becomes dynamic, depending on the user who requests is. For each individual user the stylesheet is constant, and should therefore be cached on his client browser.I have read that you can achieve this by setting headers for content-type a...
Let browsers cache my dynamic PHP stylesheet
This is not supported on the latest build (2.15.3), but is scheduled to be released on the next.The fix is already merged, and available on the dev channel:export OKTETO_CHANNEL=dev curl https://get.okteto.com -sSfL | shhttps://community.okteto.com/t/allowing-custom-certificates-in-okteto-cli/828has more information on...
While going overGetting Started on Okteto Cloud with PHPtutorial and getting the “certificate signed by unknown authority” error when runningokteto init. I believe it’s related to the custom zscaler CA that our company defines.How can I have okteto cli to trust custom CA? As far as I understand it's developed in golang...
Okteto CLI: Trust a custom CA certificate
This is a cron "gotcha". Cron uses the commandpython /Users/bgoldberg/PythonScripts/FunStuff/writeDate.pywhich you expect to write to your current working directory, but cron will write to/var/log/syslogor some variation of this by default. It is trying to write to some place you don't have the permissions to (but it w...
Not sure what I'm doing wrong whether it's the code, the directory, or something else. Please help!from crontab import CronTab my_cron = CronTab(user='bgoldberg') job = my_cron.new(command='python /Users/bgoldberg/PythonScripts/FunStuff/writeDate.py') job.minute.every(1) my_cron.write()And here's the writeDate.py scri...
Crontab in Python creates cron job, but doesn't run script
After some research, I can now give the answer myself:I had to add one more command to mypython.configin.ebextensionsfolder:... container_commands: ... 03wsgipass: command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'After that, AWS allows incoming requests to pass authorization, and I get the response...
I use django-oauth-toolkit with my django/django-rest-framework application. When I request an access token in dev mode on localhost, it works OK:dev@devComp:$ curl -X POST -d "grant_type=password&username= <user_name>&password=<password>" -u"<client_id>:<client_secret>" http://localhost:8000/o/token/ {"access_token":...
django-oauth-toolkit 'invalid client' error after deploy on AWS Elasticbeanstalk
Those are not modules, those are coverage metrics. The "coverage" value that you see in SonarQube is a weighted average of "line" and "branch" coverage. Line coverage simply measures the number of lines that are covered. Branch coverage refers to the number of "branches", based on logical expressions in "if" and sim...
I'm using sonar to do my code coverage and every time I run my coverage I get three modules: Line, Branch and Method, the branch is what I see in the sonar, but what are the other two?
Sonarqube coverage result modules name usage
Sure you can. EveryPOD(which is the basic workload unit in k8s) is isolated from the others in terms of networking (as long as you don't mess with advanced networking options) so you can have as many pods as you want that bind the same port. You can't have twocontainersinside the samePODthat bind the same port, though.
Can I create two pods where containers are running on same ports in one kubernetes cluster? considering that will create a separate service for both.Something like this :-- Deployment 1kind: Deployment spec: containers: - name: <name> image: <image> imagePullPolicy: Always ports: - containerPort: 80...
Kubernetes cluster, two containers(different pods) are running on same port
As long as you are careful to only "move" files in source control, you shouldn't do anything irreversible.In my opinion, the best way to rename is:Rename the files on the command line using "git mv" (to ensure changes are tracked). This should get you to a point where SwiftPM is happy with the layout (I assume what you...
I have a swift package similar to the example below, and its associated with a git repo both locally and remotely on Github.-ProjectName -Sources -ProjectName.xcodeproj -ProjectNameTestsFolder -ProjectNameTests.swift -Package.swiftFrom experience, I get nervous before I change any file names ass...
change file names of swift package files
Define uid in datasources.yml:uid: prometheusdatasourceExample:- name: Prometheus type: prometheus access: proxy url: http://prometheus:9090 editable: false isDefault: false uid: prometheusdatasourceAnd update the dashborad config file:"datasource": "prometheusdatasource"Example:"panels": [ ...
I'm reutilizing Grafana dashboards for different environments, deployed using Ansible. Grafana is a docker container working over Docker Swarm. At some point it stopped working, not sure if after upgrading from Grafana 8.10.0 to Grafana 9.2.15.If I try to export the dashboard with the option 'Export for sharing externa...
Datasource ${DS_PROMETHEUS} was not found" in Grafana
21 You can use a filter of larger-than:1 to hide all requests that returned less than 1 byte. When I tested this, requests served from the cache have (from cache) in the size column and are excluded by this filter. Negating it showed only cache cached requests. Granted, t...
Background Chrome devtools "Network" tab has the option to filter requests based on string-match of the URL and some predefined content type filters (CSS/JS/...). If you set a filter, the bottom bar of the network tab, contains extra information related only to the matching filter. Question Is it possible to filter re...
How to filter cached requests in chrome devtools?