Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Running your pipelines using the Docker executor means that your jobs will run in a Docker container, but not that you will be able to execute docker commands. If you need to run docker commands inside a GitLab CI job (read "inside a container") you will need Docker-in-Docker (often abbreviated DinD). It is a vast top...
I'm trying to create a CI/CD Pipeline for a simple java/maven project. The runner that I'm using is a docker runner. I'm using a dockerfile to create a container which installs maven/java/etc.. and in this container the program should be tested. Sorry for the question but I am new to CI/CD Pipelines in GitLab. GitHub ...
GitLab CI docker build - docker: not found - exit code 127
You need to configurekubectlby defining a configuration file.Since you are usingkopsyou can use the instructions they're giving you here:https://github.com/kubernetes/kops/blob/master/docs/kubectl.mdexport KOPS_STATE_STORE=s3://<somes3bucket> NAME=<kubernetes.mydomain.com> /path/to/kops export kubecfg ${NAME}You need t...
Lets say I have two computers; A and B. I created a kubernetes cluster using kops on AWS from computer A. How do I access the API of that cluster (like I dokubectl get nodes, it gives me the nodes of that cluster) using computer B?
Accessing API of a kubernetes cluster from a different computer
When you create a new job thecrondaemon call the functionjob_add(job.c), this function alloc the memory to the job and add it to the tail of the job list. The job is allocated on the heap, so theorically you're limited just by the RAM installed on your machine.Some notes from the CRON code:The job structure:typedef str...
Alright, I'm thinking of creating a webscript that depends on cronjob..I'm wondering, would it ever make any server damages for the amount of crontabs ?lets say i have 50 crontabs to be done everyday, would it ever hurt the server ? if no, what's the max amount of crontabs to be added in a linux server @ 512MB memory
What is cron job's server usage?
From this link, it seems that it has nothing to do with vscode and that you have to update your credentials saved in git.
I am having a hard time syncing vs code with github. A while back I signed up for github with one username and password and synced vs code with github (although I'm not sure it worked properly back then either). Today, though, I needed to start a new github account, which I did. However, when I tried to push changes...
Can't Sync Github with Visual Studio
Adding the following lines to configuration helps:cloud.aws.region.static=my region cloud.aws.stack.auto=false spring.autoconfigure.exclude=org.springframework.cloud.aws.autoconfigure.metrics.CloudWatchExportAutoConfigurationSo Spring uses AWS default chain but only for credentials. AWS SDK uses it for region and other...
I need to run Spring Boot based app locally. It uses spring-cloud-starter-aws dependency.The problem is that it tries to connect to EC2 metadata service always. Setting "cloud.aws.*" properties doesn't help.I expect that default AWS credentials chain will be used, credentials and region will be read from one of AWS pre...
How to run the app with spring-cloud-starter-aws locally?
find / -name ".htaccess" -printReplace/with the root folder you like to start searching, in case you don't want to search the whole file system.Wikipedia has an article aboutfind, which also links to its man page.ShareFolloweditedNov 15, 2009 at 22:16answeredNov 15, 2009 at 22:09bluebrotherbluebrother8,71611 gold badge...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
Find all htaccess files on server [closed]
35 Try to use from_iso8601_timestamp. Please visit below address to learn more about timestamp related functions: https://docs.starburstdata.com/latest/functions/datetime.html presto:tiny> select from_iso8601_timestamp('2018-03-27T00:20:00.855556Z'); _col0 ---...
I want to convert datatype of string (eg : '2018-03-27T00:20:00.855556Z' ) into timestamp (eg : '2018-03-27 00:20:00'). Actually I execute the query in Athena : select * from tb_name where elb_status_code like '5%%' AND date between DATE_ADD('hour',-2,NOW()) AND NOW(); But I got error : SYNTAX_ERROR: line 1:100: C...
How to convert string into timestamp in Presto (Athena)?
It's probably because the mysql user doesn't have permission to access the volume. But there's no need to do it this way. Just use the mysql image to create the volume, then all the permissions will be correct i.e: docker run --name data-container dockerfile/mysql echo "MySQL data container" docker run -d --name db -...
I'm trying to create a mysql container, that can use a "volume-from" a data-only container.I use dockerfile/mysql, and the data-only volume is from the Dockerfile : FROM busybox VOLUME /var/lib/mysql CMD ["true"] I can start a simple mysql daemon with docker run -d dockerfile/mysql, but when connected with a data-onl...
Can't create a docker mysql with data-only container
0 For each file that is being stored to the file system, you have to add "Do not backup" attribute. See this answer: Adding the "Do Not Backup" attribute to a folder hierarchy in iOS 5.0.1. To check the system version you can call [[UIDevice currentDevice] systemVersion],...
My app needs to download a decent amount of contents from a server to be able to be functional. Apple guidelines about data storage mentions that this kind of data, "needed-to-work-but-easily-refetchable" shouldn't be included in iCloud/iTunes backups: fair enough. The tricky part is that the code to prevent a directo...
How should I prevent files from being backed up to iCloud and iTunes on iOS 5.0?
A little late but I'm having nearly the same issue. The problem with thememoryLimitsetting on processModel is that it just seems to have no effect despite being documented as such.percentagePhysicalMemoryUsedLimitsimilarly looks like it should do something but has no effect.privateBytesLimit="20000000000"doeswork thoug...
Pardon if this is more serverfault vs. stackoverflow. It seems to be on the border.We have an application that caches a large amount of product data for an e-commerce application using ASP.NET caching. This is a dictionary object with 65K elements, and our calculations put the object's size at ~10GB.Problem:The amoun...
How can I exceed the 60% Memory Limit of IIS7 in ASP.NET Caching application
It is difficult to provide fixed range of IP Address in a Cloud Environment. The recommendation is to make whitelist domain like *.api.here.com or *hereapi.com in order to avoid dependency on IPs. Please take a look at about Whitelist setting.https://developer.here.com/blog/how-to-whitelist-domain-names
I'm trying to open our firewall to access the HERE GeocodeAPI but need the IP address range & port info. Does anyone know how to get this? Tried the HERE support team who were not able to provide it.Endpoint -https://geocoder.api.here.com/6.2/geocode.xml
Firewall Request for the HERE Geocode API (v6.2)
To answer your original question specifically, doingadd https://the_girhub_clone_urlwill add a package directly from GitHub.
I am getting anUnsatisfiable requirementswhile importing the latest github release of theGeostatspackage in Julia (Editor - Atom). TO avoid any clashes between the packages, I am using virtual environment.(Virtualenv) pkg> add https://github.com/JuliaEarth/GeoStats.jl.git Cloning git-repo `https://github.com/JuliaE...
How to add a package directly from github to Julia?
Look at docker events - there is an event for container 'die'. There is also an http interface to get the same information programmatically - see here You may want to do a web search for 'docker orchestration' - many projects springing up to manage multiple containers in the way you describe.
I am running multiple named docker containers (200+) on my VM Host. I have a manager script/code that is supposed to manage the containers from the host. I would like to know if there is any event-based mechanism to get notified when a container stops/fails. So that I can restart the stopped container. One solution I ...
How to programmatically monitor if a docker container exited?
POD_NAME=`kubectl get pod -n webide-system | grep app3 | sed 's/ .*//'` kubectl port-forward pods/$POD_NAME 8000:8000 -n web
I want to create a script that will runport-forwardingfor a pod automatically, for specific pod name(app3, I've multiple apps in this namespace and I need to run just forapp3) when I run this script.e.g.kubectl port-forward pods/app3-86499b66d-dfwf7 8000:8000 -n webI've started withkubectl get pod -n webide-system | ...
Script for running port-forward automatically
I was finally able to get a Go application to deploy with Elastic Beanstalk using theeb client. There are a few things that EB requires:The name of your main file should beapplication.go.Make sure your app is listening on port 5000.You'll need a Procfile in the main root withweb: bin/applicationYou'll need a Buildfile ...
I'm trying to deploy my go restful server program to EC2 Linux using Elastic Beanstalk. The document says that I need to create a Procfile at the root. So I did. Here are the steps:Build my go program myapp.go to using$ go build -o myapp -i myapp.goCreate a Procfile with exact name at the root withweb: myappZip up the ...
Elastic Beanstalk Procfile for go
The easiest way to find out which attributes are missing is usingecs-cli check-attributes.
I have created a ECS Service, which is not able to run any tasks in the EC2 containers. I keep getting this message under the "Events" tab for Service.service QA-SVC was unable to place a task because no container instance met all of its requirements. The closest matching container-instance f84f8418-2b63-4d02-ac5f-2ee3...
ECS Error: "The closest matching container-instance is missing an attribute required by your task"
After posting in the JetBrains forums, I was pointed to ablog that answers my question.TL;DR: my approach of using feature branches does not work with GitHub's workflow. Instead, Forks and Pull Requests should be used. The blog referenced shows how you can use Team City to trigger off of a Pull Request. Simply add+:...
We are using a private GitHub Organization as version control. When a task is assigned to a developer, they fork the primary repository, make their code changes, and submit a pull request to have the changes merged into the master branch of the primary repository.We are also using TeamCity for CI. It is currently con...
TeamCity Multiple VCS Roots
There's no need to involve PHP in the database backup. You just need a script that usesmysqldumpto backup the database, andsetup a CRON jobto periodically execute the script:mysqldump db_name > backup-file.sql...will backup your database to a file, by redirecting the output from the mysqldump to the specified file nam...
I have a pretty large db in MySql, and I need to take backups of it every day or so.I need to be able to take backups from any computer, so therefore I thought about making a php script to do this and put this php script online (offcourse with password protection and authorization etc so that only I can access it).I wo...
Backup MySql database with PHP
2 on: issues: types: [closed] - run: echo ${{ github.event.issue.body }} GitHub actions documentation Share Follow answered Apr 27, 2021 at 5:35 Nathan MillsNathan Mills 2,27322 g...
I know if event_type is issue_comment, you can do like below. on: issue_comment: types: [created, edited] # then, both works - run: echo ${{ github.event.comment.body }} - run: echo ${{ github.event.changes.body.from }} However, I would love to get body when event_type is [Issues: closed].
Github Action: how to get Issue Body when [issues: closed]?
we did have the same issue within our project, and sonar allows you to define exclusions for rules and files inAdministration -> Congifuration -> Analysis Scope.you will find there a section calledIgnore issues on Multiple Criteriaand there you can enter the rule and a "file pattern" to exclude files from this rule.lik...
I am using combineReducer to combine reducers and reducer like thisconst todo = (state = {}, action) => { switch (action.type) { //... case 'TOGGLE_TODO': if (state.id !== action.id) { return state } return Object.assign({}, state, { completed: !state.completed }) ...
sonar code smell for reducer used in combineReducer
Youhidethe containers folder/myappby a volume that you mount from your local folder..You need to make sure that the required files are inside the local folder when you want to mount it. When you do not mount that folder the files would be available on your image.The effect is similar to a Linux system: when you have fi...
I'm trying to run my Rails app in production locally as part of platform migration. I'm using Docker with Docker Compose.I've ran into issues withrake assets:precompile. It look as if the docker deletes the generated files during build.Here's myDockerfileFROM ruby:2.2.2 RUN apt-get update -qq && apt-get install -y buil...
Rake task seems not to write files in a Docker container
library(rvest) read_html("https://github.com/tidyverse/ggplot2") %>% html_nodes(".user-mention") %>% html_text() # [1] "thomasp85" But if you are trying to grab information from multiple repos, you may want to consider using the official GitHub REST API and/or this lightweight R package client.
Any html whizzes out there able to extract the text for an element on this link: https://github.com/tidyverse/ggplot2 The element text required is Am currently using rvest in r. Have tried xpath, css etc but just unable to extract the user name. Quite happy to take a link containing the name and cleanse the text usin...
Scraping Github commit author element
docker logsjust pipes youstderr/stdout, whiledocker attachattachesstdin/out/errandproxies signals.For example, the docs fordocker container attachstatesYou can detach from the container again (and leave it running) with CTRL-p CTRL-q (for a quiet exit), or CTRL-c which will send a SIGKILL to the container, or CTRL-\ to...
They both allow you to connect to thestdout/stderrof a running container. In particulardocker logs --followseems to work similarly todocker attach.Is one command an obsolete version of the other, or are there significant differences?
What is the difference between "docker logs" and "docker attach"?
Grafana generates a regex for you when youuse the variable in queries.I assume you have a variable$hostdefined by collecting the label values. Ex:label_values(node_load1, instance)Then simply use the request:node_load1{instance=~"$host"}
We have a situation where we need to select the multiple values (instances/servers) from grafana variable field, and multiple values needs to passed to the Prometheus query using some regex, so that i can see selected hosts metrics in single graph. but i am not able to make it work. Can someone please help me with this...
multiple values from grafana variable in prometheus query
1 @TheKojuEffect answered this one for me here: Why Mylyn is not getting issues from GitHub? Basically, if you select more than one label in your query in Eclipse, the query will only pull the issues with ALL of those labels (Logical AND, as opposed to the OR that I was exp...
So I've recently started using Mylyn at my company, love it personally and works great with Jira. However now I'm trying to get it working on Github for personal projects that I work on with several other people. I'm using Eclipse Juno with the Github connector and added the repository information. When I go creat...
Github Issues as Tasks in Mylyn ( Push task works, pull issues(Tasks) doesn't )
No... the ordering in the memory layout is guaranteed by the Standard, although there can be padding between members too (always included in the sizeof result, but that does mean hacky code like you've described may want to use an explicit pragma to pack data members or use offsetof to calculate the range of offsets t...
Consider the following C++ class: class MyClass { TypeA a; TypeB b; TypeC c; }; The compiler I use creates representations of this class in a way that the order of the members in memory is the same order I used in the class definition. I recently encountered a program where this fact was exploited to init...
Can the memory layout of a C++ class be influenced by address space layout randomization
Firstly you need to haveread:writeaccess topackageson your Personal Access Token (PAT). That should solve your problem.This works very well with your private repositories. However, for those working with organization repositories and having Single Sign-On (SSO) enforced, this mightnot be sufficient. The token must be e...
I am trying to deploy my artifact as a packaged to Github Packages. On clean deploy I get[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project cardgame: Failed to deploy artifacts: Could not transfer artifact org.moderatelycomfortablechair:cardgame:jar:0.0.1-...
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy Github Packages
Envers looks for annotations in the same place where Hibernate annotations are. So if you have Hibernate mappings on fields, Envers will look at fields.If you are using xml configuration, then most probably Envers is using the default method for searching for annotations, that is, on getters/setters.
On an Envers Audited class I am excluding a field by putting the @NotAudited annotation but Envers ignores my annotation, it only work on getter methods not on the field level.Can I configure so I can place my annotations on field level?
Hibernate Envers @NotAudited annotation
I could solve it like thiskubectl get pods -n dev -o name | xargs -I{} sh -c 'kubectl -n dev annotate "$1" backup.velero.io/backup-volumes=$(kubectl get "$1" -n dev -o json | jq -r .spec.volumes[].name | paste -sd, -) --overwrite' - {}
I have a set of pods and they have volumes. I want to annotate each pod withbackup.velero.io/backup-volumes=<volume1 of that pod>,<volume2 of that pod>I have tried to run a command like thiskubectl get pods -n dev -o name | \ xargs -I{} kubectl -n dev annotate {} backup.velero.io/backup-volumes=$(bash -c 'kubectl get {...
Correctly annotating pods based on the volumes attached
Following the instructions to thisLinkedIn article, adding a badge requires to insert something like this into your page:<script src="https://platform.linkedin.com/badges/js/profile.js" async defer type="text/javascript"></script> <div class="badge-base LI-profile-badge" data-locale="en_US" data-size="medium" data-...
How can I properly insert a LinkedIn badge to my GitHub-hosted Jekyll site? I use the jekyll-theme-minimal theme.
How can I add a LinkedIn badge to a Jekyll page?
yes, we use Envoy to create mTLS tunnels between networksSeehttps://www.youtube.com/watch?v=nWKu7ThNKwM&list=PLHsuXkXI4xdjGlGkCBdxIAmkzfWXqsUrO&index=3
For a hybrid-cloud use-case we are looking into the suitability of EnvoyProxy to act as a solution to move data across an on-premise firewall. The intended setup is as follows:App A is located in an on premise network with no direct outbound or inbound Internet connectionApp B is located on the cloudAn envoy proxy (PC)...
Use Envoy to setup a tunnel between networks
Use different Grafana approach, e.g:https://play.grafana.org/dashboards?query=myDashboard&search=open
I would like to generate Grafana URLs with a predefined search of a dashboard name.Something likehttps://play.grafana.org/search=open&query=myDashboardleading to the search result page with all dashboard containing this name.Is this possible ?
Grafana dashboard search from URL
The problem is that you're trying to fetch non-secure (http) content from a secure (https) site, which violates the site's Content-Security-Policy (CSP). This is an insecure behavior as far as modern browsers are concerned. From MDN: The HTTP Content-Security-Policy response header allows web site administrators to c...
So I deployed all of my React apps that are using an API. I am having problems sending this api and something block them and so my apps aren't working. Note: all of my requests are cors so there is no problem with them. github block my request and this is link to the project in picture news-blog
API Request from GitHub pages doesn't work ("mixed block")
I'm not entirely sure I understood your question but that may very well be my reading comprehension :) In any case here's a few thoughts that popped up while reading this (again not sure what you're trying to accomplish)Option 1: maybe what you're looking for is to scale down and back up, i.e. scale your deployment to ...
I've got a local deployment system that is mirroring our production system. Both are deployed by calling kubectl apply -f deployments-and-services.yamlI'm tagging all builds with the current git hash, which means that for clean deploys to GKE, all the services have a new docker image tag which means that apply will res...
Is there a way to make kubectl apply restart deployments whose image tag has not changed?
One way to do it would be to extract that single file tostdoutand redirect it to the file of your choice:cpio -i --to-stdout sub1/sub2/example.php < backup.cpio > new_filename.php
I am trying to copy a single file from a .cpio file, to a different directory rather than the tree inside it. I am trully sure it is possible, my teacher did it.I have tried this:# cpio -i -F backup.cpio sub1/sub2/example.phpBut that doesn't extract the file example where I want it to be extracted. I tried adding a thi...
Copy a certain file from a CPIO file to a different directory
There is a module calledHttpHeadersMoreModulethat gives you more control over headers. It does not come with Nginx and requires additional installation. With it, you can do something like this:location ... { more_set_headers "Server: my_server"; }That will "set the Server output header to the custom value for any sta...
I want to add a custom header for the response received from the server behind nginx.Whileadd_headerworks for nginx-processed responses, it does nothing when theproxy_passis used.
How to add a response header on nginx when using proxy_pass?
I would advise you to follow1to create a HTTPS Load Balancer with the backend service2. Once you create that, you can enable CDN3.Regarding the errors, Make sure that your backend instance is healthy and supports HTTP/2 protocol. You can verify this by testing connectivity to the backend instance using HTTP/2.After you...
I am usingWordPress Certified by Bitnami and Automattic, and one VM Instance running in Google Cloud Compute Engine. I configured afree SSL certificate from Let's Encryptfor my website and also configured theCertbot Auto-Renewal script.I tried using Cloudflare and I was receiving 5xx errors sometimes, mostly 522 timeou...
502 Server Error after configuring the Load Balancer in Google Cloud Platform
This is normal behaviour. Wordpress crons are not server crons, they depend of PHP to be executed, so it'll run only if someone visit your website.Fromwp_schedule_eventdocumentation:The action will trigger when someone visits your WordPress site, if the scheduled time has passed.You'll need a server cron if you want ...
In wordpress, I have worked to create a cron job.Currently, The Cron job displays the logs only when somebody visits the page. But, i want it to run without any page visit. I know that can be done. But how , that is what i dont know. Please guide me friends. I have used the function wp_scheduled_event
Created a cron job in wordpress But the logs are displayed only when someone visits the page
You can cache the query results usingActiveSupport's cache store, which can by backed by a memory store such as memcached, or a database store if you provide your own implementation. Note that you'll want to use a database store if the cache is shared across multiple Ruby processes which will be the case if you're depl...
I want to cache query results so that the same results are fetched "for more than one request" till i invalidate the cache. For instance, I want to render a sidebar which has all the pages of a book, much like the index of a book. As i want to show it on every page of the book, I have to load it on every request. I can...
How to cache queries in Rails across multiple requests
PostgreSQL recommends using pg_dump for backups, as a file system (or VM) backup requires the database to be shut down (and has other drawbacks):http://www.postgresql.org/docs/8.1/static/backup-file.htmlEdit: Also, a pg_dump backup will be significantly smaller than a filesystem dump of the same database.
We're serving a Django/Postgres site running on a VM hypervisor. We're now trying to figure out our back up strategy and have two probable options:Back up the DB directly usingpg_dumpBack up the VM directly by copying the VM imageI'm with the latter as I think, I could simply back up everything that has to do with the ...
Backing up the DB vs. backing up the VM
In 2020 it`s still an issue in react native (as Dishant Walia mentioned). Now best solution from github is:add a query string after url, works for both platform<Image style={styles.drawerAccountImg} source={uri: this.state.photoURL + '?' + new Date()} />
i am trying to use a random image generator for a demo app i am creating.i have tried the endpoints:http://thecatapi.com/api/images/get?format=src&type=gif&size=smallhttp://junglebiscuit.com/images/random/rand_image.plbut when i add a list of images to my page with:<View> <Image source={{ uri: 'http://theca...
React-Native Disable Image Cache on Android
The short answer is yes. You have 3 options depending on what you want to do. They are:Use theFF.au3and theChrome.au3UDFs plus other AutoIt automations. (Hard)UseiUIAutomationplus other AutoIt automations. (A little less hard)If you just need to get some certificate info you can use thisscript. (pretty easy)If you go w...
Is it possible to accept SSL Certificates in Chrome/Firefox using AutoIT tool?https://www.autoitscript.com/site/autoit/Thanks!
SSL Certs acceptance using AutoIT
The only way I was able to stream video onhttpsis by installing the server certificate on the android device. Note that I took this solution instead of signing the server certificate from public authority, because my app will be doing calls on a local domain and will be used locally not available on the store.ShareFoll...
I'm building a cordova app where I have to stream video, using html 5 tag, from a secure resource over https, but the video won't play. I came to a conclusion where I should trust the server certificate, so I tried so many approaches and plugins to trust all certificates and other hacks inCordovaWebViewClientatonReceiv...
How to trust a certificate in Cordova application for Android?
Looks like in both cases you could craft the label name from the last 2 digits of the initial label value:https://regex101.com/r/rufmke/1So you might want to uselabel_replace():label_replace(kubelet_runtime_operations_total, "instanceNew", "devops-test-srv$1", "instance", ".*(\\d\\d)$")--->kubelet_runtime_operations_to...
This querylabel_values(kubelet_runtime_operations_total{job="kubelet", metrics_path="/metrics"}, instance)gives label as:100.130.101.101 100.130.101.102 100.130.101.103another different query gives nodes:devops-test-srv01 devops-test-srv02 devops-test-srv03I tried custom values like this100.130.101.101 : devops-test-sr...
How to make one label value refer another label values in grafana
Yes, you can manually accept certain commits using git-cherry-pick and then close the pull request. https://help.github.com/articles/using-pull-requests
Say you've got a user who made a few commits and rolled them into one pull request. You want to accept one of the commits, but reject the others. Is this possible with GitHub?
GitHub: Accept Pull Request, But Only Some Commits
Usehttp://localhost:8501/instead ofhttp://172.17.0.3:8501That worked for me...
I am trying to integrate Streamlit with Docker. Means, I am trying to make a container where the python code is using streamlit.The app.py is:import streamlit as st st.title("Hello Streamlit") st.header("Calculate % Growth") initial = st.number_input("Initial investment in USD") yr = st.number_input("Growth Period in ...
Integrating streamlit with Docker not working
The flow: User go to www.myfrontend.tech/auth/microsoft (forwarded to https://mybackend.io/front/auth/microsoft on the backend, since it matches location ~ /auth/(.*) on your nginx configuration) It will redirect to Microsoft auth page After user clicked authorize, it will redirected to the callback URL on your Micro...
I have a frontend www.myfrontend.tech and a backend www.mybackend.io. My previous developer managed to realize third-party authentications (like Microsoft) with PassportJS. But when looking at his code, I could not understand the flow and how the code enables this. Here is the code: In the .conf of nginx of www.myfron...
How does this code enable the redirection flow?
The solution is inLocal HistoryandTimeline View. It does not need version control. VSCode internally save file in.config/code/Backupsin different scenarios.If you want to go back to one of the previous states of a file, you have to useTimeline Viewto check the file'sLocal History. When you find the file, right click on...
TL;DR: I have saved a file, I need the previous version. What do I do?I had had a lot of code, cut them (ctrl+x), and wanted to paste them somewhere else that VS code crashed. I opened it again, copy some other lines, and BOOM! I can't access the first cut lines. Is there any way I can have them back?Notes:I didn't com...
restore previous version of a saved file in vscode
Usegit pullto pull all of the commits in repo B into a new branch in repo A, then usegit rebaseto replay that branch on top of an existing branch.
I have starter a repo by checking out a public repo and committing the code, instead of starting of a fork - so my "fork" doesn't include the history of the original (actually the reason for this is that this is kinda of a framework and this were the instructions). Now I realised I want to still get bugfixes from upstr...
How to "prepend" repo history in git
Had to change thecomponent.yamlnow it worksChanged syntax for command definition and therefore also needed to find out how to pass parameters:implementation: container: image: continuumio/anaconda3:2020.07 command: - sh - -ec - | host=$0 database=$1 user=$2 password=$3 ...
I'm trying to create a Kubeflow Pipeline component. My command works fine in a local Docker container, but within a Pod in a Kubeflow Pipeline it terminates with:ipython /tmp/input-postgresql.ipynb: 1: ipython /tmp/input-postgresql.ipynb: Syntax error: end of file unexpectedTo reproduce on Docker:docker run -it continu...
ipython terminates with 'Syntax error: end of file unexpected' inside Kubeflow Pod, not happening in Docker container
Try this , prevent or allow the server to display the index of the files in the folders of your web server.You can put a .htaccess file in each of your directory with this codeOptions All -Indexes
I'm trying to hide the directory listing of my website. I'm currently working on a website hosted by 'hostinger'. I know that i should change something in an apache-related file, but they(hostinger) say that i cannot change that. cuz im using a 'shared' hosting service. so the only way is to add some code in an .htacce...
How to hide directory listing of my website (a shared hosting)?
You can always check out any given state by using a commit hash.For instance, by looking at the log, you identified that 233ab4ef was the state you were interested in: issue agit checkout 233ab4efto check out that state.Another way to achieve this is by usinggit checkout @{14.days.ago}
I have an Amazon EC2 machine. I would like to clone an older version of github repo on this machine. Normally I use git clonehttps://linktomyrepo.gitHow can I clone an older version, say an update from 14 days ago? I can see the exact version I need in the commit history of repository, but do not know how to clone it o...
Cloning an older version of github repo
No, you can't. Template is just a content of your stack, it doesn't set it's metainfo (like name, deployment region etc.). Note, that you can use same template for multiple stacks, or even sub-stacks.
Is it possible to statically specify AWS::StackName inside a cloudformation template? Or can this only be specified as a parameter when you run the template? As far as I understand, this value can only be read via pseudo parameters, not set: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-paramet...
Is it possible to statically specify AWS::StackName inside a cloudformation template?
I think you missed the only correct option. The syntax for ports is: {host : container} so in your case 8081:8080 should technically work. Assuming of course that airflow runs on port 8080 and has that one exposed (which it seems according to the dockerfile).
I have airflow running locally on port 8080 with the following docker-compose.yaml: version: '3.7' services: postgres: image: postgres:9.6 environment: - POSTGRES_USER=airflow - POSTGRES_PASSWORD=airflow - POSTGRES_DB=airflow logging: options:...
Airflow change port in docker compose
This problem is related toGolang Command API. I changed the livenessProbe as belowlivenessProbe: exec: command: - /bin/sh - -c - /home/test/check.sh
A livenessProbe (extracted froman example) below is working well.livenessProbe: exec: command: - cat - /tmp/healthyBut, my livenessProbe is not working.(pod is continually restarted). YAML is belowapiVersion: v1 kind: Pod metadata: labels: test: liveness-test name: liveness spec: containers: -...
How to define a liveness command
I suspect the/api/autis due to some UI truncation, just expand the 'Add SonarQube Server' window to verify that.You are trying to connect to an HTTPS URL, is the server certificate trusted by Java ? Usekeytoolto do that, as explained inthis post.
I'm trying to connect my Eclipse IDE to my company's sonar server instance, but I can't figure out why it doesn't work.When I access the server (https://mycompany.com/sonar, for example purposes) through the browser, it works perfectly. In Eclipse, I added the url to the servers section of SonarQube and the same creden...
Cannot connect to SonarQube from Eclipse
You can use sonarqube Web API in your script to set the quality gate for your project.Note: You need the "Administer Quality Gate" permission to set the qualitygate.First, you need to get the id of the quality gate that you want to set. You can use the web API to get the list of quality gate available and their corresp...
How to assign Quality Gate dynamically to project from the script. [SonarQube 6.5]I tried with 'sonar.qualitygate' but got below warning.Thanks in advance.[WARNING] Property 'sonar.qualitygate' is not supported any more. It will be ignored.
How to assign Quality Gate dynamically to project from the script [SonarQube 6.5]?
I suspect a self-signed cert would work for Authorize.net's purposes, but the browser will probably throw a flag since.Seeing as this is an old post, I'm wondering if you ever tested it to find out definitively...
If I set test mode in Authorize.net account on their website, everything is OK. But if I set live mode, I get:There has been an error processing your credit card Please try again and if problems persist, please try another payment method.I suspected SSL certificate, shall I have purchased SSL certificate, or I can se...
Can I test authorize.net module for oscommerce without purchased SSL certificate
Operations onDatasets such ascollecttakerequire moving all the data into the application's driver process, and doing so on a very large dataset can crash the driver process with OutOfMemoryError.You increasespark.driver.memorywhen you collect large volumes to the driver.As perHigh Performance Spark by Holden Karau and ...
I know how to calculate executor cores and memory.But Can anyone explain on what basis spark.driver.memory is calculated ?
Spark Driver Memory calculation
Fixed it with these simpler steps ;)Reset Shared Drives in Docker for Windows. (Re-entering your credentials if needed by using the reset credentials link)Clean your VS solution and rebuildDebug
I was perfectly running an ASP.NET Core project in a docker container, but then I created another project in the same solution, which was referenced by the first one.When building, VS 2017 didn't complain. When debugging, VS says:"Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))"Then I tried creating a ...
Visual Studio 2017 HRESULT: 0x80004004
When you configure kibana withelasticsearch.url: "http://my-es-domain-xxxxxxxxxxxx.us-west-2.es.amazonaws.com‌​"it always look for es running on9200port by default.If you are running es on80port then explicitly mention that in configuration like this:elasticsearch.url: "http://my-es-domain-xxxxxxxxxxxx.us-west-2.es.am...
I deployed an ES service 5.1 over AWS. The access policy is restricted to a unique IP. This public IP belongs to a EC2 instance (red hat).At the EC2 instance, I installed kibana 5.1.2 using yum and I configured the kibana.yml as follows:server.host: "ec2-x-x-x-x.us-west-2.compute.amazonaws.com" server.name: "my-kibana"...
How to setup an own Kibana client over aws ES service
Seem you can usehttps://github.com/prometheus/blackbox_exporterorhttps://github.com/czerwonk/ping_exporterThen create alert rules based on the exported metricsExample prometheus rules using blackbox exporterhttps://awesome-prometheus-alerts.grep.to/rules#blackbox-1
I have the below targets configured on my prometheus server. All servers are configured in Target1.yml file and Router details are stored in Router.yml file. Each site has unique 4 digit numbers and in this example it is "1234". So like this we have 1000's of sites(in total 10005 nodes)*. Whenever a router goes down or...
Prometheus Trigger Single Alert if set of nodes are down
You have to actually declare that the containers should be attached to the networks. version: '2' services: web: # Each service needs to declare what networks it attaches to # The default is to only attach to "default" # If anything is explicitly listed then "default" is not used networks: - db...
I have two different pre-existing networks created by two separated docker-compose operations. The first one is Kafka and the second one is MySQL DB. The third container is a Kafka consumer, which has to have access to the DB and Kafka topic. So I expect to connect them in another docker-compose something like this so...
Connect to multiple pre-existing external networks in docker
We were able to connect our build pipelines in ADO to DigiCert Key Locker. In our case this was the most straightforward approach.Articleabout private keys / .pfx files no longer being directly accessible.Connect Azure Devops to Key Locker
Are .pfx files valid for code signing in 2024? It appears we can no longer use a code signing certificate (that we just purchased from DigiCert) as a .pfx file since we cannot gain access to the private key.We have several products with corresponding build pipelines that currently rely on an uploaded .pfx file with a p...
What is the most streamlined way to implement code signing in Azure DevOps build pipelines in 2024?
The word size alignment is non-negotiable in CUDA. However, if you're willing to take the performance hit for some reason, you could pack your data into char * and then just write your own custom storage function, e.g. __inline __device__ void Assign(int val, char * arr, int len) { for (int idx = 0; idx < len; idx...
I have a problem using a buffer of bytes in global memory to store some integer of various size (8 bits, 16 bits, 32 bits, 64 bits). If i store an integer at an pointer value non multiple of 4 bytes (for instance because i just stored a 8bit integer), the adress is rounded down, erasing the previous data. __global__ v...
Cuda : use the global memory to store contiguous various size datas
Operating system error code 3(The system cannot find the path specified.).You should use a local directory on the remote server to save the backup(of course the user connected should have permission to reach that local directory)
I am trying to create a c# function that will backup and restore an mssql server 2005 db. I have tried almost everything on the net but I have no luck. On my local machine everything works perfect, but when I tried remotely I take the error:Operating system error 3... BACKUP DATABASE is terminating abnormally. Iam usin...
Remote MS Sql server backup and restore from C#
1 You need to have XQuartz installed on your Mac. You can get it here - http://xquartz.macosforge.org/landing/ Once you installed it, follow this procedure - Run X11 application (included with XQuartz) Open X11 Preferences and make sure "Allow connections..." is checked R...
I want to run odesk time tracker (a Qt4 app) which captures your screen and keystrokes for freelance work logging. But I don't trust it and want to sandbox it. On Linux, there are ways to run GUI items on docker container and forward X11 to Linux host. Can I do this on mac? The app will run on Linux container and wil...
How to share Mac screen to Linux docker container?
You can't put the URL alone in a cron rule. Use text-based browser likelynxorwgetin a cron rule:* * * * * wgethttp://mypage.comYou might wish to add some parameters forwgetorlynxso that it doesn't save outputs on server, instead just simulates the fetch. OR redirect output folder to/tmpor/dev/nullfor it to get wasted. ...
I basically have a normal php mail function script that is supposed to run every so often using a cron job, however some emails don't work when they actually work if I run the script manually.for example in my hoshing cron control panel I enter in domain.ca/pear/Mail/test_mail.phpam I not entering in the url correct? A...
problem sending out emails using a cron job
1 params.buildapp is false so it isn't building the apache container. The code only gets pulled from your repo when this container gets built. Share Follow answered Apr 30, 2019 at 10:41 Vl...
I am running a test suite using Jenkins and I have configured a job to do that. I have a pipeline script that is doing all the steps, but it seems that with the latest release on LIVE by adding a new button on the LIVE, my tests run a version of the code that does not have that button and it seems that it's not pullin...
Trying to run a test suite but Jenkins not pulling down the latest code
354 There are 2 parts to your question (give a man a fish, and teach him how to fish). Costs for EC2-Other include things such EBS, Data transfer, Load Balancers, etc. If you'd really want to check internally what you're being charged for, go to "Cost Explorer", select ...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
What is "EC2-Other" filter in "Cost Explorer" dashboard mean? [closed]
Merge the processes into a single script, run that script every minute with cron. If the time is not the start time exit the script, if it is let the script run and processes the event.// get your start time as normal $starttime = my_starttime_check_function(); // compare it to now if($starttime != date("H:i")){ ex...
I have aPHPbot that gathers data about a few events. Data structure looks like this:// event one [Date] => 11.07.2019 [Start] => 12:30 [Name] => ... [State] => ... // event two [Date] => 11.07.2019 [Start] => 15:00 [Name] => ... [State] => ...I'm running it once a day at00:00using acron jobto gather the starting hou...
Run a PHP bot at dynamic intervals
Unfortunately, parse doesn't offer an automated way to backup your data, because if your app is too large to backup with queries via the REST API, it's also likely going to take a long time to export from their side and consume a good chunk of resources. Allowing all apps to perform an export in this way, automaticall...
I recently had an issue with the free tier of Heroku Redis where our database got wiped due to "an incident" and there was no back-up of our data. I'm about to start using the free tier of Parse and was wondering if their free tier operates in a similar way? Thanks in advance J
Parse: data backed up on free tier?
Add aRewriteCond %{HTTP_HOST}to restrict your rule to main domain:RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC] RewriteCond %{REQUEST_URI} !^/website(/.*|)$ [NC] RewriteRule ^(.*)$ website/$1 [L]
I'm unfamiliar with .htaccess files so please give me the benefit of the doubt if what I have so far is completely incorrect.I cannot point my domain to a sub-folder with my current hosting company and have had to use an .htaccess file to do this. Below is what I have so far to point my domain to a "website" folder.The...
.htaccess redirect effecting sub-domains
Instead of pulling (fetch + merge), you can instead:reset again your feature branch towhat it was before the pull(trygit reset --hard ORIG_HEAD, or, if it is not working,git reflog+git reset --hard HEAD@{x}, withxbeing the number seen in reflog)try a rebase instead:git checkout feature git fetch git rebase origin/maste...
I have a created afeaturebranch frommaster.A week before, after completing myfeaturebranch work say a messageThis branch has conflicts with the base branchin my pull requestTo resolve these conflicting files, I didgit pull origin masterinto myfeaturebranch.Now I am seeing all the commits frommasteris pulled into my bra...
`git pull origin master` into my checkout feature branch
Unfortunately, limiting the size is out of the scope of the standard. You need always a vendor specific configuration, to do that.I am not happy about that myself and have use cases where I want to set the size limit inside the program and with a standard API. However, there are valid reasons leaving it out of the stan...
I am using JCache API to configure caches in my application that uses spring caching with Ehcache 3.cacheManager.createCache("users", new MutableConfiguration<String, User>() .setStoreByValue(false) .setManagementEnabled(true) .setStatisticsEnabled(true) ...
Limit cache size using JCache configuration API
I think that error from Nginx is indicating that the connection was closed early before it could complete sending the email. If you are sending emails via gmail, gmail sometimesblock the log-in(and sending of emails) from unidentified log-ins or "insecure apps" (that would be the log-in from the server hosting your dja...
I am following this tutorial from digital oceanHow To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 16.04Everything is working fine except when I try to send email using gmail it throws 502 bad gateway. nginx log file shows94 upstream prematurely closed connection while reading response header from upstrea...
Getting 502 error when I try to send email, server setup by django, postgres, nginx, gunicorn
Normally when you generate aMITMcertificate you're supplying a hostname or IP address of the system under test you're trying to record.I guess the requests targeting the system under test are recorded properly.But requests to 3rd-party services likeCDNs, fonts, whatever are not being recorded.First of all you should ne...
I am trying to record a flow in Jmeter, but its showing below error :Jmeter - 5.6.3Problem with SSL certificate for url for 'XXXX'? Ensure browser is set to accept the JMeter proxy cert: Remote host terminated the handshakeI have generated the Jmeter cert and also imported it to the firefox browser, few requests are g...
Problem with SSL certificate for url for 'XXXX'? Ensure browser is set to accept the JMeter proxy cert: Remote host terminated the handshake
Take a look athttps://docs.djangoproject.com/en/1.8/topics/testing/tools/#overriding-settingsYou can use decoratoroverride_settingsfrom django.test import TestCase, override_settings class MyTestCase(TestCase): @override_settings(CACHES=...) def test_something(self): ....ShareFollowansweredOct 1, 2015...
I'm usingDjango DummyCachein my tests, however, there are a few tests which relay on real caching so using fake caching is not good here.Is there a clean way to override the generalDjango settingsfor a certain module or scope? Preferably using aPython decorator.I'm usingDjangoversion1.8.4.
Override Django cache settings in tests
The answer was found here:Error 310. Too many redirects with nginx + rails 3I simply needed to change the config to the following:server { listen 443; ssl on; server_name new.usfamilytree.com; root /home/admin/railsapps/example-setup/public; passenger_enabled on; ssl_certificate /etc/nginx/ssl/2013/example...
I have an old rails 2.3 app that I'm in the process of moving to nginx+Passenger (from Apache+Passenger). Nginx is configured for SSL and appears to be functioning correctly, except I am getting getting stuck in a 302 redirect loop from my Rails app.The rails app thinks that the requests are not ssl (request.ssl? must ...
Too Many Redirects: passenger+nginx SSLRequirement
BASE_DIR will be the folder of the settings file, which generally is in a folder at the root. So likely you have a directory issue. If you can move the file directly into the same folder as the settings.py you can at least eliminate those variables. You won't see a container, its just binding a volume, which you shou...
I had sqlite database with some sort of tables on my localhost and i wanted to copy and paste that database to my server which runs on docker. I created paths like this: db_data: there is my sqlite database which i want to run in my django project. web: there is my whole django project in my docker-compose.yml i writ...
Django + Docker + SQLite3 How to mount database to the container?
How about just using a name that's not obvious and making it not findable with permissions? For example: xyz.com/secret/secretpageJJKS.htm and make sure anonymous users can't execute the secret folder but can read it or vice versa. The permissions of the folder always seem backwards to me.Albert
What would be the best way to block access to a webpage without requiring some form of username and password combination? Access would be limited to people I personally gave the information to bypass security measures to.No personal data is going to be stored, and it doesn't need to be overly security conscious, it's j...
Block access to a webpage without using a log in system
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^page_id=([0-9]*)&category=(.*)$ RewriteRule ^(.*)$ /%1/%2? [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END...
Can we rewrite WordPress page/ghijto show the contents of page/faq, when permalinks are already enabled?My page isexample.com?page_id=70&category=Footage. After enabling permalink it is showingexample.com/video-category?category=Footage. I want it to look likeexample.com/category/Footage.Any help in this will be apprec...
WordPress .htaccess not working for rewriterule
I did the same thing as you in my pipeline and it's working as expected, nothing is being repeated. I'm using 1.3 version of Parameter Separator PluginShareFollowansweredJul 19, 2023 at 8:21Vukasin VujadinovicVukasin Vujadinovic11this looks like a comment–sidharth vijayakumarJul 27, 2023 at 8:01Add a comment|
I am using declarative syntax "Jenkinsfile" pipeline syntax and want to separate my parameters into groups. I found articles that show I can use the separator plugin with something like:String sectionHeaderStyleCss = ' color: white; background: green; font-family: Roboto, sans-serif !important; padding: 5px; text-align...
Jenkins: separator parameter with declarative syntax pipeline (multibranch pipeline) job
Finally, I found the solution. When you use the docker as your frontend and backend apps, you should use this type of URL in your fetch request: http://[your conatainer name]:[your container port]/testapi/items/ Because in the docker concept, the localhost or any domain assigned to the localhost isn’t your machine; t...
I can run and get responses from these lines correctly. (in app/item/page.tsx): export default async function Page() { const res = await fetch('http://www.testdomain.test:8000/testapi/items/'); items = await res.json(); console.log(items); } But when adding an optional argument to fetch, like 'method': ex...
Next.js 14 app dir, Fetch API cause error when optional arguments set
8 The easiest is to choose the Remix App Server (which uses Express internally) or Express, then run remix build to build the app for production and run npm start to run the server. After that, it's a normal Node.js server so you can configure your NGINX to forward requests...
What config file I need to launch Remix application? It has no index.html file Steps to reproduce (https://remix.run/docs/en/v1/guides/deployment): npx create-remix@latest ? Where would you like to create your app? (./my-remix-app) ? Where do you want to deploy? Choose Remix if you're unsure, it's easy to change deplo...
How to deploy react Remix framework for production on nginx?
We were just faced with this issue, and found out that it's related to dotnet's and msbuild's reuse of nodes that were left running by a previous multi-threaded build.To avoid the problem, use either/nodereuse:falseor/nr:falseon your command line as the following:msbuild /m /nr:false myproject.proj msbuild /m /nodereu...
Good evening,I am using the .Net Core 2.0 version from herehttps://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuildon a 2.1 project in Jenkins with:withSonarQubeEnv('SonarQubeMain') { bat "dotnet ${globals.SONAR_QUBE_MSBUILD_PATH}\\SonarScanner.MSBuild.dll begin /k:\"${globals.SONAR_QUBE...
dotnet.exe locking SonarScanner.MSBuild.Common.dll
Using theelasticsearch-net-awspackage you should be able to set up the low level client like so:var httpConnection = new AwsHttpConnection("us-east-1"); // or whatever region you're using var pool = new SingleNodeConnectionPool(new Uri(TestConfig.Endpoint)); var config = new ConnectionConfiguration(pool, httpConnection...
I am very new to ElasticSearch, and have set up an AWS Lambda function in c# to take the content of S3 object(s) (which contain JSON data) with the hopes of posting them to ES to be searchable.I'm using the Elasticsearch.Net nuget library.In the documentation here -https://github.com/elastic/elasticsearch-netthere is s...
ElasticSearch.NET passing AWS Signature v4 in POST requests?
Change the MediaResponse.Cacheability setting in App_Config\Sitecore.config to Public:<setting name="MediaResponse.Cacheability" value="Public" />Once the setting is changed, the result as shown in Fiddler:FYI, other settings are:NoCache: nobody can cache the page.Private: only browsers can cache. it (but not shared pr...
Could you someone have experience configuring Etags in Sitecore 8.1? I do not see all images coming from Media library has response cache header ETag.I have verified in Most modern browsers chrome and Firefox Network Tab.Thanks Mala
How to configure Etags in Sitecore?
In .htaccess (in Apache at least):RewriteEngine On RewriteBase / RewriteRule ^images/(.*)$ http://www.yahoo.com/blah/$1 [R=302,L]
How do I set up an .htaccess file to redirect requests to another folder on another domain? I don't want the links to break, I just want them to go elsewhere. Say mysite.com/image.jpg would redirect to site2.com/images/image.jpg.
.htaccess Redirects
3 Just merge child1 into stable. child2 will not be affected by this. git checkout stable git merge child1 What you have to do is update your 'child2' with the changes of stable. 1) You can do this by either merge stable into child2 git checkout child2 git merge stable ...
I have 2 main branches in my git repository. master From master I created one more branch stable. I created a child branch from stable, say child1. I made the changes in child1 and pushed it to remote git repository. Since, we have a code review process that we follow. Meanwhile, the code in child1 was under review...
Merging branches in Git
In Kubernetes,nodePortis a mechanism to map a port on a pod's network interface out to a port on all nodes.The normal case, when you don't sayhostNetwork=trueis that each pod has its own "network namespace" - it has its own virtual network device with a unique IP address and it has alocalhostinterface on 127.0.0.1 that...
I encounter a issue: 1) declare hostNetwork=true for POD in a deployment, and create the deployment. 2) Declare a service with nodePort to the deployment podsI found the nodePort cannot be accessed by serviceClusterIP:nodePort in the host which the pod is not running on.While I remove hostnetwork=true, the serviceClust...
Kubenetes POD hostnetwork cause nodePort does not work
I've used a similar step to keep dev/test/QA databases 'zero-stepped' on a nightly basis for developers and QA folks to use.Documentation is the key - if you want to remove what Scott Hanselman calls 'bus factor' (i.e. the danger that the creator of the system will get hit by a bus and everything starts to suck).That s...
The backup and restore process of a large database or collection of databases on sql server is very important for disaster & recovery purposes. However, I have not found a robust solution that will guarantee the whole process is as efficient as possible, 100% reliable and easily maintainable and configurable accross m...
Database Backup/Restore Process
views/ is represented here as a nested git repo (meaning you have a .git/ subfolder inside the views folder). From its parent repo perspective (your repo), it is just a gitlink (a special entry in the index, representing the SHA1 of that nested repo) If you need its content, you need to: delete the gitlink (git rm --...
I am using git and uploading all of my files to github. The files that are located in the view/ folder that end in a .jade file extension are not getting uploaded to github. To go even further for what I did, I made sure the original source on my mac had the .jade files and they existed in the view/ directory (they ex...
git doesn't upload files in the view/*.jade folder in express.js
Thanks to comments from @DanMašek and @n.m.willseey'allonReddit it was unveiled that making these changes to operator_py() fixes the issue in the question: template <class Params> std::vector<std::shared_ptr<Obstacle>>& operator_py( std::vector<std::shared_ptr<Obstacle>> &obstacles, const Params &params ) ...
I am unable to return the input of a class method (input: specific instances of a seperate class) to Python. The binding compiles and I can use the resulting module in Python. The class method should however return the same instances as it admits (after some processing). The Obstacle class is used as the input. The Ob...
Pybind11 - Bound class method returns new class instance, rather than editing in-place
In order to get a sense of your of your ephemeral-storage, you may check the following steps:Menu>Monitoring>Metrics Explorer>Resource type: kubernetes nodeMetric: Ephemeral StorageAlso have a look at the graph in the followinglink. Ephemeral storage is backed by boot disk size so increasing boot disk size will give yo...
I have some microservices deployed on Google Kubernetes Engine composed of 3 "e2-medium" nodes with 10GB of disk each.Every time I perform a new deployment of the services I get the following load shedding event on the nodes:Stopping container alice The node was low on resource: ephemeral-storage. Container alice was ...
How increase GKE ephemeral storage?
You can use anotherbuilderofMountableFileclass, which takes themodeargument with a posix file mode value to change permission. For example, making the script executable only for the owner:... .withCopyFileToContainer(MountableFile.forClasspathResource("init.sh", 0744), "/docker-entrypoint-initaws.d/init.sh");0744is an ...
I'm trying to copy an executable initialization bash scriptinit.shto the Localstack Docker container created with Testcontainers (1.13.0) using the JUnit 5 module:@Container static LocalStackContainer localStack = new LocalStackContainer("0.10.0") .withServices(S3) .withCopyFileToContainer(MountableFile.forClasspat...
How to copy executable file to Docker container using Testcontainers
try this, it will work if sudo does not require password ( and it is possible ) )scp -v -r /var/spool/asterisk/monitor[email protected]:/home/test/audio && ssh[email protected]"sudo rm -f /var/spool/asterisk/monitor/*"
I have a simple script file to copy all files to a remote server and then delete them all. I could run this script by "user" manually, when i add into crontab (user), the first part, scp, works fine, but the rm part is always with failure. i wonder what i am missing or set up incorrectly, could somebody help me out wi...
Linux script is unable to delete files via crontab, but it works manually
6 Generally Docker containers cannot be done "within Java" because Docker serves to encapsulate the application, and "within Java" is the code being loaded after the JVM launches. The JVM is already running when it parses the class it will search for the main method. So en...
Is it true to say that to a high degree what is now done in docker containers can also be done in java with jvm if someone wanted to ? Besides being able to write an application in your own language and having much customisation flexibility does docker basically do what Java has been doing with its virtual machine for...
Docker container vs Java Virtual Machine
I would use the followings3 = boto3.resource('s3') bucket_tagging = s3.BucketTagging('bucket_name') tags = bucket_tagging.tag_set tags.append({'Key':'Owner', 'Value': owner}) Set_Tag = bucket_tagging.put(Tagging={'TagSet':tags})This gets the existing tags, adds a new one, and then puts them all back in.ShareFollowanswe...
I am using this function:s3 = boto3.resource('s3') bucket_tagging = s3.BucketTagging(bucket) Set_Tag = bucket_tagging.put(Tagging={'TagSet':[{'Key':'Owner', 'Value': owner}]})It is deleting the existing tags and I can see only one tag.
How to add tags to an S3 Bucket without deleting the existing tags using boto3?
I have done it using this query:sum(rate(a_sum[interval])) / sum(rate(a_count[interval]))ShareFollowansweredMay 18, 2022 at 13:01Mojtaba ArezoomandMojtaba Arezoomand2,28088 silver badges2727 bronze badgesAdd a comment|
I have a summary metric calledrider_filler_processing_message_time.It gives me percentiles of the latency.How can I get the average latency including all the percentiles?
Average of a summary metric prometheus