Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Yes, and no.There are currently 8PHP rules related to unused code. However, the current state of PHP analyzer limits rules to running within a file, so there's not yet any ability to find classes in a project that are never used, for instance.
Well, simple question. Is there a way to detect dead code in php with Sonaqube? I looked for plugins to do this, but unfortunatly, I did not find anything.Any ideas?
Can I detect dead php code with SonarQube? If yes, how?
You need to keep the argument names of the fit and transform function of the parent classdef fit(self, X, y): self._model.fit(X) return self def transform(self, x): return self._model.transform(x)
I am making a pipeline consisting of a tfidf vectorizer and an xgboost classifier and I am trying to find the optimal parameters for the vectorizer for my problem. I however get the following error:Cannot clone object Text2TfIdfTransformer(max_df=0.5, max_features=1000), as the constructor either does not set or modifi...
Cannot clone object error when using gridsearchCV in a pipeline
TL;DRUse a Custom Resource to set the property with aSetSecurityGroupsSDK call.TheSetSecurityGroupsAPI has aEnforceSecurityGroupInboundRulesOnPrivateLinkTrafficparameter, settable toonoroff. SeeSet up a Network Load Balancer for API Gateway private integrationsin the docs.You can integrate this API call with your CDK ...
In order to allow API Gateway access to my private Network Load Balancer in AWS, I need to set the propertyEnforce inbound rules on PrivateLink traffictoOff(see reference). This is very easy to do from the AWS Console, simply go to the Security tab for the specified Load Balancer:However, after looking in both theLoad ...
Set "Enforce inbound rules on PrivateLink traffic" setting in AWS CDK
Check if the commandGit: Close Repository(asseen here) would work to close the old project repository.Or try and open a new VSCode from the repository folder of your current new project:code -n ., and see if the issue persists then.
I have 172 pending changes from my old project that I can see in my new project that I created. What should I do to clear it? I want to push my new project to Github but cannot until I figure out what's happening as I don't want to effect any other projects I've worked on.Has anyone else experiences this??
Can someone tell me why I have pending changes from old projects in my new project in the source control tab in Vs code
GitHub provides aSearch APIfor developers. I invite you to read the documentation and the possible queries you might perform.As the documentation explains if you wanted to search for popularTetrisrepositories written inAssembly, your query might look like this:https://api.github.com/search/repositories?q=tetris+languag...
I was wondering is if there any way to list out all the public library projects for a specific category (like android or java etc..) on github? samething like tags we have on stackoverflow.I did some search on that but that didn't lead me anywhere. All I found is one community on google+ of various developers posting t...
Github library categories
Maven reads its dependencies from Maven repositories, not from git or from the file system.If your git repository follows the conventions of the Maven local repository with groupId broken up into a directory tree and artifactId, version, classifier and extension in the file name, you might be able to register it as Mav...
I have one repository containing only jar files.I want to mention that jar files into pom.xml.pom.xml should download jar files from github.How can we mention jar file in pom.xml which is stored in github repository
How to mention jar file from github repo in pom.xml
Check whether your EC2 instance is inside a VPC or not.Instances inside VPC will retain their private IP addresses when stopped and restarted. But instances outside VPC (ie. EC2-Classic) will change their private IP address when stopped and restarted.Unfortunately, it's not possible to move an EC2 instance from EC2-Cla...
Yes, I read an article by Eric Hammondherewhere he mentions that the private IP would also change when restarting. A few months ago, when I first got an AWS cluster up for hadoop, I used the internal IP to configure /etc/hosts and the internal IP wouldn't change (even when the instance is stopped, i can see the interna...
AWS instance private IP changing after stop/restart (did not happen before)
It's possible that you have another location / block that is redirecting /files/save/2 to /files/save/2/ because the former does not match your current location blocks. You could eliminate the captures on the rewrite by using a named capture in the location regex, like this: location ~ "^/files(?<command>.+)/[123]/" {...
I wish that every request in the following format: /files/(whatever..)/(1 or 2 or 3) will go to the files_1 upstream with the /(whatevet) command. If the url is in the following format /files/(whatever..)/(4 or 5 or 6), it will go to the files_2 upstream with the /(whatevet) command. Here is my location file: locatio...
NGINX / Location with regex
Using the GitHub API, you can get comments on issues: GET /repos/:owner/:repo/issues/:number/comments You can use GAPIGUI to make API calls without coding. Or if you just use the search feature using type:issue in the query, search for: commenter:Ben type:issue
I there a way to retrieve my GitHub comments? I've posted some comments in many repository issues to asks questions, and I've found the answers by myself so I want to share my answers.
How can I retrieve my GitHub comments
First of all you can add cron only in Server Not for localhostTo add cron in cPanel follow the steps belowStep1:- First create a cron function to which the server is going to hit, and get the Full path likehttp://fullpathStep2:- Then got to cron jobs in cpanel and set the time when the cron will hit that route.To set t...
I am using Laravel 5.4 on Windows. In the documentation, it does not say how to add cron entries to server. I searched on YouTube, but didn't get any useful video. I need to learn how to add cron entries both to localhost and cPanel.
Add cron entry to XAMPP server
it worked after adding the below in ~/.gitconfig[url "https://github.com"] insteadOf = git://github.com
BitBake is internally using the following git command to fetch:$ git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/google/leveldb.git Error Log: $<50>ERROR: Fetcher failure: Fetch command failed with exit code 128, output: Cloning into bare repository '/home/rajeshgopu/github.com.google.leveldb...
Fetch failed in OE BitBake
+50I don't know which managed identities you have because it depends on which add-ons is enabled. Most add-on identities can't be managed outside the cluster, but you can use a user-assigned identity for the kubelet and agentpool (preview) identity. Here is thedocumentationof the identities for AKS, it tells for which ...
When rolling out my AKS clusteraz deployment group create --template-file template.json --parameters parameters.d.json -g <resource_group>three managed identities are created. These resources are located, by default, in the Managed Cluster resource group (with prefixMC_). I would like theagentpoolmanaged identity (for ...
Deploying AKS agent pool managed identity outside of MC_ resource group
To create a Docker image from a branch starting with "hotfix/**" in GitHub Actions:Use theifcondition to check if the branch name starts with "hotfix/":jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: ref: ${{ github.ref }} ...
I'm working with GitHub actions. My default branch is "main". I creating hotfix/** branch from a tags which is production tags and always behind main. Now i want to open pull request and i need to create docker image from the branch hotfix/** and not from "main". I dont know the branch name everytime, but it starts wit...
Create docker image from different branch in Github Actions
Try the command line. Must be something like: mysql --user=name --password=pw < mysql_db_dump.sql
I have a large sql file < 600 MB. This files is backup for forum and I want to upload it to empty db. How I can upload it?? I can't use PHPMyAdmin? and I used BigDump and it doesn't insert all tables. How to do it?? Is there any other way? Thanks EDIT : I don't have access to command line, I just have my CPanel
How to upload large SQL Files?
You should disable hibernate schema creation to ensure it does not delete data.Next you should investigate if Liquibasehttps://www.liquibase.org/or Flywayhttps://flywaydb.org/suits your use case to bundle migrations as part of your application.
I have aSpring Bootapplication which acts as REST API it usesJPAandHibernateto map object toPostgreSQLdatabase tables. I am looking to deploy my application on release over Kubernetes. The whole application is built using the tooldocker-composethen converted using the toolKompose. Some times object model is changed so ...
How to deploy spring boot application without changing records on database on kubernetes?
It's "streaming" because there's a rolling buffer that's maintained rather than calculating the quantile over the entire time series.FromRobust Perception:If it's the quantile since the processes started, then the samples get less and less relevant to current conditions as time goes on. [...] How Prometheus client libr...
I'm readingHistogram Vs Summaryto learn about what's different between histogram and summary.I've got that quantile is being calculated on the client side when it comes to the summary.but still don't understand what exactly "streaming" means when saying "streaming" φ-quantiles.
What does it mean "streaming" φ-quantiles of summary in prometheus
Quick and easy solution that works in dev/prod mode, usinghttp-proxyontop of your app.1) Add in thetarang:sslpackagemeteor add tarang:ssl2) Add your certificate and key to a directory in your app/private, e.g/private/key.pemand/private/cert.pemThen in your /server codeMeteor.startup(function() { SSLProxy({ p...
How do you create a self signed SSL certificate to use on local server on mac 10.9?I require my localhost serving ashttps://localhostI am using the linkedin API. The feature which requires the ssl on local host is explained here.https://developer.linkedin.com/documents/exchange-jsapi-tokens-rest-api-oauth-tokensIn brie...
Setup (https) SSL on localhost for meteor development
You are not only releasing it in Line 2, it will be also released in Line 1 when replaced as well as in viewDidUnload, so your code on top is just fine. The key is that self.myData = anything; is expanded to [self->myData release]; self->myData = [anything retain]; so by assigning anything (including nil) you are al...
There's a little bit uncommon situation in my app, that is, I have to reload some retain properties everytime when the view is going to appear, the code looks like this: // .h @property (nonatomic, retain) NSArray *myData; // .m @synthesize myData; - (void)viewWillAppear:(BOOL)animated { ... // get FetchRequest a...
Confusing about memory management on IOS
In order to authenticate a GitHub user with their GitHub Account, you need to register a GitHub app or an OAuth app, which you can do in your user account settings or a GitHub organization settings. For your case, I recommend a GitHub app. It must be installed on a repository in order to grant access, while OAuth Apps...
We would like to create some kind of wiki and store all articles in a github repository. As usual in a wiki, the articles should be able to be created or supplemented by anyone*. Now it would be nice if this would not be possible via the Github page, but from our wiki itself. For this Github has a fairly extensive API...
Editing a Github repository by external users via API
I found the solution. You can recognize the job is complete by watching the jobs and observing the events:from kubernetes import client, config, watch config.load_kube_config() api_client = client.BatchV1Api() print("INFO: Waiting for event to come up...") w = watch.Watch() for event in w.stream(api_client.list_job...
I use Python kubernetes-client, and want to wait if the job is done:api_instance.create_namespaced_job("default", body, pretty=True)This call just makes a submit job, it will return the response even though the job is still running. How can I wait for the job to finish?
How to know if Kubernetes job is done?
3 You can try to use service of type ExternalName here like that: kind: Service apiVersion: v1 metadata: name: s3-ap-south spec: type: ExternalName externalName: s3.ap-south-1.amazonaws.com --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: s3-ingress ...
I have my assets on s3 and my service is deployed on kubernetes. Is it possible to define proxy pass in nginx-ingress. My current nginx proxy_pass assets to s3 and I want to replicate in kubernetes. location /assets/ { proxy_pass https://s3.ap-south-1.amazonaws.com; } I tried this but its not working ngi...
How to specify Proxy Pass in kubernetes
Try again in a new folder. git clone https://github.com/MorningPants/EditMe.git And edit or copy the edited file into the new folder. git add . git commit -m "edited" git push origin main
I have a local and remote repository of a single line file. On my local folder, I made a few changes and am trying to push them to github. I have made no changes to the remote repo, but somehow when I try to push from the command line it says I'm behind the remote counterpart, and tells me to try a pull. But that als...
Having difficulty pushing to github
Following "Bootstrap your CI with Jenkins and GitHub" fromMichael Wanyoike, you need to have entered your GitHub credentials first:Then you need to select that credential under your URL (the image shows a SSH URL, but in your case, use the HTTPS URL)ShareFollowansweredJun 18, 2020 at 5:49VonCVonC1.3m539539 gold badges4...
In my jenkins file failing at below commandCode : stage('Release') { steps { sh '/opt/maven/bin/mvn --batch-mode release:clean release:prepare release:perform' } } stage('Update Rel') { steps { ...
Getting build failed as username is not readable
This is a deficiency in a way how SonarJava (Java static code analyzer used in SonarQube platform) detects this issue. I created following ticket to improve the implementation to cover cases when field is returned usingthis.https://jira.sonarsource.com/browse/SONARJAVA-2424
Sonar rulesquid:S2384raises an issue on this code:public Date getCreatedOn() { return createdOn; }following the ruleMutable members should not be stored or returned directlyI understand that we should not return the original, instead we should return a copy of the object.On the other hand, Sonar does not raise an i...
Why is returning this.variable not a vulnerability?
2 The file names have nothing to do with git. They are just the normal organizations or structures of codes and projects. As Mahan's comments, src means "source" and so on. Share Improve this answer Follow ...
I notice almost all big repositories on Github have the same file names in their root directories, such as src, and so on. What do these common 2-3 letter names mean?
What do the file names in large git repositories mean?
After you login to one of the manager VMs, you should be able to executedocker node lsand see all the VMs brought up through the ARM template as part of the swarm. The swarm should have been configured for you as part of the VM bring-up. Did you correctly generate an Azure Service Principal and pass in the credential d...
I just triedDocker 4 Azure Beta, but I'm confused right at the beginning. When I SSH into docker manager VM and dodocker infoordocker service lsI see that there is no swarm enabled? Why? What's going on here? Do I have to enable it by myself? But as I understand, I have no option to SSH into my worker nodes, so how wou...
Docker for Azure - no swarm mode?
The DNS protocol is fairly simple, all you need is the ability to catch UDP requests. Once you've captured the request you would then use the appropriate response, or iterative/recursive methods to get unfamilar DNS records. [That requires prior knowledge of DNS servers]RFC DNSAbout DNSJDNSSmay be what you are looking ...
Is there some API that I can use to build a simple DNS server, preferably in Java? All I want my DNS server to do is answer with the same IP address for any request.
Simple DNS Server API
You can send lots of requests to your server, using tools such as :absiegeJMeterThe first one, ab, will only allow you to send lots of a requests to a single URL -- which is great to benchmark a single script / page ; but doesn't reflect the real pattern of a user browsing your website(CSS/JS/images don't get loaded, f...
So, I'd like to get more experience working with high-traffic websites, but unfortunately the Internet is not beating down the doors to my blog.How can I simulate tens/hundreds of hits per second on my blog and test its performance? I'm hosting my blog with an SSH account on a shared server.
How to simulate DDOS/Slashdotting?
By definition, items in a domain are unique, so you were almost there: select itemName() from domain
I'm trying to enumerate keys in Amazon SimpleDB. In SQL, it would be something like: select unique itemName() from domain; I've searched around but didn't find any way to do this. Any help?
Enumerate keys in Amazon SimpleDB
The reason people use L2TP/IPsec, rather than plain IPsec in tunnel mode, is to have a user-level authentication layer in addition to the host-level authentication provided by IPsec.Ref:http://seclists.org/basics/2005/Apr/139
According to my limited understanding, IPSec authenticates peers and encapsulates/encrypts IP packets in tunnel mode.On another hand, L2TP itself does not offer authentication/encryption, but offers encapsulation, which is already achieved by IPSec.In my application, I would like to secure end-to-end data transfer usin...
What's the point of using L2TP together with IPSec?
git remote add p2 https://github.com/u1/p2.git git fetch p2 git checkout p2/pb2
I have projects with name P1, P2 with username u1 on GitHub. P1 has two branches master and pb1. P2 has also two branches master and pb2. I have cloned the project on my computer with thin command.git clone https://github.com/u1/p1.gitIf I want to add the branch and data of project P2 and branch pb2 in Project P1.Which...
how to merge remote branch of one remote repo to other branch of different project
<div class="s-prose js-post-body" itemprop="text"> <p>You need to handle www because session is saving based on domain, so try adding below code into <code>.htaccess</code> file, one is for force redirection to www and one is to remove www.</p> <pre><code>#Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.c...
<div class="s-prose js-post-body" itemprop="text"> <p>I have a Laravel 5.4 App I created on a Ubuntu 14.04 with NGINX and it runs fine on <a href="https://MyDomain.TLD" rel="nofollow noreferrer">https://MyDomain.TLD</a> and <a href="https://www.MyDomain.TLD" rel="nofollow noreferrer">https://www.MyDomain.TLD</a> </p>...
Laravel Login with www. and without
Enable Hyper V as following:Run a command prompt as administrator and execute:dism /Online /Disable-Feature:Microsoft-Hyper-Vreboot andbcdedit /set hypervisorlaunchtype off
After restarting machine and opening the Docker Quickstart Terminal, I get the following error:Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm default --type headless failed: VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT) VBox...
Docker Quickstart Terminal. Unable to start the VM
You need to use an API Token to log in like shown in the docs. Log in via password is not possible.https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for-use-with-github-packagesYou must use a personal access token.
So I want to use the docker registry from GitHub. I do the flowing:docker login docker.pkg.github.com --username username docker build . --tag docker.pkg.github.com/user-name/repo/IMAGENAME:snapshot docker push docker.pkg.github.com/user-name/repo/IMAGENAME:snapshotNote that the repository is private and not mine but I...
Can login into docker-registry but not push image (github)
I don't think you should use TraceView for memory leaks finding. It's a tool for getting information about performance and memory usage of applications. Try Memory Analyzer Plugin for Eclipse. You can make a dump of your app's memory with Dump HPROF file button in DDMS and look for memory leaks in this dump using MAT....
I am referencing this to memory profiling of my application, when I launched TraceView with my trace file, there are several colors and items shows on TraceView window. So how can I understand where memory leaks, and what is means of colors.
How to use TraceView for memory profiling for android application
Yes, just as ElpieKay said, you can usegit log --grep='Revert'.There is another default message “This reverts commit…”, sogit log --grep='revert'orgit log --grep='reverts'are also work.If you want to show only one branch's revert log, you can usegit log branchName --grep='revert'.
I had reverted some changes done. Need to know the files and changes(diff) in the code that was reverted previously.
Is there anyway to view all the previous GIT reverts
I just had the same issue, where all internal traffic to the Alertmanager Pod IP got 404.Solution: inkube-prometheus-stack values.ymlsetalertmanager.alertmanagerSpec.listenLocal=TrueNot sure why this is, but it works.
Setup:I have a small aws k8s cluster where the infrastructure components are deployed as helm charts. One of those components is the awesome Prometheus chart(seehere). The network communication between the components should be configured with the Istio Service Mesh.Problem:Prometheus finds the single endpoint for theku...
Alertmanagers Endpoint not accessible from the Prometheus due to failing Istio-sidecar route
In prometheus i am getting total count ,i want hourly or minutes based countYou can try prometheus query with time-range and offsethttps://prometheus.io/docs/prometheus/latest/querying/basics/#offset-modifier
Hi I am working on a spring boot micro service where i need metrics of each microservice. Like how many 200 or 500 or 400 responses happen. In prometheus i am getting total count ,i want hourly or minutes based count . how can i achieve this with prometheus or grafana I want something like this . Last 1 Hour/service 20...
Spring Boot Metrics with Prometheus and grafana setting change for micro meter
Had the same issue, for me it was a stupid little thing. Enter the URI: http://127.0.0.1:4243 or 2375 for the new version and click Apply first before you Test the connection.
I'm trying to use the Docker plugin with Jenkins. But Jenkins cannot access the REST API. In the Jenkins configuration I put the Docker REST URL: http://127.0.0.1:4243 and when clicking on test connection it gives me Something went wrong, cannot connect to http://127.0.0.1:4243, cause: null Jul 21, 2016 8:57:52 AM WAR...
Jenkins with Docker plugin java.lang.NullPointerException: uri was not specified
[Rancher Labs employee]Basically we are unopinionated about what orchestration system you want to use. Rancher contains our own container orchestration system called Cattle, which has a full UI, API, and supports YAML syntax that matches docker-compose plus additional things not available in compose.Obviously we like ...
I read onRancher Official PageRancher is an open source software platform that enables organizations to run containers in production. With Rancher, organizations no longer have to build a container services platform from scratch using a distinct set of open source technologies. Rancher supplies the entire softw...
Difference between Rancher and other container orchestration
2 To re-partition tables, both the original table structure as well as the new table structure needs to be kept in memory at the same time. For the target table structures, data will be inserted into delta stores and later on merged, which again consumes memory. To increase...
I have a big table having records around 4 billion ,table is partitioned but i need to perform the partitioning again. while doing the partitioning memory consumption of the hana system reached to its limit 4TB and started impacting other system. How we can optimize the partitioning so get completed without consuming...
High memory consumption in hana table partitioning
To achieve this, we can create a settings.job file in root folder of each web job project as below.Notice, we need to choose "Copy always" as belowMore information about settings.job file, we can refer to:Web Job Types
I'm new to the azure webjob. I have multiple jobs that I hope run at a different frequency. As for now, my solution is to have one single webjob as a standalone project and define the frequency of this job at project level, in the settings.job file. However, not sure if there is a way to have multiple jobs in the same...
Azure webjob run multiple webjobs in the same project at different frequency
Because your class is not a polymorphic type, has no base class, and all the members are public, the address of x is guaranteed to be the address of the class. Also, the address of y is guaranteed to be after the address of x, although there could be an arbitrary amount of padding between them. So yes, your result is ...
Are class members in c++ guaranteed to be contiguous? I've tried running the following code with almost all popular c++ compilers, and all of them yield the result 4, which is the relative address of the variable y. Is that a coincidence, or is it guaranteed by the language specifications to be this way? Isn't it pos...
Are members in a c++ class guaranteed be contiguous?
butfranciswebdevelopmentis my old accountThat means you probably have a git crendential helper which has cached the credentialsfranciswebdevelopmentfor github.com.git config credential.helperIf that is the case,remove that entry:git credential-manager delete https://github.comThen try again (but not right now, with HTT...
I am getting next error:$ git push -u origin master remote: Permission to teddyruns/medals.git denied to franciswebdevelopment fatal: unable to access 'https://github.com/teddyruns/medals.git/': The requested URL returned error: 403I have checked my global user name and email, and created a new ssh key, butfranciswebde...
error 403: can't push to my github account
* * * 1 /usr/bin/php /home/username/public_html/cron.php >/dev/null 2>&1You can use some of the tools available on the net to manage it easily. For examplehttps://crontab-generator.org/ShareFollowansweredOct 31, 2018 at 10:39VolodVolod1,31922 gold badges1515 silver badges3535 bronze badges2Hey thanks a lot. But this w...
I want to run cron job every hour on every week. For example. On Every Monday i want to run cron function every hour. Is it possible by single command? if yes than what is the cron expression for it?
Cronjob every week every hour
If your project is under a free trial program, you can't add GPUs to your VM instances or can't request a quota increase. It is a limitation under the free trial you can find under the 'Program coverage' section of the free trial documentation.After enabling a billing account Please navigate to the Cloud Console and se...
I have been having a problem increasing my GPU quota on Google Cloud. It put my current limit for GPU to 0.Anytime I try to increase the quota by editing the quota on the quotas pages, it tells me to contact sales. When I contacted sales, they said they only deal with company requests and they told me to contact techni...
How do I increase GPU quota limit on google cloud
One cannot invoke arbitrary functions in matches, but here you have a match on hand that can be used with:ets.foldl/3::ets.foldl(fn {<<"0X49", _ :: binary>>, "latlong"} = n, acc -> [n | acc] _, acc -> acc end, [], :named_table)
I have cached a bunch of postcode and lat-long values using erlangs ets functionality.Picture the following...iex()> :ets.new(:postcode_cache, [:named_table]) :postcode_cache iex()> :ets.insert(:postcode_cache, [{"OX495NU", "latlongvalue"},{"M320JG", "latlongvalue"}]) trueThis is similar to the ets table I have created...
How to create complex queries with elixir ets
0 You are using the mysql command, not the mysqldump command. Share Follow answered Apr 6, 2021 at 11:24 markusjmmarkusjm 2,40911 gold badge1212 silver badges2525 bronze badges ...
The backup command line runs for ever and neither generates the data in the backup file nor throughs any error. THis was working fine earlier, it stopped suddenly, no changes have been done to the DB or DB config.
Maria DB backup generates zero KB file with no errors
You can do it as -kubectl exec -n <some-namespace> <some-pod> -- tar cf - --exclude='pattern' /tmp/foo | tar xf - -C /tmp/barAs example -I got a pod running in the namespace "pankaj"; and inside my container i got 2 files at path - /tmp/foo/tmp/foo # ls file1.txt file2.txtMy use is I want to copy only file file1.txt ...
It seems thekubectl cpcommand usestarcommand in the background. How can I use (pass them via thekubectl cpcommand) some oftarcommand options such as--exclude? For example, this could be helpful to exclude specific files/directories that are not needed to be copied out of the container.Thanks
How to use tar command options when calling kubectl cp command
The PECL memcached package introduced the dependency on PHP 7 in version 3.0.0. You can still install the 2.x version of that package:FROM php:5-apache RUN apt-get update && apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev RUN pecl install memcached-2.2.0 RUN echo extension...
I am trying to install memcached in Dockerfile but I keep getting th same error. Everything was working fine but looks like some layers were cached I and the images was being built with no problems at all. But since I cleared the cache I can't build the image. Here is some of it's content:FROM php:5-apache RUN apt-get...
Docker install memcached
I don't know how you tried to apply the comparison operators, but if I use this very similar query:sum(increase(up[1d])) by (job) I get a result of zero for all jobs that have not restarted over the past day and a non-zero result for jobs that have had instances restart.If I now tack on a != 0 to the end of it, all zer...
In prometheus for showing disk write usage on a chart, we use the following query:sum_over_time(increase(diskWriteBytes{vid=“112345”}[1d] offset -1d )[1d:1d])On diskWriteBytes, we sometimes see a value of 0. In this query, we want to ignore the 0 value. My attempts to handle this have failed in a variety of ways. A pro...
Calculation ignores value of 0 in PromQL
Just to be sure, try locally to remove yourlarge file from the repository history, following "Removing sensitive data from a repository", which typically involves using theBFG repo cleaner.Then force push your repo (since its history will have changed) and see if you still have the error message.
Since I have a large file in the commit, git shows error of file being too large. I deleted the original file, and I committed it, the git shows the modes are deleted. But when I tried to push them to github, the error message shows again saying the file is too big. But I've already deleted it?remote: error: File publi...
Git continues to push files that I already deleted
You can do it all in the same directory by adding a second remote origin, if you've already added Gitlab as 'origin', then run: git remote add github https://github.com/user/repo.git then you can push up your changes you've made to the two repos to push to GitLab: git push origin and then to push to GitHub git push ...
I'd like to take my existing repo on GitLab Questions and upload it to GitHub. I want the repo's to be the same project/files, but two act as if they are two different repo's. So I wouldn't want pushing to origin master from the GitLab project folder to the repo to effect anything from the GitHub project folder. I wa...
Add git project to GitHub that is on GitLab, keep separate
When using Glide or Picasso, you need not worry about the location where theimagewill be saved. Picasso or Glide takes care of theCachingso that you don't have to.Now, all you need to set an Image to an ImageView using Glide or Picasso is an imageURL. I think you want to use an image from your S3 bucket, then you need ...
so I want to be able to grab my images from my s3 bucket and (using glide or picasso) load that image into an imageview. (I don't want to download that image into my phone).currently i have this:downloadButton = (Button) findViewById(R.id.cognito_s3DownloadButton); downloadButton.setOnClickListener(new View.OnC...
How to download image from aws s3 into imageview?
As you can see in theAWS Fargate profiledocumentation:Fargate profiles are immutable. However, you can create a new updated profile to replace an existing profile and then delete the original after the updated profile has finished creating.Fargate profiles are immutable by design, so there is noupdatecommand. In my opi...
I created an AWS EKS Fargate cluster with the following Fargate profilefargateProfiles: - name: fp-fluxcd selectors: - namespace: fluxcdHow do I either add (or change) the namespace so it looks like this?fargateProfiles: - name: fp-fluxcd selectors: - namespace: fluxcd - namespace: flux-sy...
How do I update a Fargate profile with eksctl?
This might look intimidating but bare with me:Get the hash of the stable common commit between you and master:git logSoft reset your commits to convert them to unstaged changes. :git reset --soft [hash]Stash you current working changes:git stashFetch latest changes from remote:git fetchPull latest changes from remote:g...
This question already has answers here:How do I resolve merge conflicts in a Git repository?(36 answers)Closed3 years ago.I’m stuck at this point where me and my teammate working on the master branch and we both pushed the code but I didn’t pull the changes and again pushed the code so here i’m now I can’t pull or push...
Git merge conflicts,unable to push or pull code from master [duplicate]
Please change the ExpressionAttributeValues as mentioned below. This should resolve the error.ExpressionAttributeValues : { ':userid' : 'manaf1' }To sort the score in descending order, you can set the ScanIndexForward to false.var params = { TableName : table, KeyConditionExpression : 'useri...
i used amazon dynamoDb for storing my data. i created database like thisPartition key : userid , Type : StringSort key : score , Type : Numberand i inserted some rows.manaf1 | 100manaf2 | 500manaf1 | 200manaf1 | 600i need to get max & min score for selected user. This is my codevar AWS = ...
get min and max value from dynamoDb using node.js sdk
pg_dumpall ? To dump all databases: $ pg_dumpall > db.out To reload this database use, for example: $ psql -f db.out postgres I had to do it with -o option for the oids
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 years ago. Improve this question ...
back up a postgres db and restore on another computer [closed]
It's marked as closed, accept or notMany projects' pull request is Open or Closed
Please take a look athttps://github.com/the42/bevaddressapi/pull/2I had merge conflicts, pulled locally, resolved the conflicts and pushed to master. However the Github UI only allowes me to mark this Pull request as closed whereas I want to mark it as merged.Is there no way to mark a pull request as merged when there...
Mark pull request with conflicts as merged not closed
I would use this rule:RewriteEngine On RewriteCond %{HTTP_HOST} !="" RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]The first condition checks whether theHostvalue is not empty (in case of HTTP/1.0); the second checks whether the theHos...
This will changedomain.exampletowww.domain.example:# Force the "www." RewriteCond %{HTTP_HOST} !^www\.domain\.example$ [NC] RewriteRule ^(.*)$ `http://www.domain.example/$1` [R=301,L]How do I replace the "domain" part so that this works onanydomain?
.htaccess - how to force "www." in a generic way?
8 I remember running into this problem too. [A/B](#ab) should work, instead of using [A/B](#a-b). A / character is considered a non-character in this case, but when it is not part of a word (ex. Movies / Shows / Videos) then it needs to be treated like an empty word: [Movie...
Does anybody know how to maintain symbols in markdown internal links? For example: [A](#A) works fine [A and B](#a-and-b) works fine ...whereas: [A/B](#a-b) does not work [A-B](#a-b) does not work Thanks for your help!
How to escape symbols in GitHub-flavored markdown internal links / heading anchors?
Triggering the garbage collection manually doesn't solve your problem - it won't free resources that are still in use. You should use a profiling tool (like jProfiler) to find your leaks. You problably use code that stores references in lists or maps that are not released during runtime - propably static references.
We have been facing Out of Memory errors in our App server for sometime. We see the used heap size increasing gradually until finally it reaches the available heap in size. This happens every 3 weeks after which a server restart is needed to fix this. Upon analysis of the heap dumps we find the problem to be objects u...
How to free up memory?
You can just select thetestingbranch in your fork then fetch it. If you don't want to select the branch every time to update it, you can set the default branch of your fork totesting.ShareFolloweditedNov 25, 2021 at 18:04answeredNov 25, 2021 at 17:56Code-ApprenticeCode-Apprentice82.7k2424 gold badges148148 silver badge...
I've forked a project on GitHub and have been contributing my changes to the "master" branch, however I'd like to change my GitHub project to synchronise with the new "testing" branch.How do I make the "Contribute" and "Fetch upstream" buttons on my GitHub fork act in reference to the "testing" branch? I seem to have m...
How do I change the upstream branch on a GitHub fork?
If you are creating anNSArraywith anallocand aretainon the same line then you are probably doing something wrong.Objects arealloced with a retain count of +1, so there is no need to callretainon it as well.To answer your question directly; yes, you do have toreleaseit twice. Once because you created the object and once...
If i declare anNSArraywithalloc&retainin single sentence then should i release theNSArrayobject twice (i.e.[arrayObject release]2 times) ?
NSarray release
Just dereferenceanotherInteger.*anotherInteger = anInteger;strncopyis for strings.ShareFollowansweredAug 25, 2014 at 15:28Neal MillerNeal Miller19611 silver badge33 bronze badges1anotherInteger = malloc(sizeof *anotherInteger); *anotherInteger = anIntegeris the right approach. Note: I findstrncpy()better suited for ar...
I have a problem with the code below.... int anInteger; ... //anInteger gets a value ... int *anotherInteger; label = (int *)malloc(sizeof(int)); strncpy(anotherInteger, anInteger, 40);Essentially what I want to do is to copy the value from an integer to my other integer which I have allocated memory for. Can this wor...
Copying integer to integer with allocated memory
1 Use this configuration: upstream backend_cluster { ip_hash; server domain1:5050; server domain2:5050; } Share Improve this answer Follow answered Dec 17, 2015 a...
I'm writing web socket project, everything is working like expected(locally), I using: NGINX as a WebSockets Proxy NODEJS as a backend server WS as websocket module: ws NGINX configuration: map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream backend_cluster { server 12...
WebSocket NGINX/NODEJS stickiness Issue
In your response header, Chrome states that the age is 0, i.e. the response has been cached for a second or less.It should probably work if you wait for more than a second or include acache validator:anETagor aLast-Modifiedheaderwhich allows the browser to trigger a revalidation (conditional request) instead of a norma...
I have a page with all the cache control goodies set, and yet, Google Chrome keeps pulling it from the cache. We emptied all navigation history but after one reload, Chrome caches it again :Request URL:http://stuf.com/path/to/foo Request Method:GET Status Code:200 OK (from cache) Response Headers Accept-Ranges:bytes Ag...
Why is Chrome still caching this request?
APC store opcodes in ram. It has no fragmentation management.The only way to deframent is to flush cache. Use apc_clear_cache() in php script. Or restart httpd.Note that APC will have to rebuild its cache.There should be no (or few) fragmentation if you give APC enough memory. Check my answer here to see how to guess t...
Is it possible to de-fragment a APC cache or the only available option is to clear and rebuild it?If we can't de-fragment it, is it a good idea to dump an entire cache clear it and then reload the dump? will this clear the fragmentation?
How to de-fragment APC cache
The following code snippet outputs fully qualified names of all.pdffiles in subfoldersone levelunder current folder that do not have an underscore in theirfull path. (Output file namescouldcontain an underscore).Get-ChildItem -Path . | Where-Object { $_.PsIsContainer -and $_.Fullname -notmatch '_' } | Get-Child...
I use the following pipeline to select specific folders:gci -path * | ? { $_.PsIsContainer -and $_.Fullname -notmatch '_' }The above gives me folders that do not have an underscore in their name, which is what I want, and all is good so far.But when I pipe the result to anotherGet-ChildItem, I get aBindingExceptionerro...
PowerShell - How to process files in folders selected by regex pipeline
From a quick look, the following code from IO::Socket::INETsub _get_addr { my($sock,$addr_str, $multi) = @_; my @addr; if ($multi && $addr_str !~ /^\d+(?:\.\d+){3}$/) { (undef, undef, undef, undef, @addr) = gethostbyname($addr_str); } else { my $h = inet_aton($addr_str); push(@ad...
I have a (from what I can tell) perfectly working Linux setup (Ubuntu 8.04) where all tools (nslookup, curl, wget, firefox, etc) are able to resolve addresses. Yet, the following code fails:$s = new IO::Socket::INET( PeerAddr => 'stackoverflow.com', PeerPort => 80, Proto => 'tcp', ); die "Error: $!\n" unle...
How does a Perl socket resolve hostnames under Linux?
I don't know if the above is the issue. If you are at the beginning of your collaboration with your friend, you might consider hard-resetting your main branch to the commit before the merged PR, and force-pushing it. Then see if the alerts persists. From there, you can read "About alerts for vulnerable dependencies"...
I'm facing an issue. I recently invited a friend to work on the same project. So he made some changes and created a pull request then I accepted it. After that, I see these security issues appearing in the repository. How can I fix it and how can I avoid these issues next time? Edit: I don't know if the above is the i...
GitHub security issue in a repository
The rule of thumb that we use (which is here some where on Stack Overflow) is "branches are for work, tags are for history".Whenever a branch is merged (most likely into master) we tag the merge point using the name of the branch with the prefix "branch" (e.g. branch-topic). Then delete the branch. If we need to resurr...
My team is experimenting with using GitHub pull requests for code reviews. My only question is what do you do with the branch after you're done? I would think you'd want to delete the branch, but since GitHub hides branches that have been merged into your current branch, it seemed like maybe I should keep it.Just curio...
What do you do with your branch after a pull request on GitHub?
First, I assume you are using Paketo buildpacks, andthe documentationexplains how you can provide a CA certificate to your JVM Truststore, either atbuildtime (if you use the same CA certificate for your image across your environments; that's the easiest solution since you just need to provide your CA cert during buildt...
I am using kpack to generate container images of a Java - Spring Boot app. I need the JVM in the generated container image to trust a custom self-signed certificate. How do I construct the required YAML(s) for this?
Kpack: How to add a custom certificate into JVM truststore of a kpack generated Image
1 Here's a one-shot option using only intrinsic functions that appends the new element hello (assumed to be at $.appendMe) to $.myList: "States.StringToJson(States.Format('[{},\"{}\"]', States.ArrayGetItem(States.StringSplit(States.JsonToString($.myList), '[]'),0), $.appe...
Say I have a state whose input is {'myList': ['foo', 'bar']} and whose result is hello, and I want to append the result to the list so that the state's output becomes {'myList': ['foo', 'bar', 'hello']} I would actually like to do this for several consecutive states, so that each one appends its result to a list sto...
How to append to array in Amazon States Language?
0 --mirror Set up a mirror of the source repository. This implies --bare. Compared to --bare, --mirror not only maps local branches of the source to local branches of the target, it maps all refs (including remote-tracking branches, notes etc.) and sets up a refspec ...
Can someone please give me the details on git clone or git clone --mirror Thanks. I am trying to make backups of my github repos and I am using it in a script. I don't know what the difference is and I need someone to help me with the backups.
What is the difference between git clone and git clone --mirror?
1 I got exactly the same error message and for me also, it sometimes works and sometimes not. In my case, this was caused by mis configuration of firewall. I restricted most of the outgoing traffic with egress except 443 port. I add a rule which allow outgoing traffic fr...
I am trying to connect to a pod running inside a GKE cluster - I can ssh into the nodes within the cluster, but when I try the following command to get into a bash within a pod, I get an error: kubectl --namespace=prod exec -it test-webserver-3998817321-728hj -- /bin/bash -> Error from server: error dialing backend:...
kubernetes ssh connection refused on gcloud
On a SageMaker notebook instance, to write to the user-sized EBS volume, you need to write your data within the directory /home/ec2-user/SageMaker. If you run adf -h, you will see that your user-sized EBS volume (the 1024 GB storage) is mounted on /home/ec2-user/SageMaker. If you don't write inside this directory, then...
I am running a sagemaker instance which always gives me an exception the same place in the cycle, even if I allocate more storage. So it might not be a storage issue, but I am at a loss for why it fails.I got the error at the same spot no matter if I allocate 1024gb or 100gb storage (estimator volume_size). The DiskUti...
Storage issue on Sagemaker, even when more provided
2 I had the problem on apache. Installed from gem, no clue what went wrong. The fix was to specify the PassengerInstanceRegistryDir as per: https://www.phusionpassenger.com/library/config/apache/reference/#passengerinstanceregistrydir I opted for non /tmp as there were some...
I'm using passenger and nginx to host a rails app and unfortunately I'm receiving an error when I run passenger-status. I built a new server from a chef script I have and suspect I do have something misconfigured. Versions: Phusion Passenger Enterprise 5.0.28 nginx version: nginx/1.10.0 The error: ERROR: Phusion Pa...
Phusion Passenger doesn't seem to be running (but I see it running)
1 As as aside, make sure you also nil any outlets your viewController has in viewDidUnload and generally do the opposite of any corresponding code in viewDidLoad. I see a lot of iOS code which doesn't do this and it stops the runtime properly unloading view controllers a...
Every time I turn the page in my app, I am removing and releasing the previous viewController - but for some reason it is still in memory. I know this, because after using the app for a while, I get 47 memory warnings - one from each view controller - if I had opened 47 pages before the memory warning occurred. I get...
ViewController doesn't get released
call gradle from java. I've got the code from this answerHow to run a gradle task from a java code?use dependecies task.I recommend you to go this way so you do not have to handle the harsh task of keeping your code maintained with any version file change in gradle.import java.io.BufferedReader; import java.io.IOEx...
Closed. This question needs to be morefocused. It is not currently accepting answers.Want to improve this question?Update the question so it focuses on one problem only byediting this post.Closed3 years ago.Improve this questionI want to analyze the build.gradle of my organization projects, primarily to create a sonarq...
Read a build.gradle file from Java [closed]
It was "only" a size problem. Serveur does not allow too long utl parameters and the ajax call do not respond, so overview and measures pages stay emply.If it can hel someone !
I need your help to solve my problem with sonar. I use sonar 8.9 on a server anad azure pipeline to communicate with serveur sonar on a .net core 3.1 project. Once analysis is finished, i have my errors in my sonar qube server but the tab overview indicates "The main branch of this project is empty" To analyse my proje...
Sonar showing "The main branch of this project is empty" but code is correctly analysed
You will need RewriteConds:RewriteEngine On RewriteBase /directory RewriteRule ^search$ results_template.php [L] RewriteRule ^load-([a-z0-9-]+)$ index.php?key=$1 [L] RewriteCond %{QUERY_STRING} !^results_template.php RewriteRule ^([a-z0-9-]+)$ http://domain.com/share/index.php?key=$1 [L]E.g. a user requests /search, t...
I have a .htaccess as follows and some rules are conflicting - I need to somehow make a condition so they don'tRewriteEngine On RewriteRule ^search$ results_template.php [L] RewriteRule ^load-([a-z0-9-]+)$ index.php?key=$1 [L] RewriteRule ^([a-z0-9-]+)$ http://domain.com/share/index.php?key=$1 [L]The .htaccess file is ...
Mod_Rewrite Rule Conflict Drving me Crazy
Yes you can integrate with LDAP, for example:UsingdexWith Torchbox'skube-ldap-authn(hint: read thispost)ViskeycloakAlso, there's a nice intro-levelblog postto get you started.
There are some methods natively supported such as basic auth , X509 certificates and webhook tokens.Is there some workaround/project to use LDAP for user authentication with Kubernetes. I need users to be grouped in LDAP , and then use role binding to bind the group to a specific namespace with a role.
LDAP based user authentication for Kubernetes
3 There is no need to drop/stash your commit. To resolve the conflict, use git pull --rebase and your commit from step 3 will be automatically rebased (stacked upon) the coworker's commits from step 2. After the rebase you will be able to push without the conflict. ...
I'm in this scenario pretty often and I don't know what to do. I was changed something in a branch. Commited & pushed. I was still working on same branch and somebody commited & pushed. I was done changing and did git commit -m "Blabla" and pushed. Git refused to push because repository is ahead and I may loose some ...
Git uncommit message only
1 I recommend GitKraken. It has excellent built-in diffs views, and you can select any two points in your local repo to view the changes that have occurred in between. Available for macOS, Windows, and Linux. The free version works well for what you're looking to do. You ca...
This question already has answers here: How to sync your forked repo with original Repo in Github Desktop (2 answers) Closed 4 years ago. I forked a repository using GitHub Desktop...
How to update GitHub forked repository using GitHub Desktop? [duplicate]
You can import tables from phpmyadmin as follows :You also get option to include data along with table schema.
I have to upload my database ongodaddyhost but it restricted to upload more than 8 MB file. So I have decided to upload my table one by one. I am looking for a query or a way to export each table one by one, is there any way available to do this job easily? That I get each table sql with the data?I am using PHPMyAdmin.
How to export all tables in separate sql files
I figured it out by myself.I was running the Query below and I was able to get the results as expected.* AND object_attributes.status:"passed" AND object_attributes.variable.key:"fruit" AND object_attributes.variable.value:"banana"So, Instead of Runningobject_attributes.variable:{ "key": "fruit", "value": "banana" }I w...
In my Grafana ElasticSearch Datasource, I have an attribute like this:=== object_attributes.variables ==== [ { "key": "fruit", "value": "apple" }, { "key": "fruit", "value": "banana" }, { "key": "game", "value": "cricket" }, { "key": "game", "value": "football" } ] === object_attributes.status ===== ["fail...
Grafana query filter by key and value
Recapping for better visibility:OpsGenie supports multipletools, including Google Stackdriver.Instruction on how to integrate it with Stackdriver webhooks can be foundhere.
It may be a vague question but I couldn't find any documentation regarding the same. Does Google cloud platform have provision to integrate with OpsGenie?Basically we have set up few alerts in GCP for ourKubernetes Cluster monitoringand we want them to be feeded toOpsGeniefor Automatic call outs in case of high priorit...
Integrate GCP with OpsGenie for Alerts
Best solution I have managed is to create an action which checks the tag format and add it to the start of all the workflows. The workflow fails if the tag format is invalid.Works but somewhat inefficient; would be nice if GitHub had server side hook that did this during tag pushes ;-).
I want to ensure that tags pushed to my GitHub repo obey theSemantic Versioningformat. How can I achieve this? I have found the documentation for protected branches but it is not clear that these support anything fancier than wildcards so a negative (reject if not semver) doesn't seem to be possible.
How do I restrict tag formats permitted in a GitHub repo?
OP's co-worker here. We got this working and I just wanted to post in case it ever helps somebody else with this issue. My understanding is that this was occurring because the timeout had mistakenly been set to a low number (180), mistakenly thinking that number was seconds. We updated the timeout (to the max of 290...
I have a Lambda function that I'm calling using API gateway. When the Lambda hits the spawn call on a child_process object the API Gateway immediately fails with a 504 timeout error. My timeout setting on the the API gateway is the max 30 seconds and the Lambda is set for a minute. It only takes up to 1400ms for the la...
AWS API Gateway immediate timeout when using child_process in Lambda
It's a memory leak only if you don't free the memory (regardless where).In this case, you shouldfreeit after the function is called and you're done with the pointer.But this is the C way of doing it. In C++ you'd return a smart pointer, and usenewinstead ofmalloc.ShareFollowansweredSep 25, 2012 at 6:21Luchian GrigoreLu...
I have a function foo likemyType** foo(){ myType **array = malloc( .... ); //Do some stuff return array; }Here I have malloced , but did not free it as I am returning it . Will this cause a memory leak ? Should I explicitly free it in the calling function after I use it ?
Returning a malloced pointer from a function , does it cause memory leak?
If You will reuse same variables or set ones You are not going to use any more to null You won't run out memory. Just don't load all data at once and free it(set to null) or replace with new data after You process it. And make sure You can't improve speed of Your task 5-10s sounds really long.
I have an APNS notification server sent up, which would in theory every day send about 50,000 to 100,000 users a processed notification (based on the amount of users of our web app that ties in with the iOS app). The notification would go out around 2, but it must send it to each user individually (using Urban Airship...
Best way to handle memory intensive, long tasks in PHP
Managed to resolve this issue by changing my .env mysql username and password configuration to: DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE=my_database_name DB_USERNAME=root DB_PASSWORD=root And changing my mysql version in laradock/.env configuration to: MYSQL_VERSION=5.7 MYSQL_DATABASE=my_database_na...
I'm currently learning to use Docker on Windows, and I'm following this tutorial. For Docker setup, I'm using Laradock. I'm trying to run mysql apache2 rabbitmq and phpmyadmin containers I did everything the same as in video, but when I try to migrate my tables I get following error: Illuminate\Database\QueryExceptio...
SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.19.0.4' with Docker
Yes in general though it can depend on how one handles the caching. First, you should move that tracking stuff to where it belongs -- a HttpModule. Page need not concern itself. Second, what you probably want to look into is some sort of fire and forget service call or message queueing. This makes the database write a...
Is it possible to cache a page render on an iis web server, but still receive and write query string values (that don't affect output) to the database? So that the page render does not have to wait for the database trip to execute in order to serve the page? If possible, how do I implement? For example, we track vario...
.NET page caching but still receive query string
Found a solution to this.What worked for me was to use a GET request to return all rules in json formathttps://<IP address":<port>/api/detection_engine/rules/_find?page=1&per_page=<number of results to include>All the info is here:https://www.elastic.co/guide/en/security/current/rules-api-find.html
I'm trying to export all the 722 rules into an ndjson file, but the file is incomplete. There are two sets of rule: Elastic rules and Custom rules.I go to Security > Overview > Rules > Select all 722 rules > Bulk Actions > Export selected.However, the resulting output contains the following, which is NOT what I need.No...
Exporting rules to ndjson generates incomplete file
This is an working config that I currently use in production.http://pastie.org/10870547gzip on; gzip_disable "msie6"; gzip_comp_level 6; gzip_min_length 1100; gzip_buffers 16 8k; gzip_proxied any; gzip_types text/plain text/css text/js text/xml text/javascript application/javascript applica...
I need to enable gzip compression on nginx server. As I have observed from firfox firebug NET tools, I have found that html file are gzip compressed. But Not the javascript files and CSS files.I have already checkMime.typesand nginx configuration file/etc/nginx/ngnix.confand not found any issue. still not able to see ...
Enable GZIP for CSS and JS files on NGINX server for Magento
Google Product Manager here.We don't have an exact analog for AWS API Gateway.You're right about Cloud Endpoints. It's a bit of a different architecture than AWS uses -- it's a sidecar proxy that gets deployed with the backend. That's different than API Gateway, which is a fully managed proxy deployed in front of your ...
I'm building an app and the idea is to go serverless.I'm looking mainly at AWS and GCP (Google Cloud Platform), and as AWS costs are a bit obscure (at least for me), and there is no way to ensure not being billed, I'm going with GCP.For the "server" part of the app, I would like to build an API on GCP as I could do wit...
Building an API on Google Cloud Platform
You can use S3 command line (awscli).aws s3 cp s3://COMPANY_BUCKET/filename s3://CLIENT_BUCKET/filename
I have my company S3 (companys3) bucket with multiple files for examplefile1,file2andfile3. And client S3 bucket (clients3) with some files that i don't know.What I want is the solution for opening onlyfile2fromcompanys3toclients3.I found solutions about how to copy/clone whole buckets. But couldn't find any that copy ...
How to copy specific files between 2 different accounts S3 buckets
You can create a server block for the subdomain and redirect that to the new domainserver { listen 80; server_name s.domain.com; rewrite ^ http://domain-new.com$request_uri? permanent; }This should work for only redirecting the index:server { listen 80; server_name s.domain.com; # for index.xyz ...
I am looking to redirect all requests that matchhttp://s.domain.comto redirect tohttp://domain-new.comI have the following and it seems to redirect all requests to the second domain. I would only like to redirect on an exact match.if ($request_uri ~ "s.domain.com"){ rewrite ^ http://domain-new.com; }
Nginx rewrite - only redirect to one domain
If you use+multilinedig parameter, you'll see a more verbose output.dig SOA +multiline yahoo.com yahoo.com. 1800 IN SOA ns1.yahoo.com. hostmaster.yahoo-inc.com. ( 2013041300 ; serial 3600 ; refresh (1 hour) 300 ; retry (5 minutes) 181440...
I'm having some trouble reading SOA records. I get the following response after usingdigto fetch the SOA record of a domain I'm in control of.SOA ns1.example.com. xxx.gmail.com. 2013041357 14400 14400 1209600 86400How am I supposed to know which value is associated with each field? According tothis articlea SOA record ...
How to read a DNS SOA record?