Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Updating an existing object in Amazon S3 doesn't differ from creating it in the first place, i.e. the very same PUT Object operation is used to upload the object and will overwrite the existing one (if it isn't protected by other means, e.g. via Using Bucket Policies or Object Versioning) You can find a complete code ...
I was looking at Amazon S3 Samples, and the samples are there for inserts/deletes... But I want to update an existing blob with fresh data. Basically the content is a text file, and the text has been modified, I want the S3 object to store the new text content. How do I do this in Java?
Can I update an existing Amazon S3 object?
You need to remove the 'Anyone' group from the 'Browse' permission of your project. Seehttp://docs.sonarqube.org/display/SONAR/Authorizationfor details.
I have setup code coverage and created dashboards to show reports using SonarQube.I tries many options but could not publish dashboard to anonymous user.
Sonar Let Anonymous user see the reports
It is not a problem at all. The allocatable array components real_array are stored completely separately at "random" locations in the memory. In the big_array itself you have only some descriptors or pointers of these components and the size of the big_array itself is not too big. You probably should not be worried ab...
Let's assume we have an array of 10 000 derived types defined as : TYPE type1 integer :: i real, dimension(:), allocatable :: real_array END TYPE1 and type(type1), dimension(1000) :: big_array Now, we have the following statements in the main program : DO j=1,10 allocate(big_array(j)%real_array(100)) END...
Memory footprint of an unused allocatable array
Just answered my own question. Posting my answer here as I know I'm not the only one wondering about this, like this person. The answer is to redeploy your API. Although redeploying sounds obvious, the docs completely skip the vital last step, so it's easy to overlook.
In my API Gateway console, I did the following: Created an API key Associated the key with a deployed API stage Checked the key's "Enabled" checkbox For each method of each resource of my API, required the API key for authentication I expected curl https://my-api-gateway-url/my-resource to 403, since I didn't includ...
API Key enabled, but requests without key still running
I used the:hicommand with vi open, and the output was colorful. According to Ingo Karkat that meant that there were no syntax definitions/filetype detections installed in the container. I usedzypper install -y vim-data, and vi started to highlight syntax in files.
I created a Docker container based on an Opensuse 42.3 image. I'm having an issue with vim not performing any syntax highlighting in my Opensuse 42.3 container. I'm running my Docker image on an Opensuse 42.3 host. If I open a bash file from within the container and use:syntax on, nothing happens. I am using the -it fl...
vim not highlighting syntax when used in a Docker container
You can view the history (e.g. git log --oneline --decorate --graph --all) and find the last commit before all of those new commits entered the picture. Armed with that hash you can just do git reset --hard <hash> (where <hash> is the hash of that last, good commit you found) to move your current branch back to that p...
I cloned a repo into my repo on accident, and commited/pushed it without realizing. And now my github shows an extra 800+ commits that dont relate to my projects from this other repo I had cloned. Is there anyway to remove all of these extra commits? I already deleted the directories that i had cloned. Thanks.
Accidentally Cloned Repo into my repo
The Docker blog contains a security related posting: http://blog.docker.io/2013/08/containers-docker-how-secure-are-they/ EDIT: The newest and most updated document answering the question is here with almost similar content as the original blog : https://docs.docker.com/engine/security/security/
I can't find any documentation regarding security concerns for Docker. I understand how to create a relatively secure host machine by locking down the firewall, ssh access, user accounts and passwords, and turning off unnecessary services. Are these same concerns applicable in a Docker environment? Or is a Docker envi...
What security concerns exist when running Docker?
I figured it out. Instead of having *.ec for my reportPath, I changed it to be "coverage.ec". And then it showed up. Thanks for the help guys!
I have a coverage.ec file which gets generated and shows code coverage for my espresso UI tests. I also have sonar configured in gradle like so:sonarqube { properties { property "sonar.projectName", "Android 9" property "sonar.projectKey", "org.sonarqube:Android9" property "sonar.host.url", "http://localho...
Uploading coverage.ec file to sonar Android
Is there any way to configure cache so its contents are preserved when the App Domain recycles?No. The Cache object holds references in RAM. Period.Alternatives:Out-of-process Session state (although that's per-user)Distributed cacheUse SQL Server as a cache (where it keeps data in memory, rather than on disk)Wri...
I am using ASP.NET's data caching API. For example:HttpRuntime.Cache.Insert(my_data, my_key);Is there any way to configure cache so its contents are preserved when the App Domain recycles?I load many object into cache, but there is a substantial delay re-loading these every time the app domain restarts. Assume for this...
ASP.NET Data Cache - preserve contents after app domain restart
We've just started seeing this more frequently from GitHub over the last few hours (also pulling a different terraform provider). It looks like throttling from GitHub's Azure account - I assume they are experiencing a high number of downloads currently for some reason.There is a feedback thread to GitHub here with some...
I was trying to perform aterraform initand I came across the following issueError while installing mongodb/mongodbatlas v1.1.1 unsuccessful request to https://github.com/mongodb/terraform-provider-mongodbatlas/releases/download/v1.1.1/terraform-provider-mongodbatlas_1.1.1_linux_amd64.zip 503 Egress is over the account ...
Egress is over the account limit when installing terraform provider
1 This is what worked for me but not ask why. $strBackupDrive = "D:" $strBackupComand = 'start backup ' + [char[]]45 + 'include:C:\Temp\ ' + [char[]]45 + 'backupTarget:' + $strBackupDrive + ' -quiet' $errRun = Start-Process wbadmin -ArgumentList $strBackupComand -wait -NoNe...
Can you suggest on how to make this script work? It is working properly in cmd via this command: wbadmin start systemstatebackup 'backuptarget:"F:"' '-quiet' It is working in cmd running powershell via this command: [powershell] wbadmin start systemstatebackup 'backuptarget:"F:"' '-quiet' But it is not working i...
Wbadmin in powershell
Something has deleted the docker iptables entries. Docker will recreate them if you restart it (systemctl restart docker). You'll want to disable anything else that manages iptables to prevent this from happening in the future.
When creating a network (docker network create -d bridge my-nw), I obtained this error in response:Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-bedba04c7349 -j RETURN: iptables: No chain/target/match by that name.What d...
iptables: No chain/target/match error (with docker network create)
Add:# redirect ******XX.domain.com # to domain.com/*******.php?value=******XX # where XX is a number... RewriteCond %{REQUEST_URI} !news/newsdetails\.php$ # not news page RewriteCond %{HTTP_HOST}!^www\.domain\.com # prevent rewrite www RewriteCond %{HTTP_HOST} ^(([^.]+)[0-9]+)\....
I have my site which redirects all *.domain.com calls to domain.com. What I want to acheive is that first when the user enters a dynamic subdomain name he should be directed to its home page like if user writesdivision1.domain.com, then the site should point to pagedivision.php?value=division1, and when the user acces...
How do I redirect a dynamic subdomain also based on query string?
First, in_layouts/default.html, include{{ site.baseurl }}in the relative paths toassetsin yourhead(as David Jacquel suggests):<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/skel-noscript.css" />and<script src="{{ site.baseurl }}/assets/js/init.js"></script>In addition, in/assets/js/init.jschange:prefix: '/a...
This is my repository:https://github.com/attilay/jekyHow my website should look like and the repository of theme:http://themes.jekyllrc.org/linear/My website doesn't load any styling, just plain HTML. Why?
Why doesn't my jekyll github site have styles?
No, the only way to remove time series is using the APIYes, restarting would cause a hiccup, but let's be practical: the downtime is really very small.
I am monitoring a instance and changed its target IP. now when I graph it in grafana, there is 2 lines(with different color) showing with the tail of first line the head of the second line.My goal is to remove the first line and just show the updated, second line.My attempt is to adjust the time frame in grafana which ...
Delete Time series in prometheus without API
For the record I found a workaround but if you have a better suggestion please don't hesitate to share it.A solution to the problem above is to mount a hostPath directoryDand bind mount this directory into the containerB.apiVersion: v1 kind: Pod metadata: name: test-pd3 spec: containers: - image: alpine name:...
If I want to run a containerBwithin a containerA(reusing the Docker daemon) I can just bind mount/var/run/docker.sockand/usr/bin/dockerand can happily calldocker runwithinA. Now I would like to share a k8s volume betweenAandB. For that I thought of creating an emptyDir volume inAand pass it toBusingdocker run -v. But t...
Is it possible to to define a volume usable both in k8s and docker?
To make sure we don't break anything, I would recommend creating a backup of the directory containing your local Git repository.ThenCommit your "changes in progress"Go to the "History" viewRight click the commit before the 3 conmmits which you want to removeSelect "Rebase Interactive", the "Rebase Interactive" view wil...
I have 3 commits staging in the local repo in eclipse that I want to update on github. The problem is that in the first one of these commits I have 2 files overcoming the size of 100 mb so they are not able to be updated. How can I delete these 3 commits without deleting changes in progress.
How to delete commits from local repository in eclipse?
The documentation mentions that client certificates only work reliably in Firefox."Once this is done, each Webmin user can create a private SSL client key and certificate. At the time of writing, this is only known to work reliably with Firefox-based browsers."SourceShareFollowansweredApr 20, 2015 at 12:17community w...
I'm struggling with different methods of making Webmin secure, and choice is key(certificate)based browser authentication with password one disabled.I'm stacked at point where browser gets and stores by Webmin generated client certificate (I've tried with FF and Chorme), and should,according to docs, be able to login w...
How to setup Webmin browser-certificate authentication?
As @stdunbar mentioned, this is not by AWS but how SSL wildcards work. For example, in this case dev-360yield-admin.mydomain.com should work, but for dev.360yield.admin.mydomain.com you would need a cert for *.360yield.admin.mydomain.comShareFollowansweredJan 2, 2018 at 18:13Julio FaermanJulio Faerman13.4k99 gold badge...
I created an X.509 certificate using the AWS certificate manager.I used a wildcard designation,*.mydomain.com, and validated it using the AWS DNS.I then attached it to myElastic Load Balancer (ELB)along with the instances running my web service.I then set up aCNAMErecord in myAWS DNSwhere the alias name isdev.360yield....
AWS Certificates Not Secure In Browser
You need to rewrite default template in Alertmanager for E-mails.You need to replace something like{{ .Annotations.description }}in template by{{ .Annotations.description | safeHtml }}I wrote for my own email template, if you have not your own, you may create it fromhttps://github.com/prometheus/alertmanager/blob/maste...
How to print new line character when sending emails? I'm sending it to gmail. The character\nprints literally. I even tried</br>tag and yaml mutliline and none of them work.- alert: KubernetesPodImagePullBackOff expr: kube_pod_container_status_waiting_reason{reason=~"ContainerCreating|CrashLoopBackOff|ErrImagePull...
New Line character in email alerts
If you know the interval between samples for the metricprocess_running, which as recorded by Prometheus for the giveninstance(this interval is known asscrape_interval), then the following query can be used for determining time series, which last for more than 3 hours during the last day:(count_over_time(process_running...
I have a process running on every host in the infrastructure once every month or so. Whenever the process is running on any host, it sends a metric "process_running{instance=<>}" once every minute and when process exits, obviously no metric is sent to prom from that host. Now I want to alert whenever the process is st...
Alert if a prometheus gauge metric is reported for more than 3 hours
I had the same issue and am glad to find someone with the same problem -- tells me it's probably not my setup.I dug into the issue a bit, and it turns out to be a bug in gitpoller.py. Fortunately, it's a relatively easy fix:https://github.com/kuna-systems/buildbot/commit/97bf812e053a3dc68eed7c1bb291d584d6177663After th...
I've configured a buildbot (version 0.8.9) to track changes in all branches of a repository:c['change_source'] = [] c['change_source'].append(GitPoller( "github.com:myaccount/myrepo", branches=True, pollinterval=300))Works well except that it does not track the creation of new branches. But it t...
How can a buildbot track new branches on Github?
<div class="s-prose js-post-body" itemprop="text"> <p>To check inside a Docker container if you are inside a Docker container or not can be done via <code>/proc/1/cgroup</code>. As <a href="https://stackoverflow.com/questions/20010199/determining-if-a-process-runs-inside-lxc-docker">this post</a> suggests you can to th...
<div class="s-prose js-post-body" itemprop="text"> <p>[Updated1] I have a shell which will change TCP kernel parameters in some functions, but now I need to make this shell run in Docker container, that means, the shell need to know it is running inside a container and stop configuring the kernel. </p> <p>Now I'm not s...
How to check if a process is running inside docker container?
Go to to your forked repo, and then click on Compare and Review Select the target branch to merge Click to create a pull request for this comparison Enter a title and description for your pull request Click Send pull request https://help.github.com/articles/creating-a-pull-request
I am still new to github and now I am confused. I forked a repo a while ago. Then locally on my computer pulled the changes from the original repo and merged them into mine. Then I did my change and committed it. Then I pushed everything to my forked repo. Now I want to send a pull request. But I just want to send my ...
Github pull request
Why do you need to deploy all of the components together? In a micro services architecture, you would want to reduce the dependencies between each layer to a clean interface and then allow each layer to be deployed and scaled separately from the others.If you need to deploy them together (e.g. they share local disk or ...
If I have a multi - tier application (say web / logic / database), where each tier having it's own container, and I need to deploy all of these en - bloc, do they all have to go into the same pod?And if they are in the same pod, does this have any implications in terms of the maximum size of application that can be run...
How to deploy multi - tier application with Kubernetes
It's used in TLS bootstrapping a kubelet in kubeadm. When you run kubeadm join command the API server returns the ConfigMap with the kubeconfig contents as normal. Extra data items on that ConfigMap contains JWS signatures. Kubeadm finds the correct signature based on the token-id part of the token.Kubeadm verifies the...
Can somebody elaborate what is the use of configmap signing which is given here inkubernetes doc.
what is the use of configmap signing in kubernetes TLS bootstrapping
You cannot. The default content-type is "application/octet-stream". Please find below the aws documentation for the same http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html The only option you have is setting the content-type at the time of upload or updating it once the upload is complete.
Currently when I place a property list file (plist extension) to a S3 bucket, it sets the Content-type to application/octet-stream for some reason. It causes issues when I download it in Objective-C (iOS). How can change the bucket policy so it automatically sets the Content-type to text/plain
Change content-type in S3 bucket policy for a specific file extension
First, you should never count on a specific implementation because it could change, and it is really irrelevant for most purposes. Anyway, the current implementation is via an associated reference count, basically via a hash table, hashing the object pointer to a reference count.
I understand that NSObject does not have a retainCount instance variable - in fact it has no instance variable relating to its lifetime or reference counted environment. My question is therefore, how does NSObject (or any object for that matter) keep track of its own reference count without an ivar? More generally, wh...
How does NSObject's reference counting system work?
Your Nginx config is correct, you just miss few lines.Here is a "magic trio" makingEventSourceworking through Nginx:proxy_set_header Connection ''; proxy_http_version 1.1; chunked_transfer_encoding off;Place them intolocationsection and it should work.You may also need to addproxy_buffering off; proxy_cache off;That's ...
On server-side using Sinatra with astreamblock.get '/stream', :provides => 'text/event-stream' do stream :keep_open do |out| connections << out out.callback { connections.delete(out) } end endOn client side:var es = new EventSource('/stream'); es.onmessage = function(e) { $('#chat').append(e.data + "\n") };...
EventSource / Server-Sent Events through Nginx
Detailed quick start:Partial output caching(some re-thinkhere)ASP.NET MVC Action Filter - Caching and CompressionandASP.NET MVC View Location and Performance Issue.ShareFollowansweredApr 26, 2009 at 12:44bojboj11.1k55 gold badges3939 silver badges5858 bronze badgesAdd a comment|
everyone. Can someone share some links on articles about back end caching and fragment caching in ASP MVC applications, best cache architectures, etc. Any useful advices also will be very appreciated.
Caching best practices
1 This was due to some infinite loop in the code which caused it. It's better to test the business logic using the Nunit. Share Follow answered Apr 1, 2019 at 5:41 MounikaMounika 5133 bronze...
Am using windows service to publish my data to an API. Initially it worked fine in production machine after installing. After some load is added the service threw Out Of Memory exception. We tried with same load in test machine and did not see any issue. Production Server is Windows 2012 R2, 64 GB RAM . We can not g...
Windows Service throwing Out of Memory exception after certain load
All of the answers I've seen are correct, but here is an explanation: Android Studio needs to create many files during the build process - including the build itself (apk file). These files are generally temporary and unnecessary for version control, but they are necessary for the build and maybe helpful for troublesh...
If I checkout a branch, make no changes but gradle does a full rebuild of the project, when i go to checkout a different branch, it git gives me a error in the terminal saying changes have been made to the modified: .idea/workspace.xml modified: app/app.iml even though i didnt make any changes, they were done and...
Android Studio Git: having to commit everytime i change branch
This is quite old question, but as the problem persists... here it goes.There is a bug in the Kubernetes restclient, which does not allow to use more than one IP/URL, as it will pick up always the first IP/URL in the list. This affects to kube-proxy and also to kubelet, leaving a single point of failure in those tools ...
I'm using a cluster setup with multiple apiservers with a loadbalancer in front of them for external access, with an installation on bare metal.Like mentioned in theHigh Availability Kubernetes Clustersdocs, I would like to use internal loadbalancing utilizing thekubernetesservice within my cluster. This works fine so ...
How to configure kube-proxy master_url with multiple apiservers
Another alternative is to useAWS CloudFormation. You can define all AWS resources you want to create (not only Glue jobs) in a template file and then update stack whenever you need fromAWS Consoleorusing cli.Template for aGlue jobwould look like this:MyJob: Type: AWS::Glue::Job Properties: Command: ...
I have pyspark script which I can run in AWS GLUE. But everytime I am creating job from UI and copying my code to the job .Is there anyway I can automatically create job from my file in s3 bucket. (I have all the library and glue context which will be used while running )
AWS Glue automatic job creation
Wordpress built-in export (WordPress eXtended RSS or WXR) would contain your posts, pages, comments, custom fields, categories, and tags. Images can be donloaded from the old location (must be live) to the new one; be sure to check the "Download and import file attachments" box on import. If there are galleries manage...
A Wordpress install on one of my servers has been compromised. What's the quickest way to export the gallery, posts and pages in a manner that won't export any back doors along with them? Then how do I import those into the fresh Wordpress installation? I want to avoid copying any php files as the attacker may have ...
How would I copy the gallery, posts & pages from a compromised wordpress install to a fresh one?
The general idea is to setup a pipeline dedicated to update your README, as explained here. This is illustrated in the official documentation "Add a status badge to your repository"
I have seen some informative Azure DevOps Project description pages (readMe file), where one can see at a first glance how the whole project is performing and would like to do something similar and want to know from where the information is coming and how to keep it up to date with the latest build/deploy status? Some...
Azure DevOps project description page (a dynamic readMe file possible?)
Yes. You could create mirror for repository. Both GitHub and Gitlab have this feature. Gitlab documentation. Github documentation
Is it possible to have one git repo placed on both github and gitlab? So that if you push to a remote repo that its both on Github and Gitlab.
Is it possible to have one Git repo placed on Github and Gitlab?
For an example how we setup our project template you may have a look atphundament/appand its testing setup.We are using a dockerizedGitLabinstallation with acustomized runner, which is able to executedocker-compose.Note! The runner itself is running on a separate Docker host.We are usingdocker-compose.ymlto define thes...
I want to setup a unit test environment for my product. I have a web application build on nginx in Lua which use mysql and redis.I think docker will be good for this although i am new to docker. My application runs on centos server (production server).I am planning to setup different container for mysql,redis and webap...
docker unit test setup
You have to open the specified port$ sudo ufw allow 8000This command would open the 8000 port
I currently have Apache configured and serving content over port 80 and 443.I wish to serve content over port 8000 using NGINX. I've followedthis guide.in/etc/nginx/sites-available/defaultI changedserver { listen 80 default_server; ....toserver { listen 8000 default_server; ....According to ...
Running Apache and NGINX at the same time
<div class="s-prose js-post-body" itemprop="text"> <p>Editing the DNS nameserver in <code>/etc/resolv.conf</code> file helped me.</p> <p>Change your existing nameserver to google nameserver i.e., x.x.x.x to 8.8.8.8</p> <p>Comment your nameserver IP and add something like this :</p> <pre><code>#nameserver x.x.x.x namese...
<div class="s-prose js-post-body" itemprop="text"> <p>Trying to push an docker image to private docker repository. but getting error like: <code>"dial tcp: lookup xxx.xxx.xxx.xxx: no such host"</code>. I have logged in correctly to the repository and build succeeded.</p> <p>The following command using to push the ima...
dial tcp: lookup xxx.xxx.xxx.xxx: no such host
That's how Kubernetes works, and other solution works probably same way. When a machine is dead, the container on it will be rescheduled to run on another machine. That other machine has no state of container. Event when it is the same machine, the container on it is created as a new one instead of restarting the exi...
I'm setting up rethinkdb cluster inside kubernetes, but it doesn't work as expected for high availability requirement. Because when a pod is down, kubernetes will creates another pod, which runs another container of the same image, old mounted data (which is already persisted on host disk) will be erased and the new po...
High availability issue with rethinkdb cluster in kubernetes
Regarding changing the author of a commit. Commits aren't directly associated with your GitHub account. Commits have a committer and author associated with them. They are set by you (or rather by Git) on your machine before pushing remotely. You can literally commit with any email and any name, even one from another u...
A couple of months ago I made a PR to a private org repo (private as in, public users have to request access in order to view it, technically private but not really). It didn't get accepted for a long time, so some time after this I decided to change my GitHub username. Recently, to my surprise however, the PR got acc...
GitHub - PR commit shows old username as author. How do I change author of commit if I have no repo permissions?
The easiest way is to change the remote url through the command line: cd /path/to/your/repo git remote set-url origin https://github.com/user/yourNewRepo
I have a project that I have created in IntelliJ. Initially, I had shared the repository on gitHub. After inviting another developer to the project, I deiced that I was going to delete repository on gitHub and recreate it under a new name. The problem I have is that after deleting the project via gitHub's web interfac...
How do I point to a different gitHub repository?
Github is correct, what you provided is not a valid Git repository URL.The Heroku site or web URL (of the formhttps://xxxxxx.herokuapp.com/) is where your website isdeployed, but that's not where the source codes arestored.What you want is the Heroku Git URL. You can get this in 2 ways:From the Heroku dashboardLogin in...
I have a URL for my Heroku app here:https://damp-sands-09329.herokuapp.com/.When I go tohttps://github.com/new/import, I am told to enter "Your old repository’s clone URL" and I entered the site URL and it said to meNo source repositories were detected athttps://damp-sands-09329.herokuapp.com/. Please check the URL and...
"No source repositories were detected at(my app). Please check the URL and try again."
0 I've found workaround, in the Vertica backup file /opt/vertica/bin/vbr.py I have changed ulimit -u to ulimit -n. Share Follow answered Apr 21, 2017 at 10:33 wlodi83wlodi83 12311 silver bad...
I try to do full backup on Vertica database. When I execute command: /opt/vertica/bin/vbr.py --debug 3 --task backup --config-file vertica_backup.ini I am getting following error: /bin/sh: 1: ulimit: Illegal option -u Traceback (most recent call last): File "/opt/vertica/bin/vbr.py", line 2526, in backup prepareAll...
Vertica backup error
1 I had this same issue after messing with some settings on Docker Desktop. To resolve this, I went to troubleshoot by right-clicking on the Docker Desktop icon in the "show more icons" and selecting trouble shoot. Then I just reset it to factory settings and now it's worki...
I have been trying to start a docker-compose file of 2 Windows containers in a Windows 11 environment when I got the following error: "hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. (0x2)" I have tried to resolve this by: adding storage-opts in my Docker Daemon configuration do...
Docker error - "hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. (0x2)"
If the data is in the multiple indices you should use theenrich policy.If the data is in the same index you can use thetransform.Note: Unfortunately, there is no easy way to do that like in a regular database.
i had: essaye YESIdform 2Nom Salim Prénom benabdeslam _id xW5cvogBINggXK4roNBx _index 11 _score -essaye YESIdform 2Nomform Electronic Université USTO _id x25dvogBINggXK4rrdyour textCv _index 22 _score i'm working on elk project, iwould like to join the two lines that we see on the photo to get somthing like ""essaye YE...
how can we join fields on kibana
Rather than do this in PHP, I suggest you implement it on the web server layer. Add this to the top of your.htaccessfile:RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]And remove your PHP redirect code.But this is still going to require log-in before the redirect is ...
I have a directory of my website I would like to secure. I am doing this using a .htaccess file to force a HTTP AUTH. I would like to force this HTTP AUTH to be done over HTTPS.Looking at various solutions on stack overflow here is the point I have got to:I have the following .htaccess file in the 'top_secret' director...
Force HTTP AUTH over HTTPS
There's a "watch thread" button right at the bottom of every issue page.
Is there a way for me to "follow" a pull request on github. I want to be notified if anyone comments or updates the pull request. I believe this is done automatically when I become a participant by commenting on the pull request. But that doesn't seem like a good option in this case because I don't have anything usefu...
Become a participant on github pull request
Since you'll generally be compiling and distributing them separately, I'd suggest separate repos. They are -in that case- separate projects.One artifact per project keeps thing nice and simple. One build command per output. Having multiple projects in one repo means a complex directory structure, lots of build tool cu...
Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed8 years ago.Improve this questionI'm developing two programs for a project, one client-side and one server-side, where t...
Should a Java program and python program that are related co-exist in same git repo? [closed]
Student exampleOfStudent(theAge);is an automatic variable, not static.As far as I remember, MISRA rules disallow all forms of dynamic memory. This includes bothmallocandnewandstd::vector(with the default allocator).You are left with only automatic variables and static variables.If your system has a limited amount of RA...
I need some clarification about c++ memory management andMISRAguidelines..I have to implement one program that it's MISRA compatible so I have to respect a important rule: is not possible to use 'new' operator (dynamic memory heap).In this case, for any custom object, I must use static allocation:For example:I have my...
C++ memory management and Misra
1 I had a similar problem for a site I had to maintain that had at least three different languages and had to re-index the same 10'000+ (and growing) localized documents for each different locale separately (each using their own localized search engine). Suffice to say th...
An oldish site I'm maintaining uses Zend Lucene (ZF 1.7.2) as it's search engine. I recently added two new tables to be indexed, together containing about 2000 rows of text data ranging between 31 bytes and 63kB. The indexing worked fine a few times, but after the third run or so it started terminating with a fatal er...
Zend Lucene exhausts memory when indexing
Unfortunately, github's UI does not support annotated tags (yet), but there is a feature request out for this:https://github.com/PHPMailer/PHPMailer/issues/752#issuecomment-226418384Note the workaround in the response from the github employee:As a workaround you can create annotated signed tags via the command and push...
It appears that when a release is created on GitHub it is a light weight tag. Is there any way to create a release in GitHub that is an annotated tag? To clarify, I'm asking if there is a way to do this from the GitHub UI?
Is there any way to create an annotated tag from GitHub?
UPDATE: This bug is now patched! Please download the latest version.This seems to be a confirmed bug in the Amazon SDK. See link below...https://forums.aws.amazon.com/thread.jspa?messageID=231411As far as I can tell, there is no patch for this yet. I suppose you could patch it yourself using isset(). That's what I ...
I'm using the AWS PHP SDK. I have the following code to send an email using SES:$ses = new AmazonSES(...); $response = $ses->send_email('ubuntu@localhost', array('ToAddresses' => '[email protected]'), array( 'Subject.Data' => 'My Test message', 'Body.Text.Dat...
Cannot send email with Amazon SES
2 You can use the syntax to get the log of commit with file changes. This only shows the list of changed files. git log --stat If you want to check the changes in the file then use git log -p you can limit the log entries by passing limit git log -p -2 more at https:/...
I am trying to get the names of files that have been changed in 2 consecutive pull requests. So 2 developers have changed 2 diff files and pushed to github. When i try to pull it in 3rd repo i need to get the 2 changed filenames. Currently i am getting only the changed file name of the latest developer by using the fo...
How to get the changed file names between 2 consecutive git pull?
A Simple rewrite will do, add this to your server block. rewrite ^(/documents/.*)$ /assets/client_files/files$1 permanent; This will throw a 301 redirect ot requests with URI staring with /documents/ to the new path. For more information about Nginx rewrite, check the docs here UPDATE Also you can do this inside a lo...
We moved the assets to a new container or folder. From /documents/THE_FILE.pdf was moved to /assets/client_files/files/documents/THE_FILE.pdf noticed the path is now within /assets/cleint_files/files/ directory. The problem is, we already have bunch of content that have links to file but using the old path. I just wan...
Nginx: Redirect a certain file path url to its new path url
More simple way is hookconsole.logand callconsole.logas usually.var util = require('util'); var JFile = require("jfile"); var nxFile = new JFile('/var/log/nginx/access.log'); ... process.stdout.write = (function(write) { return function(text, encoding, fd) { write.apply(process.stdout, arguments); // wri...
I have an Node.js app setting up with systemd. The app running behind NGINX.I would like to add console output of my Node.js application in the log access NGINX file ?How can I do this ?Thanks in advance.
How to add console outputs Node.js app in the log access NGINX file?
from the manualdocker-compose restartIf you make changes to your docker-compose.yml configuration these changes will not be reflected after running this command.you should be able to do$docker-compose up -d --no-deps --build <service_name>The--no-depswill not start linked services.
I enjoy a lot using docker-compose.Eg. on my server, when I want to update my app with minor changes, I only need togit pull origin master && docker-compose restart, works perfectly.But sometimes, I need to rebuild (eg. I added an npm dependency, need to runnpm installagain).In this case, I dodocker-compose build --no-...
How to rebuild and update a container without downtime with docker-compose?
31 An AWS Access Key ID does not have any slashes. It is comprised of uppercase ASCII letters only, and begins with AKIA... or ASIA.... One possible explanation is that you have transposed your access key ID with the accompanying secret access key, which does often hav...
During executing eb init on Ubuntu 16.04 I faced an error Credential must have exactly 5 slash-delimited elements, e.g. keyid/date/region/service/term,. I understand that my keyid has slashes but they must be there, key was provided by AWS and it is generated. I have no idea how to skip this validation. As I know on M...
AWS, Credential must have exactly 5 slash-delimited elements,
clang finds the problem right away. test(72707,0x7fffe32443c0) malloc: *** error for object 0x7fffe0051090: pointer being realloc'd was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6 The problem is here. help2=realloc(input[i-1],j); While input has been allocated, none of its element...
I am trying to write a function to assign text input to a char**. Where each word is stored in a char*. When I was doing this I was getting errors that I think indicated that I didn't allocate enough memory so I wrote a little test program. #include <stdio.h> #include <stdlib.h> int main(){ char **input=NULL; ...
C - Memory size pointer of char
0 It seems that IntelliJ doesn't detect the project type. Check if it exists a module defined in the project structure config window (menu "File> Project Structure..."). If doesn't exist you have to create it (the "content root" should point to your project root folder). ...
When I use "Check out from Version Control" to checkout a project from GitHub into Intellij, even if the project is a simple Web project, Intellij always asks to set up a SDK and also does not show the directories in the Project tab. What is the right way to checkout a simple (non-Java) project from GitHub into Intell...
Checkout GitHub project into Intellij, not showing directories
0 There are many ways to do this. It really depends on how complicated your "database" is. The simplest solution is to write to a text file in a CSV format: import java.io.PrintWriter; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOE...
How do I backup / restore any kind of databases inside my java application to flate files.Are there any tools framework available to backup database to flat file like CSV, XML, or secure encrypted file, or restore from csv or xml files to databases, it should be also capable of dumping table vise restore and backup a...
java database backup and restore
First, volatile does not force threads to use main memory. It forces threads to behave as if they were forced to use main memory. This is important because actually using main memory would slow things down to a crawl on a modern system. Fortunately that definitely doesn't actually happen. Second, it doesn't matter how...
(In case of single CPU ) for understanding volatile -I know volatile forces thread to use main memory and will not keep copy in its local memory. In one of the StackOverFlow post I see that java threads uses CPU cache and using volatile it will force to use main memory Thread Caching and Java Memory model. If this ...
volatile in single core cpu java
I have foundthis similar problem. Seethe whole answer here.According tothis documentation:The http/https scheme is controlled by thetlsDisablevalue.When set totrue, changes URLs fromhttpstohttp(such as theVAULT_ADDR=http://127.0.0.1:8200environment variable set on the Vault pods).To turn it off:global: tlsDisable: f...
My readiness probe specifies HTTPS and 8200 as the port to check my hashicorp vault pod.readinessProbe: httpGet: scheme: HTTPS path: '/v1/sys/health?activecode=200' port: 8200Once the pod is running kubectl describe pod shows thisReadiness probe failed: Error checking seal status: Error making API...
Why is my kubernetes readiness probe for hashicorp vault hitting http when I specify https?
The issue was to do with one of the yaml fields:env: - name: DB_HOST value: "mysql" - name: DB_PORT value: 33063306should be a string ("3306") instead...
I'm trying to create a migration but it's failing with the below error:Error from server (BadRequest): error when creating "kubernetes/migration-job.yaml": Job in version "v1" cannot be handled as a Job: v1.Job: Spec: v1.JobSpec:What is the cause of this error?
kubernetes Job in version "v1" cannot be handled as a Job:
After some testing, I found that the problem was that I was not using ssl. if I enable ssl (https) the cache usually happens. Then during the development of the site I'm using http, when I need to experiment with cache I use https. I do not know why this happens but at least figured out how to solve this problem and c...
I have font files within my JSF 2.2 project with Primefaces 5.3 and Omnifaces 2.3 and need to put these text font files (as .woff and .woff2) within the wildfly cache but unfortunately I'm not getting. Image files (.gif, .png) and CSS files are in the cache, only text fonts that are not in the cache. I used the tips f...
How to Cache fonts (.woff, woff2, .ttf, .eot) in Wildfly 10?
2 Github pull request are made for branches. If you like to merge upto specific change, go to that commit using git checkout <commit-id> create a git branch from there git branch <branch-name> create a pull request from the newly created branch. Example: check this link...
Git allows one to merge up to a specific commit. For example, merging the master branch up to a commit on dev which is not necessarily the latest commit. The command for this is as follows: git merge <commitId> The github web application allows one to manage their branches by kicking of a merge. One accomplishes this...
github merge up to a specific commit
According to the documentation, once you specify days you can only specify a single absolute time for the task to run.I suggest you check the day of week in your job and do nothing if it is not a weekday.
I am trying to schedule a job to run "every 15 minutes on weekdays only" using the Google App Engine cron scheduler (for Java apps).http://code.google.com/appengine/docs/java/config/cron.html#The_Schedule_FormatDoes any know what the correct syntax is? I have tried using the xml below, but find that it runs on all days...
Cron job syntax on Google App Engine
Check thin version, in older version this was the issuehttps://github.com/macournoyer/thin/issues/244Chrome asks to "Select a Certificate" for SSL on my Rails app using thinThey have resolved it in new versionhttps://rubygems.org/gems/thin/versions/2.0.0.pre
I have one Trusted Certificate (.pfx extension) and I generate the .crt and .key files to use with Thin Server.When I access the server the certificate don't work, still untrusted by chrome, I followed the instructions to use --ssl-cert-file and --ssl-key-file with thin server, what I'm doing wrong?Sorry my bad english...
Verified Certificate with thin server
Metricbeat is installed as a daemonset to ensure that it can get all the node stats across all namespaces. So, you just need one instance of Metricbeat on every node in your k8s clusterMore details:https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html
Say I have multiple namespaces on a kube cluster and each namespace has a RMQ container, and these RMQ containers are spread throughout a few nodes, is there a way to deployonemetricbeat pod (preferably as adaemonset) per node to monitor these RMQ containers? What's the best practice regarding using Metricbeat for moni...
One Metricbeat Pod to monitor multiple RabbitMQ containers
Everything is perfectly described on thedocumentation page of the Sonar Jenkins Plugin, so please read all the pages carefully and follow the guidelines step by step, and everything should be fine.
How can i start sonar in jenkins. i have sonar 3.1.1 in my system.I don't have a deep knowledge in jenkins. i started junkins and added the sonar-junkins plugin. After that in Manage jenkins -> Configure system i added sonar with the details as,Name : sonar Server URL : http://localhost:9000 Database URL : jdbc:mysql...
start sonar server in jenkins
Regarding the mercurial repo, you can start byconverting it to Git(fast-export/hg-fast-export.sh).And regarding the possibility to link two different histories (for two branches of unrelated repo), you can use git grafts (graft point) to make a common history.See for instance "How to rebase one Git repository onto anot...
I have a repo on Github that was imported from Google Code (actually, someone else imported it and I forked it). The original project has been dormant on Google Code since 2011. The code is mostly in a single file in the root directory. My fork has the Google Code history. We've made additions to the code.A third perso...
Is it possible to merge and link two unlinked repos on Github?
Changes to .htaccess are immediate and do not require a restart. Normally, if you aren't seeing what you expect from .htaccess changes, you have a syntax error and should check Apache's logs for some idea of what's going on.ShareFollowansweredOct 20, 2011 at 13:49Dirk DastardlyDirk Dastardly1,03722 gold badges1212 sil...
I have added url rewrite rules to my .htaccess file. Should I see these changes working right away?
How long does it take for .htaccess changes to take effect?
For some strange reason I do not know I tried it with the yaml code untouched and it worked.
I am trying to set up a MongoDB pod on Kubernetes by pulling directly from docker for a Microservices application I am working on but I keep getting the error : "mongo can't be pulled". I am also managing multiple deployments with Scaffold with the scaffold dev command, this mongo error terminates the scaffold command ...
Mongo can't be pulled error: Mongodb on Kubernetes DeploymentSet
-1Not sure if you can integrate Github Actions with Azure DevOps (ex-Pipelines) but this might be your best option:How to setup CI with Azure Pipelines for VB6 projects on github.com
I need to recompile VB6 code and then build the installer for an old VB6 project via GitHub actions.Background : We have migrated this old VB6 project to a VSTO application. But still we have customers who use this VB6 solution. When building the installer, earlier we used Jenkins with a build machine that has VB6 inst...
Build VB6 project with GitHub actions
0 You can use the following settings to change the permission of its socket in your ini file: chmod-socket = 777 # socket permission gid = www-data # socket group uid = www-data # socket user Share Follow ...
I seem to be having some slight problems deploying a Pyramid web application. The problem seems to lie in my init script that I am using to start my web application on boot. For some reason, uWSGI will not work unless my socket is set to have a permission of "nobody.nobody" OR Nginx is started after my uwsgi init scri...
Problems deploying Pyramid with uWSGI on Nginx
First, you probably want to turn off multiviews, that's going to mess with the whole "removing the php extension" thingThan, you want this rule:RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L]To be after your redirects, and you want to be doing the redirect status check on the actual redirects:O...
I'm currently using .htaccess to rewrite on my website to create dynamic subdomains. I also use it to remove the .php extension on all pages. However, once inside the subdomain, it tries to redirect again. For example, if you went tohttps://admin.example.com/test, it would actually be accessinghttps://example.com/clien...
Using .htaccess to rewrite dynamic subdomains
Yes, the StringList created on line 1 is leaked. Essentialy, you are doing: s := TStringList.Create; s := AnotherStringList; AnotherStringList.Free; As for the GetSomeSettings routine: Normally it is not wise or encouraged to return newly created instances as function results, because you transfer the responsibility...
is this piece of code safe from memory leaks? s := TStringList.Create; // create first object try // Here line comes that seems to be dangerous s := GetSomeSettings; // Overrides reference to first object by second one finally s.free; // Destroying only second object, leave first object to live somewhere in mem...
Is there memory leak here?
As the other answer says,fetchjust gets the new commits into your history but updates only the "remote tracking branches". These are references to the new commits but are not local branches that you work on.If you want to update your local branch with what the remote tracking branch will have, you want to usegit pull.I...
I'm having some serious issues with git, and couldn't find any solutions online. I'm a new user, so I may be doing something wrong...I have a repository hosted on Github, and someone on my team just pushed a new commit. Using Git GUI on windows, I attempted to fetch the new commit from Github. Git said that the fetc...
Git fetch says "success" but nothing is downloaded
This was a silly mistake --endpoint must not contain URL path. So its value will be https://customer-support-dev.hasura.app.
I am trying to setup github ci cd with hasura... I did everything as document said so, but since I am applying change locally on database, on cloud deployment it is saying table already exist while applying migration (which is logically correct). now I want to avoid, skip or sync migration between cloud and local for...
Resource does not exist error on hasura while github ci cd
The description of the rule in Sonar explains it quite clear: "arguments" is an implicit variable that give access to the arguments of the function, and that is an indexed property. So this is unlikely that you want to pass this variable like what you're showing (which looks like a debug code only), and most of the tim...
Let's say I have the following JavaScript code in my project:function foo(){ console.log(arguments); }When I run the Sonar JavaScript plugin across it, it registers the following error:"eval" and "arguments" must not be bound or assignedAny idea why? I understand this error should only occur ifargumentsis as...
Sonar violation around JavaScript arguments object usage
Add tcp option to sys config as shown here: vi /etc/sysconfig/docker OPTIONS="--host=tcp://0.0.0.0:2375" After restarting docker, I could connect to remote docker server using python.
How do I connect to remote docker host using python? >>> from docker import Client >>> cli = Client(base_url='tcp://52.90.216.176:2375') >>> >>> cli.containers() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/docker/api/container.py", line 69, in...
connect to docker hosted on remote server
This is what I came up with.Dockerfile... ARG ARG_ENV_SECRET ARG ARG_ENV_SECRET_1 COPY ./env-script.sh ./ RUN ./env-script.sh ...env-script.sh This script creates the .env FILE#!/bin/sh touch .env { printf "ENV_SECRET=%sENV_SECRET_1=%s" "$ARG_ENV_SECRET" "ARG_ENV_SECRET_1" } >> .envdocker-action.yml... jobs: buil...
I have the followingdocker/build-push-actionjob that runs in my GitHub actions when a release tag is created.jobs: docker: runs-on: ubuntu-latest steps: - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx uses: docker/setup-buildx-acti...
Production ENV file with docker/build-push-action and GitHub Actions
The following answer assumes that a) you committed all your valuable work already, and b) you don't want anything which came in from the recent merge ("sync"), from the remote branch. Assuming both of these are true, you can just do a hard reset to the current HEAD of your branch:git reset --hard HEADIn case you ever ...
I accidentally synced when I shouldn't have done and changed a lot of my local files how do I undo this sync?
Using git desktop I committed my changes and pressed sync. There were merge errors and my local files got changed a lot. How to undo changes?
Figured out that there are other ways to specify the region. This seems to do the trick:var AWS = require('aws-sdk'); AWS.config.credentials = new AWS.SharedIniFileCredentials({profile: 'default'}); var s3 = new AWS.S3({region:'us-west-1'}); var ses = new AWS.SES({region:'us-west-2'});ShareFollowansweredNov 1, 2016 at...
Currently setup my S3 access in Node using:var AWS = require('aws-sdk'); AWS.config.region = 'us-west-1'; AWS.config.credentials = new AWS.SharedIniFileCredentials({profile: 'default'}); var s3 = new AWS.S3();Now I would also like access to SES. Unfortunately, SES does not exist on us-west-1, so I had to setup S...
Nodejs & aws-sdk: Simultaneous access to multiple regions?
With your memory settings the JVM, when running in development/test mode on your local computer, it is probably running out of memory when trying to create the objects and therefore is running GC trying to reclaim memory and throwing the exception. Here is an example of a grails.project.fork from a project where I hav...
I have tried changing the memory usage configuration in BuildConfig: grails.project.fork = [ // Configure settings for the test-app JVM, uses the daemon by default test: [maxMemory: "changedThis", minMemory: 64, debug: false, maxPerm: 256, daemon:true], ] The same as with "run". However, I'm still getting th...
How can I increase memory and fix a "GC overhead limit exceeded" error in Grails?
What is the exact command that you are using for updating the certificates? Try using this command.certbot renewRead about it morehere.
I'm trying to update an SSL certificate with the command certbot certonly But I get this error:Problem binding to port 80: Could not bind to IPv4 or IPv6.running netstat -plunt shows that port 80 is been used by 'Glassfish'. When i stop glassfish, I have the following error: "Challenge failed for domain xxxxxxxx.net"h...
Problem binding to port 80: Could not bind to IPv4 or IPv6 with certbot certonly
1 There's a hidden file you can modify: ~/.rstudio/projects_settings/switch-to-project Populate it with the path of the project you want RStudio to open at startup. Share Follow answered Nov 29...
I am trying to build my works using Docker System. It would be nice to start Rstudio server when I start a container attaching a project from a mounted volume. For example, I can start the docker as, docker run -d -p 8787:8787 -v $(pwd):/home/rstudio --name rocker rocker/verse:latest It runs Rstudio server and I can...
Open RStudio Project from the attached volume when starting Rocker container
This appears to be mostly resolved in the next release of the Android OS.http://code.google.com/p/android/issues/detail?id=11231#c107
We are creating an "extranet" application that will use client/server SSL certificates to enhance security. Is it possible to create an installer that would be run by a user on their Android device that would install a client SSL certificate issued to them by us?
Automated installation of SSL certificates to Android devices
Yes you can. Lifecycle Rule supports prefix/tag to filter what you want to apply the rule. You need to define which you want to delete except others. Reference: To apply this lifecycle rule to all objects with a specified name prefix (i.e., objects whose name begins with a common string), type in a prefix. You ca...
I want to apply a deletion rule to my whole bucket to delete all objects that are older than 2 weeks. But my bucket has certain folders that need to be skipped. So is it possible via S3 lifecycle management to skip certain folders and delete rest of the stuff that is older than 2 weeks? Here is my current bucket struc...
Skip Certain folders in S3 Lifecycle Policy
0 The datasets in PowerBI Service is stored in PowerBI Cloud. The reports that you upload are stored in PowerBI Cloud Service. However, there are no back-ups of those reports. You can use the Embedding feature of PowerBI to embed reports in your application. PowerBI embeds...
The data that I can find in the DATASETS section in PowerBI Service, where is it stored? Do there exist back-ups of my reports and dashboard in PowerBI Service and where are they stored? And what data is in these files? If I have PowerBI Embedded, where is my data stored and what data is actually being stored? What i...
Power BI Security Data Storage
In a complete outage, you're right, the application will not have any valid endpoints for the cluster. Those will need to be refreshed (and the app restarted) before the app will connect to Cassandra.We actually wrote a RESTful API that we can use query current, valid endpoints by cluster. That way, the app teams can...
We have created a statefulset & headless service. There are 2 ways by which we can define peer ips in application:Use 'cassandra-headless-service-name' in contactPointsFetch the peers ip from headless-service & externalize the peers ip and read these ips when initializing the connection. SO far so good. Above will work...
How does Cassandra driver update contactPoints if all pods are restarted in Kubernetes without restarting the client application?
Put the values in aConfigMapand mount it in the Pods. You can include the values of the ConfigMap in the containers of a Pod either as avolumeor asenvironment variables.SeeConfigure a Pod to Use a ConfigMapin the Kubernetes documentation.If the Pods need to update the shared values they can write to the ConfigMap (requ...
I have several pods which belong to the same service. I need to share a value between all pods in this service.Per my understanding, the shared volume won't work well, because pods may end up being on different nodes.Having any kind of database (even most lightweight) exposed as a service to share this value would be o...
How can I share some value between kubernetes pods?
For your issue, I just can say the property is not supported by Terraform. You can see it in the Azure REST API for Recovery Policy as property instantRpRetentionRangeInDays and use the request body like this: { "properties": { "backupManagementType": "AzureIaasVM", "schedulePolicy": { "schedulePolicyT...
I have successfully created daily and weekly backup policies using Terraform and both work fine. The Azure Portal however shows a red mark under "Instant Restore" on the policy blade saying "Retain instant recovery snapshot(s) for" and the value appears as 2 days. I need to change this value to 5; however, I don't see...
Terraform Azurerm azurerm_recovery_services_protected_vm “Set number of instant recovery snapshot(s)”
if ($host ~* www\.(.*)) { set $host_without_www $1; rewrite ^(.*)$ http://$host_without_www$1 permanent; # $1 contains '/foo', not 'www.mydomain.com/foo' }Answer from server fault:https://serverfault.com/questions/139579/nginx-subdomain-rewrite
Yet another nginx rewrite rule question:How can I do a rewrite fromhttp://www.*.domain.comtohttp://*.domain.com?
nginx subdomain rewrite
-1We can handle/protect the networking components using below following stepsI have created the vm with recovery vaultsAfter creating enabled the recovery vaults and I am able to see my recovery site is healthyOpen the replica item in the over view clicked ontest failurebefore beginning the failure I shutdown the machi...
I currently have an app running on Azure VMs and the outbound traffic using UDR is funneled through Azure Firewall.I understand the VMs can be replicated to a secondary region using Azure but not sure how to handle the networking components. With Azure Firewall being a PaaS service, do I have to create an Azure Firewal...
Azure Site Recovery involving Azure Firewall
I have tried the followingcron.yamland it worked fine. At least on the dev_appserver:cron: - description: url test url: /tasks?keyword=test schedule: every day 15:00
I would like to run cron job on GAE and using pythonIn the cron.yaml, how do i insert the "url" field if consist of some "get" infoThe:description: whateverurl: url?keyword=aschedule: every day 15:00give me error when deploy
Google App Engine (GAE) cron url: url?keyword=abc
1 So, I read the BinaryFileResponse code source to try to figure out how to proceed. I think I have understood but could anyone confirm this is correct? At least, it seems to works as expected. The files I want to serve are in a directory called private-dir outside of the d...
My config is php-fpm 5.4 with nginx. I need to serve some protected files. So I check with Symfony if the user has the correct rights and then I would like nginx to serve the file (a swf) using the X-accel-redirect header. Controller in symfony: /** * @Route("/protected/swf") */ public function sendFileAction() { ...
Serving protected files with Symfony2 and Nginx X-accel-redirect
Looks like there was an open rails ticket for a very similar issue that was fixed by making some changes to the ~/.gitconfig file. Take a look at this comment. Hopefully it at least gets you going on the right direction:https://rails.lighthouseapp.com/projects/8994/tickets/3743-scriptplugin-install-gitwhatever-does-n...
I want to use the Typus plugin in my rails application, but i can't install it.$ script/plugin install git://github.com/fesplugas/typus.git Initialized empty Git repository in /...../vendor/plugins/typus/.git/ $ script/generate typus Couldn't find 'typus' generator $ ls -al vendor/plugins/ total 0 drwxr-xr-x 2 *** ...
Can't import Rails plugin from GitHub
3 Your process role will need IAM permission, either at the role or at the user level, depending on your implementation. Assuming you want the process to create and have all permisions to the bucket, you would need something like this: { "Statement": [ { "Acti...
I'm trying to create a serverless project which deploys a CloudFormation and as a part of that it tries to create an S3 bucket. But this fails due to following error: 15:23:25 UTC+0550 CREATE_FAILED AWS::S3::Bucket ServerlessDeploymentBucket API: s3:CreateBucket Access Denied 15:23:24 UTC+0550 CREATE_IN_PR...
S3 create bucket fails