Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Yes, it would be consistent.
The concept of a 'client' is irrelevant because each API call is independent.
The us-east-1 region (previously known as US-Standard) previously did not have read-after-write consistency, but it is now provided in all regions.
|
Amazon documentation (http://docs.aws.amazon.com/AmazonS3/latest/dev/Introduction.html#ConsistencyModel) states:
"Amazon S3 provides read-after-write consistency for PUTS of new objects in your S3 bucket in all regions with one caveat."
Ignoring the caveat, this means that a client issuing a GET following a PUT for ... | What does read-after-write consistency really mean on new object PUT in S3? |
The link you posted is, sadly, the only real answer at this time (API Version 2012-08-10). PutItem may return items just before they were updated or none at all.
The ReturnValues parameter is used by several DynamoDB operations; however, PutItem does not recognize any values other than NONE or ALL_OLD.
In short, the... |
I am using nodeJS sdk to put the item to dynamoDB, The item is:
{
"eventId": date + '-' + eventName + '-' + eventPurpose,
"eventName": eventName,
"eventPurpose": eventPurpose,
"eventDates": eventDates,
"attendees": attendees
}
The present code for the putting the item in dynamoDB:
const params = {
... | How to return the inserted item in dynamoDB |
You can't point to cloudfront from your application load balanacer instead you can create behaviours or behavior groups in cloudfront to point to your load balancer.Just likeDefault (*) -> s3/xyz -> application load balancer | Hi I would like to use AWS application load balancer and create target group which should point default to my CloudFront distribution and based on the rule it will point to other apps. I could not find the resource to do it. Anyway have done such things.Our landing page is pointing to the CloudFront distribution(+AWS S... | Is it possible to use AWS application load balance with CloudFront distribution and EC2 as target group |
Are you able to clone the project?Make sure you are actually under the collaborators and you can access it trough Github.
Then clone, stepshere.After making changes go to the "VCS"->"Git"->"Commit", then "Push"Then go to "VCS"->"Git"->"Merge Changes"Select the branch you want to merge fromResolve any conflicts and merg... | I'm working on a project created by a friend. He created his project on Intellij and connected it to a Repository on GitHub. Committing and pushing works, but i (a collaborator) don't understand how i can pull the project from git, and doing merges/pushing/committing. Any help? I've watched plenty of tutorials, but eve... | GitHub: pulling and pushing project with my collaborator |
--webroot-pathis the path which should be accessible via http using your domain name. This is given when you first procure the certificates at the time of renewal there is no need to supply that explicitly. I think there could be something wrong with the renewal configuration file.When a certificate is issued, by defau... | certbot was used with NGINX to create certificates. There was only one cert created on our server for our production build, staging build and jenkins webserver.When I run certbot renew everything is fine until it attempts to challenge the jenkins server. I get the following errorAttempting to renew cert (my.domain) fro... | Cannot renew certificates with certbot renew/Letsencrypt |
Well, everyone has his stupid moments...
actually not precompiling my assets was the problem.
rake assets:clean
rake assets:precompile
and everything works again..
|
When i'm pushing to github, the push works fine and my Repo is properly updated.
When deploying to Heroku, although it shows that everything works, and it pulled from the master (as i understand) the Files don't get updated.
76180b5..7bd1ec4 master -> master
I'm trying to get this working for hours now.. I even del... | GitHub Repo working but Heroku still the same |
I believe on a linux machine docker doesn't need virtual box and can run on Linux Kernel. Is this correct ?
Yes, hence the need for a VirtualBox Linux VM (using a TinyCore distribution)
Is docker still faster/efficient because it uses a single VM to run multiple containers as opposed to Vargrant's new VM for every ... |
So I have read this in many places that docker is faster and more efficient because it uses containers over VMs but when I downloaded docker on my mac I realized that it uses virtual box to run the containers. I believe on a linux machine docker doesn't need virtual box and can run on Linux Kernel. Is this correct ?
... | If docker uses virtual machine to run on a mac then what is its advantage over vagrant? |
I asked the same thing on the MSDN forums. Apparently, as of this date, there is no API that can be used to pull in that information.
Source: reply from MSDN forums
|
I'd like to consume information about the Recovery Services that I have setup in Azure. If I go to that section inside the Microsoft Azure Management Portal, I'll see a list of the Backup Vaults that I have created. I'm looking for an API that will let me pull up data about it, such as the one that is presented on the... | Does Microsoft Azure have a REST API to view information about Backup Vaults? |
Job metadata for SUCCEEDED and FAILED jobs are retained for 24 hours. Metadata for Jobs in SUBMITTED, PENDING, RUNNABLE, STARTING, and RUNNING remain in the queue until the job completes. Your AWS Batch Jobs also log STDERR/STDOUT to CloudWatch Logs where you control the retention policy.ShareFollowansweredMay 1, 2017... | I'm trying to understand how long the details associated with an AWS Batch job are retained. For example, theKinesis limits pagedescribes how each stream defaults to a 24 hour retention period that is extendable up to 7 days.The AWSBatch limits pagedoes not include any details about either the maximum time or count all... | Limits for AWS Batch job details retention |
I don't think the SSL error is related to the list firewall code.
I've just tested and got a response without any problems:from googleapiclient import discovery
from oauth2client.client import GoogleCredentials
credentials = GoogleCredentials.get_application_default()
service = discovery.build('compute', 'v1', credent... | I am trying to get firewall list or just get specific firewall info from GCP. I am using GCP Python SDK. I have imported all required modules/packages. Rest of my code works fine, but I have problems with getting information or listing firewalls from my GCP environment. I am using python code to get firewall info, vari... | gcp - python sdk - get firewall |
Try to use the following query:(metric_1 or metric_2 * 0) / metric_2ShareFollowansweredJun 1, 2021 at 21:40Marcelo Ávila de OliveiraMarcelo Ávila de Oliveira20.9k33 gold badges4242 silver badges5353 bronze badges1Works like a charm. Thank you.–BenjaminJun 2, 2021 at 0:53Add a comment| | I have 2 metrics and first metric doesn't always exist. In cases when it doesn't exist I want to behave as it had a value0(or result to have a value0)Metrics:metric_1{label=1} 10
...
metric_2{label=1} 2
metric_2{label=2} 5
...Operation:metric_1 / metric_2Result:{label=1} 5Expected:{label=1} 5
{label=2} 0My real-life ex... | Setting default value during binary operation when value doesn't exist |
Alright I found a solution without .htaccess. For everybody who might have the same problem:sudo nano /etc/apache2/apache2.confthen scroll down to:<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Direcotry>Now edit theOptions Indexes FollowSymLinkstoOptions Follo... | I did everything that should have been necessary to prevent directory browsing.My.htaccesshas this code:Options All –IndexesIt works fine when I browse into a directory where subdirs are present for example "example.net/system" "system" has subdirs like "main", "top" etc. But when I go into "example.net/system/main", i... | htaccess Directory browsing works only when subdir is present |
Try connecting to the instance via the serial console:https://cloud.google.com/compute/docs/instances/interacting-with-serial-console. From there you should be able to repair the firewall rules. | I logged to my ssh in google cloud Linux Machine by mistake i changed firewall rule and i lost ssh connection. now i am not able login to ssh(22), Is there any way to recover that ?I know I can take shanpshots of my machine and create new instances using that snapshot. but is there anyway to get again ssh login in same... | Google Cloud Instances Firewall Unable to Login SSH |
Stream records are organized into groups, or shards.According to Lambdadocumentation, the concurrency is achieved on shard-level. Within each shard, the stream events are processed in order.Stream-based event sources: for Lambda functions that process Kinesis
or DynamoDB streams the number of shards is the unit of co... | I'm in the process of writing a Lambda function that processes items from a DynamoDB stream.I thought part of the point behind Lambda was that if I have a large burst of events, it'll spin up enough instances to get through them concurrently, rather than feeding them sequentially through a single instance. As long as t... | Does AWS Lambda process DynamoDB stream events strictly in order? |
If those GitHub repositories were all part of the same organisation, that would be easy: see "Inviting users to join your organization"If not, you can script that with theGitHub API:list all your repositoriesfor eeach repo,add your collaborator to it. | We have 150+ repositories on our GitHub, for different clients. Now we hired new employee to take care of the managed services process and he requires access to all the repositories. Inviting him as a collaborator to all repositories one by one is going to take plenty of time.Is there a way to add him to all repositori... | Add collaborator to many repositories at once |
For registering vault as a service you will have to do the following stepsCreate a file and write this{"service": {"name": "vault", "tags": ["vault-tag"], "port": 8200}}into it. Name it asvault.jsonNow, enter this commandconsul services register vault.jsonYou can now see that vault is registered as a service | I'm running vault and consul as pods in kubernetes, while I'm checkingconsul catalog serviceit showsconsulalone.How can I registervault as a service?I'd tried with the following link, but it didn't work.https://learn.hashicorp.com/consul/getting-started/services | How to register vault (Hashicorp-vault) as a service in consul (Hashicorp-consul), I am using kubernetes? |
Finally achieved my task for the executing java jar using cron. Posting the solution so that it could help other beginners.
Dockerfile
FROM openjdk:8-jre-alpine
MAINTAINER dperezcabrera
RUN apk update && apk add bash
ADD java-version-cron /temp/java-version-cron
RUN chmod 777 /etc/test/
ADD DockerTesting-0.0.1-SNAP... |
I want to create a docker file using alpine(as it creates a light weight image) with a cron (to execute a task periodically) , As a newbie I initially tried with ubuntu it worked perfect as i took the help from this link UbuntuExample with CRON
Now the problem is it create heavy docker image. I want to convert this sa... | openjdk:8-jre-alpine :- Execute a jar file periodically using docker with cron |
Github is currently down, probably from the DDoS attack currently affecting a bunch of sites including Twitter, Spotify, and more
|
Rencently I find a Palmer Drought Severity Index (PDSI) calculation package written by cszang from GIthub. According to the website https://github.com/cszang/pdsi, the install is very easy:
install.packages("devtools")
library(devtools)
install_github("cszang/pdsi")
However, when I install it, an error occurs like th... | Problem in installing PDSI package form Github |
If you want to clone other one's repo and make some contributions to it, you need to fork the repo as your own first. Push commits to your own repo and you can send a "Pull Request" to the original author then.git clone[email protected]:username/file.gitHere theusernamemust be yours, or an org that you are in. Otherwis... | I m new to Git so I am trying to learn git. Meanwhile When I am working on Git ,ERROR: Permission to username/file.git denied to Username1.
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.I encountered this error. By the way , File is only rea... | GitHub Pushing for read-only |
Long and short. Microsoft doesn't support XP anymore and so therefore the credentials won't work. Time to upgrade. | We have some clients running Windows XP embedded that are rejecting our new SSL cert from GoDaddy. Upgrading these systems is not an option since they are connected via a satellite link. Can anyone provide me direction on where to go and what to look at? SSL Checker shows it is correct. The URL shows an error but the ... | SSL cert issued by trusted CA but only works on some clients? |
Create a new table called batches that has one row per batch. This table will have an auto-increment column called batchid.
Your script will start by inserting a row into this table. In addition to the batchid, it can also contain the time stamp of when the batch was created, who created it, and perhaps other pertin... |
We have a script that should function like so:
Script inserts n rows into database inserting the same unique number into the batch column.
Script puts a job on the AWS queue with the batch number.
AWS worker does some processing and fires off another script on our server.
Script on our server inserts the response from... | Generate batch number in mysql? |
Well, I got a solution, it's fixed.
I just had to run my app with this line :
pm2 start app.js --watch
Then it's watch when a file is modified and restart it automaticly.
|
I just got a problem, I'm using the webhook for github ( I wrote one in php ).
The problem, I want to restart my nodejs app with pm2 from my php code something like that :
shell_exec("pm2 restart test");
but my user : www-data (nginx) can't execute it.. When I try it log in as www-data I got this :
Error: EACCES, pe... | Restart my nodejs app (with pm2) from php server |
Your configuration is correct. I think that the problem in in your asp.net core application. Please check the following:
To receive IP address:
var ipAddress = context.Connection.RemoteIpAddress;
To receive User-Agent:
var userAgent = context.Request.Headers["User-Agent"];
|
I have two docker images one for nginx that is used to receive a request from the clients, the request contains the client's IP address, User-Agent. The other image is an asp.net application that is used to receive the request send from the nginx with the client information. My problem is that the request received con... | Forward client's request header |
First of all, the way you think you're settingcacheto false in your$.getJSON()call is incorrect. You're passing a key/value pair to the server so the request URL will look likesite.com/resource?cache=false.You need to make your request using the$.ajax()method so you can actually set thecacheoption tofalse. However, all... | I have an AJAX-call, which returns values from a ever changing database, based on simple standard parameters, like month of year. In IE, this function returns cached data, which it never should. I've monitored the server side, and it isn't contacted by the client.Now, my title question has been asked in different ways,... | What is the correct way to prevent caching on ajax calls? |
6
You need to add
apk add mdocml-apropos
and then for each package you need the man packages for
apk add curl-doc
and you are set to go to use man after, like you already did
apk add man man-pages mdocml-apropos
The source for this (plus added the mdocml-apropos which i... |
I can’t get man to work in an Alpine Linux Docker container.
Pull Alpine Linux and start a container.
docker pull alpine:latest
docker run -t -i alpine /bin/ash
Update repository indexes from all remote repositories.
apk update
Install man and man-pages.
apk add man man-pages
Install a package and its documentation... | How to get 'man' working in an Alpine Linux Docker container? |
1
I think a viable solution to this problem could be periodically checking out the git repository of the contracting company and checking it back in to your account if there is a change. A simple script could help doing that, let's say, once per day. Every commit will be mi... |
Our organisation has a contracting company working for them. The contracting company works on an app where the source code is on github and each release goes on bitbucket for deployment.
Our organisation also has a github account, and we would like to have the latest changes synced to our organisations github account.... | How to keep a copy of latest code and release with github and bitbucket? |
Add thisnode_modules/to.gitignorefile to ignore all directorynode_modules | I have a react app which was originally bootstrapped using create-react-app in my App directory as follows:App
|-- build
|-- node_modules
|-- etc...I've adjusted the file structure to now look like the following and made a new commit:App
|-- client
|-- build
|-- node_modules
|-- etc...
|-- serverI move... | Adjusting file structure resulted in Github file size limit |
It's a normal behavior.
Doctrine stores a reference of the retrieved entities in the EntityManager so it can return an entity by it's id without performing another query.
You can do something like :
$entityManager = $this->get('doctrine')->getEntityManager();
$repository = $entityManager->getRepository('KnowledgeShare... |
I want to be able to retrieve the existing version of an entity so I can compare it with the latest version. E.g. Editing a file, I want to know if the value has changed since being in the DB.
$entityManager = $this->get('doctrine')->getEntityManager();
$postManager = $this->get('synth_knowledge_share.manager'... | How to stop Doctrine 2 from caching a result in Symfony 2? |
It is acceptable to use a self-signing cert? If so, a different one per client install?Ask your clients. Will they put up with a browser warning? or not?Is it best to issue a new cert (maybe a free one) for each deployment?It is best for theclientto acquirehis ownSSL certificate. You can't do that for him. Nobody can.I... | Context:I have an application that is deployed to each client as a Virtual Machine. The latter is installed by the clients wherever they want (I don't necessarily know the final domain). The application comprises an JBoss Web Server that provides access to a configuration page, protected by SSL. Right now the server is... | New SSL Certificate for each client deployment? |
AWS Simple Monthly Calculator is an easy-to-use online tool that enables you to estimate the monthly cost of AWS services for your use case based on your expected usage. It helps you estimate your monthly AWS bill more efficiently.AWS Cost Explorer is used to explore and analyze your historical spend and usage.The AWS ... | These topics are pretty confusing and different sites have different answers for them.Can somebody please explain how these below options are used?Which service should be used to estimate the costs of running a new project on AWS?AWS TCO CalculatorAWS Simple Monthly CalculatorAWS Cost Explorer APIAWS Budgets | Difference between various cost estimation tools in AWS |
It seems that the default value of0is missing from thedocumentation.The health or readiness check algorithm works like this:Wait forinitialDelaySecondsPerform readiness check and waittimeoutSecondsfor a timeoutIf the number of continued successes is greater thansuccessThresholdreturnsuccessIf the number of continued fa... | Kubernetes' liveness and readiness probes for pods (deployment) can be configured with this initial delay ---- meaning the probe will start after this many seconds after the container is up. If it is not specified, what is the default value? I can't seem to find it. The default value for periodSeconds is documented as ... | What is the default value of initialDelaySeconds? |
New version of Prometheus (2.5) allows to write tests for alerts, here is alink. You can check points 1 and 2.
You have to define data and expected output (for example intest.yml):rule_files:
- alerts.yml
evaluation_interval: 1m
tests:
# Test 1.
- interval: 1m
# Series data.
input_series:
- series: 'up{jo... | We are about to setup Prometheus for monitoring and alerting for our cloud services including a continous integration & deployment pipeline for the Prometheus service and configuration like alerting rules / thresholds. For that I am thinking about 3 categories I want to write automated tests for:Basic syntax checks for... | How to automatically test Prometheus alerts? |
I solved the problem.
It was a problem that occurred because the logback.xml modifications were not applied when the docker build was done without modifying the version.ShareFollowansweredMar 30, 2022 at 1:37강정화강정화8511 gold badge11 silver badge99 bronze badgesAdd a comment| | I run spring boot in the local environment, the log file is created well.
But when I run it on k8s, it works normally, but I can't find the log.
I tried to go into the pod and search for it, but I couldn't find it.
please help me.
Let me explain the environment I tested.nfs directory is
"/ktnfs"logback.xml setting is a... | how can i save spring boot log in k8s persistent volume |
As I mentioned in comment, AFAIK it´s working as designed, if you want to see tls you could try that what mentioned in thistutorial.Seeing that unencrypted communication to the QOTM service is only occurring over the loopback adapter is only one part of the TLS verification process. You ideally want to see the encrypte... | I am running services on Kubernetes cluster and for security purpose, I came to know about service-mesh named istio.
Currently, I have enabled the Mtls in istio-system namespace and I can see Sidecars is running inside the pod in bookinfo service.
But while capturing traffic through Wireshark between pod I can see my c... | Verify MTLS enabled in Istio through wireshark |
As long as the repository holds the information you are looking for, it can be retrieved by using the JGit API.ARevWalkcan be used to traverse the commits of a repository and aTreeWalkin can be used to iterate the tree of a commit, i.e. the list of files the commit consists of. With aDiffFormatter, two commits can be c... | The statistics I want to pull about a repository include those offered by the Github statistics APIhttps://developer.github.com/v3/repos/statistics/My question is, is this possible using the library JGit?From my research using stack over flow and Google, there is little, if any information that is clear about this. At ... | How to get repository statistics with JGit |
yes. useDeny from allin .htaccessand for the download script useHTTP Download ClassIt also has a speed and resume support. | I have an folder in my apache public folder and it's contents must be protected at all time. Let's say the folder is called 'protected'. When someone then tries to openhttp://domain.com/protected/random.file, that someone shouldn't be able to open/download it. Access should be completely blocked, with no possible worka... | How to protect all directory contents, but gain access to php script |
The solution is to install hub from a regular user.
$ brew install hub
and to add /usr/local/bin to the $PATH of root user (if it's not already the case.)
For this, you can use the following command:
echo export PATH="/usr/local/bin:$PATH" >> ~/.bash_profile
In this way, the /usr/local/bin appears before /usr/bin, a... |
What do I need to run git hub as root?
git hub works perfectly in non root user.
To install it as root, I ran brew install hub which lead to
# brew install hub
W: be careful as root.
=====... | Cannot use git hub extension as root |
This is not an "inaccessible file", but a nested git repo.It is recorded in the main git repo (published on GitHub) as agitlink, aspecial entry in the index, and is displayed as a gray icon.If you really want its content, youshould transform it as a submodule.As such, that gitlink points to nothing, as there is no way ... | I create a new repo on Github and follow the instructions.Then I open Command Prompt and follow Github's instructions.The picture is what I get...what appears to be file containing my project that is inaccessible.What am I doing wrong? | Visual Studio 2015 Community: Commit to github via command line produces inaccessible file...? |
AQTime can help with that too.ShareFollowansweredOct 16, 2009 at 19:33FrancescaFrancesca21.5k44 gold badges5151 silver badges9090 bronze badgesAdd a comment| | I set up a project and ran it, and looked at it in Process Explorer, and it turns out it's using about 5x more RAM than I would have guessed, just to start up. Now if my program's going too slowly, I hook it up to a profiler and have it tell me what's using all my cycles. Is there any similar tool I can hook it up to... | Memory profiling tool for Delphi? |
Found it! Looks like since it installs a specific commit hash, it stores it in a different folder labeled with the commit hash as the "version"~/.rvm/gems/ruby-2.2.2@my-gemset/bundler/gems/redcarpet-135b8e16b507 | I added a gem to my Rails Gemfile to be installed directly from the github sourcegem 'redcarpet', github: 'tanoku/redcarpet'
...
bundle installI use RVM and all my gems that get installed are in~/.rvm/gems/ruby-2.2.2@my-gemset/gems. However, I'm unable to see this new github gem there.Do gems from github get installed ... | RVM gem install directory when installing from git/github |
you can have a look at this solution if it worked:https://stackoverflow.com/a/66602754/15831887also you can try to install new software to help instead of the marketplace | Each time I want to install a new plugin from Eclipse marketplace or an update site, I have the error message 'PKIX path building failed' and I had some degree of success solving this issue by downloading the certificate manually from Chrome and installing it to the JDK's cacerts file with the keystore command. This en... | Is there a durable solution to SSL certificate validation for Eclipse plugins? |
I have managed to fix the issue by changing in tsconfig.jsontarget:'es5'`instead oftarget:'es2015'`ShareFollowansweredMay 6, 2020 at 15:33Sachin MishraSachin Mishra1,17311 gold badge1616 silver badges1717 bronze badgesAdd a comment| | Issue is that my css & js angular production build files are not getting picked properly , from the browser logs what i understood is that js and cs not loaded because its MIME type, “text/html”, is not “text/css”.Providing screenshot of errors on browser console.screenshot link belowBelow is my nginx configuration fi... | angular app giving mime errors and fails to load on browser after deployed on kubernetes ingress |
Got an answer from an NCover representative. There is no integration between SonarQube and NCover. Full stop.ShareFollowansweredJul 29, 2019 at 16:59markmark60.3k8484 gold badges318318 silver badges610610 bronze badgesAdd a comment| | We are starting to implement code coverage in our CI process and my task is to examine NCover from this perspective.Specifically, we have SonarQube and a CI build in Azure DevOps that runs the unit tests and reports the coverage to SonarQube as described inhttps://docs.sonarqube.org/latest/analysis/scan/sonarscanner-fo... | How to use NCover with SonarQube |
The sad news is that if a file has been already committed to GitHub,gitwill continue to version that file.This means if I commit the entirebin/then add it to.gitignore, the files will still persist in GitHub. And, if these files inbin/change, they will also be pushed in the commit because they are versioned.Luckily, yo... | I've looked all around for a few days now trying to figure this out because our .gitignore even though it lists /bin/ folder it still keeps freaking commiting the whole folder and its getting annoying.Now we have a whole bunch of crap in a /bin/ folder in our GitHub repository and I have no idea how to remove it. I've... | How to remove a specific directory from GitHub using Eclipse |
One of many methods to realize this workflow is to use a workflow calledgit flow, seethis linkfor more details.To summarize, in this workflow you've got a production branch - themasterbranch - and a development - thedevelopbranch. Your developers are creating features based on this develop branch, implementing and test... | I am new to Git stuff but I know how to add/commit/push/pull changes.Situation:We have a git-managed project (currently on bitbucket)Now we are setting up QA and Live places. So for example if we made feature X and pushed to QA and client approves it, we should then be able to push our changes to Live/Production site.S... | Git upload to live site after qa approved |
2
LiipDoctrineCacheBundle provides a service wrapper around Doctrine's common Cache (documentation) that allows you to use several cache drivers like filesystem, apc, memcache, ...
I would recommend loading your generic container-parameters/settings (like maintainance mod... |
I have a db table (doctrine entity) that I use to store some editable settings for my app, like page title, maintenance mode (on/off), and some other things..
I can load the settings normally using the entity manager and repositories, but I think that's not the best solution...
My questions are:
- can I load the setti... | Symfony2 load settings from database |
Docker Hub build service should work (https://docs.docker.com/docker-hub/builds/). You can also consider using gitlab-ci or travis ci (gitlab will be useful for privet projects, it also provides privet docker registry).
You should have two Dockerfiles one with all dependencies and second very minimalistic one for repo... |
Currently have a pipeline that I use to build reports in R and publish in Jekyll. I keep my files under version control in github and that's been working great so far.
Recently I began thinking about how I might take R, Ruby and Jekyll and build a docker image that any of my coworkers could download and run the same ... | Developing in a Docker image that's under version control |
The solution to number 2, is finally that each service deployment can be deployed together with each own ingress so no need for the point 1. That being said, you can have multiple ingress rules deployed.
|
We are currently setting up a kubernetes cluster for deploying our production workloads (mainly http rest services).
In this cluster we have setup nginx ingress controller to route traffic to our services from the outside world. Since the ingress controller will be used mainly with path routing I do have the following... | Kubernetes ingress update with deployment |
I think you just have to add the remote to git with :
git remote add origin <github-url>
And to see the remotes:
git remote -v
|
I was trying to deploy my angular project on github-pages, suddenly the error says,
Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option).
the command I am trying to execute in project directory is:
angular-cli-ghpag... | I was trying to deploy my angular project on github-pages, suddenly the error says, Failed to get remote.origin.url |
This is not possible. The official GKE documentation on VPC-native clusters says:Cluster IPs for internal Services are available only from within the cluster. If you want to access a Kubernetes Service from within the VPC, but from outside of the cluster (for example, from a Compute Engine instance), use aninternal loa... | By default, Kubernetes services with typeClusterIPare accessible from the same cluster. Is there a way to configure a service in GKE to be accessible from the same VPC? e.g., a GCE VM in the same VPC could access the service in GKE, but I don't want to expose it to the internet. | GKE: configure service to be accessible from the same VPC |
On a Windows platform the default stack limit is ~1 megabyte, that means you should definitely put bigger objects on the heap instead of changing the default values (orworsedoing it anyway and hope for the best). Check your environment stack size limit before experimenting with it. Also: if your algorithm is a recursiv... | This question already has answers here:How do I choose heap allocation vs. stack allocation in C++?(2 answers)Closed9 years ago.for example:void a()
{
int bla;
bla = 1;
}vs.void b()
{
std::unique_ptr<int> bla( new int );
*bla = 1;
}When is one or the other considered good practice? When isn't it? Or... | C++ at which point does it make sense to use the heap instead of the stack? [duplicate] |
If you usingCreate React Appcheck yourbuild/asset-manifest.jsonif have correct paths to the files. If not, change them manually or - what is better - change or set "homepage" value inpackage.jsonto proper one. And last tip - read carefully whole output ofnpm run build- it helped me. Whole bugfinding spends me 3 hours :... | I need your help please!I have made deploy and build of aplication. but when i redirect for any page i have this error:Uncaught SyntaxError: Unexpected token <I think it was because the browser await .html archive and chunk.js is open like this imgprint from errorthe route is fine, he finds the route, but don't open fi... | Uncaught SyntaxError: Unexpected token < in chunk.js |
Try this:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^dev(.*) app_dev.php$1 [L]
RewriteRule . app.php [L]
</IfModule> | This question already has answers here:symfony2 rewrite rules .htaccess app.php(5 answers)Closed9 years ago.I have a directory called web in the root folder. In this directory there are 2 file called app.php and app_dev.php. (It come from symfony 2.5.5)I would like to redirect user from root directory to /web/app.php
I... | How to redirect to web/app.php for symfony [duplicate] |
It kind of sounds like you have an undisposed resource somewhere that ends up getting garbage collected eventually, but not quickly enough for your needs. Do you reuse any SQLConnection objects? Or MailClient objects? Or unmanaged Image objects?
As for the lower-than-expected memory limit, there are two types of memor... |
We're running into a strange problem. Our ASP.NET application is running on 64-bit Windows 2008/IIS7 machine with 16Gb of RAM. When w3wp.exe process reaches 4Gb (we track it simple via Task Manager on the server) - Out of Memory exeption is thrown even though there's a plenty of memory still available.
Is there a know... | w3wp.exe runs out of memory even though there's still memory available |
*.phpis regular script file which, as any other scripting languages like i.e. perl requires interpreter to run. So if you want to run your script from command line you have either call interpreter and give it your script file as argument, like:$ /usr/bin/php myscript.phpAnd that's it - it should run.Or (if working usin... | Ok I have been looking into cron jobs for hours, checked every post here, looked in google but I just do not understand how it works.I have set up a cron job using my path1 * * * * /home/myuser/domains/mysite/public_html/live.phpI have also tried/home/myuser/public_html/live.phpNothing seems to be working.Do I have to ... | what to change in my php script for the cron job to work |
You need to use tcp://127.0.0.1:514 instead of tcp://elk-custom:514. Reason being this address is being used by docker and not by the container. That is why elk-custom is not reachable.
So this will only work when you map the port (which you have done) and the elk-service is started first (which you have done) and th... |
I want to send logs from one container running my_service to another running the ELK stack with the syslog driver (so I will need the logstash-input-syslog plugin installed).
I am tweaking this elk image (and tagging it as elk-custom) via the following Dockerfile-elk
(using port 514 because this seems to be the defaul... | Syslog driver not working with docker compose and elk stack |
The URI used to match patterns in aRewriteRuleare canonicalized in a per-directory context (either in an htaccess file or in a<Directory>container) by removing the leading/. So if the requested URL is:http://example.com/web/permalink/123And from within an htaccess file in the document root, the URI used to match rules ... | I hope I'm missing something silly.I'm trying to redirect URLs using .htaccess on Apache 2.2 using the PHP 5.4 cartridge on OpenShift's free hosting service.This matches the URI /permalink/a123 (note the lack of leading slash in the rule's filter pattern):RewriteEngine On
RewriteRule permalink/a.*$ /permalink/b [R=301,... | Why does leading slash not match my RewriteRule? |
Found the problem. ObjectMetadata requires the content-type / encoding to be set explicitly rather than via addUserMetadata(). Changing the following:
metadata.addUserMetadata("Content-Encoding", "gzip");
metadata.addUserMetadata("Content-Type", "application/x-gzip");
to:
metadata.setContentEncoding("gz... |
I'm trying to use AWS Api to set the content type of multiple objects and to add a 'content-encoding: gzip' header to them. Here's my code for doing that:
for (S3ObjectSummary summary : objs.getObjectSummaries() )
{
String key = summary.getKey();
if (! key.endsWith(".gz"))
continue;
... | How to set the content type of an S3 object via the SDK? |
As far as I remember Cache is a singleton and there is only one instance of it per app domain. OutputCache uses it too and it's nothing more than just a Response.Cache. So I think cached pages should be available through the Cache (Sorry, I can't check this at the moment). And the following articles should help you in ... | Is there any way that I can list the pages which are currently stored in the OutputCache?Just a list of paths would do, but if there's a way to get more information about each item (expiry etc), then all the better. | How can I view the contents of the ASP.NET OutputCache? |
Try removing your existing .DS_Store file first.
|
remote: Counting objects: 610, done.
remote: Compressing objects: 100% (352/352), done.
remote: Total 610 (delta 296), reused 434 (delta 210)
Receiving objects: 100% (610/610), 5.50 MiB | 2.19 MiB/s, done.
Resolving deltas: 100% (296/296), done.
error: Untracked working tree file '.DS_Store' would be overwritten by me... | Error when cloning a git repo |
(assuming you're using jacoco for coverage reporting)If you're not using Lombok, you might try adding the @Generated annotation to your methods you want skipped. I'm not sure this will work - but worth a shot!If you're using Lombok [like I was], here's a solution from Rainer Hahnekamp that marks the code as @Generated,... | I'm wondering if it is currently possible to ignore the equals and hashcode method for the sonar test coverage? I have heard about the block exclusion, but it didn't work. | How to make sonarqube ignore the equals and hashcode |
4
This thread on AWS seems to imply that RACK_ENV can only be set to one of 'development' or 'production'.
Interestingly, in my own tests, when configuring the Elastic Beanstalk environment to RACK_ENV=staging, the migration will run against the staging database defined i... |
In my Elastic Beanstalk - Container Options. RACK_ENV is set to staging.
In fact, if I SSH into the EC2 instance and do rails console in /var/app/current/ and then typing Rails.env it returns staging.
Reading http://www.modrails.com/documentation/Users guide Nginx.html#RackEnv
It says to set a RACK_ENV variable, since... | Why is Passenger looking at the staging environment? |
get yourself on the commit where you deleted the file (second commit on the branch, if I understood correctly).git checkout --orphan somebranch. Then commit... that will create a "new" revision with no parent..... then you can drop the branch that is messed up and rename your current branch to whatever you like (consid... | So, I messed up. I accidentally committed thenode_modulesfile to my remote repo on Github. It wasn't a big deal practically because I just removed the file in the next commit, no harm no foul.But now my contributor page looks god awful, example:I'd like to go back and remove the culprit commit that is causing this trav... | Removing a commit from the contributors list on Github |
The problem was IISexpress port access issue.By default, the IISexpress does not allow the external network to access the port and this access needs an explicit configuration.If you are facing the same problem, you can find the code snippet and other details here.Accessing IISExpress for an asp.net core API via IP | I have a dotnet core application built on dotnet core 3.1 and when I tried to deploy the same in ubuntu 18.04 server by following the steps given in thisdocbut not able to access the app on port 80 (accessing through public IP)Here is the Nginx updated configurationand dotnet application is running with port 5000 and ... | How to deploy dotnet core application on Ubuntu server with Nginx server? |
Yes, this is expected behavior. First of all, marshaller is global in Ignite, as well as the metadata, so destroying the cache does not affect this. Second of all, binary format allows to dynamically change the schema, but the changes have to be compatible. I.e., you can change and/or remove fields, but not change the... |
I've createted the binary type with the name 'SomeType' and filds:
f1:string
f2:string
And cache based on this type (via CacheConfiguration.setQueryEntities).
Now I want to change f1 from string to int. But I don't want to change the name of the type.
So when I'm trying
ignite.destroyCache(cacheName)
And then I'm c... | Apache Ignite binary type invalidation |
If your Docker is running on WSL, you can take back the RAM by terminating all the running distributions with command:wsl --shutdownShareFollowansweredJun 12, 2021 at 6:15kunthetkunthet57433 silver badges77 bronze badgesAdd a comment| | not so long ago I started to practice with writing EOS smart contracts on my windows 10 computer. For this I needed to install among others, a Linux subsystem for Windows and Docker. In the last couple of days I noticed some pretty significant performance issues, when looking for the perpetrator in my task manager I ca... | Cant stop Docker/Vmmem from running |
Raspberries use ARM and not x86_64 processors. You can only run images created for that architecture. Try searching for ARM or ARMv7 on docker hub. There is aDebianimage for ARM I know of but there must be others as well.The underlying issue is that the binary format used by ARM is not compatible with x86_64, which is ... | I've installed docker in rapsbian according to the official instructions (i.e., runningcurl -sSL https://get.docker.com | sh) but I'm not able to run the hello-world example (I've also tried other examples without success). This is the error I'm getting:pi@raspberrypi2:~ $ docker run hello-world
standard_init_linux.go:... | Raspberry-pi docker error: standard_init_linux.go:178: exec user process caused "exec format error" |
As mentioned before, regex might be an overkill. However, it could be useful in some cases.Here's a basicreplacepattern:SELECT
regexp_replace(
'abcd1234df-TEXT_I-WANT' -- use your input column here instead
, '^[a-z0-9]{10}-(.*)$' -- matches whole string, captures "TEXT_I-WANT" in $1
, '$1' ... | I have a field in a redshift column that looks like the following:abcd1234df-TEXT_I-WANTthe characters and numbers in the first 10 digits can be either letters or numbers.If I use a capture group regex, I would use a poorly written expression like(\w\w\w\w\w\w\w\w\w\w\W)(.*)and grap the 2nd groupBut I'm having trouble ... | How to use a regex capture group in redshift (or alternative) |
If the goal is just to prepopulate aCachewith the contents of aMap<K, V>, then you should just useCache.putAll(Map<K, V>)to put all the entries from a specifiedMapin the cache. | I am using Guava LoadingCache to bulk load all elements at once into my eager cache. But the implementation of theloadAllmethod that I'm supplying does not really need anIterable<? extends K>keys argument, since my DAO does not except any parameters either - my DAO method returnsgeneric Map<K,V>.Since my implementation... | Guava LoadingCache getAll - but without any arguments? |
I might be wrong , go to check your ip address with myipaddress.com or whatever. Then you candeny from allandallow from <YOUR IP> | I'm new to apache... so be gentle with me guys :-)I have used the following for denying access to a web folder with .htaccess:order deny,allow
deny from allI'm getting the "forbidden" page which is ok because I don't want web users, spiders or scrapers to access this folder.But I am no longer able to access web folder ... | .htaccess deny access to folder |
Your Visual studio 2017 installation has an older version of the Git credential manager for Windows. Upgrade to the latest version and configure this specific installation in your global git config to ensure Visual Studio is aware of the latest GCM that's available to it.See also (different issue, same problem):Cloning... | I have a repository on git hub, and I'm trying to clone this repository to a different computer.
I'm going to the repository -> open in visual studio -> after the computer filled the repository address and the folder to save it, I'm pressing clone, but the following error happens:Git failed with a fatal error.fatal: Ag... | Cloning repository via visual studio shows error: cannot spawn askpass: No such file or directory |
I solved the problem by updating the java plugin to 3.5 | I want to use SonarQube to analyse my project which is built on Jenkins. In my project I have some literals written in binary system (e.g. 0b00001111).When I'm trying to do an analysis, I am obtaining fallowingerror:[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project o... | SonarQube error while analyzing code with binary literals |
Absolutely. From thepre-receivesection ofgithooks(5):Both standard output and standard error output are forwarded togit send-packon the other end, so you can simplyechomessages for the user.As long as you ensure your script exits 0, the push should succeed. | I am able to validate commit via Github pre-receive hook. But, instead of blocking commits with non-zero exit code in pre-receive hook, is tgere a way to display warning messages with exit code 0? | GitHub pre-receive hook display warning message |
It depends on how you want to recover. If you want to restore a specific node, you need a backup from that node.
If you are rebuilding your swarm cluster from an old backup, then you only need one healthy node's backup. See the following guide for performing a backup and restore:
https://docs.docker.com/engine/swarm/... |
From the official docker doc, there is a statement (as below) looks confusing to me. From my understanding, don't we only need to pick anyone of healthy manager nodes to backup for future restoration purpose?
"You must perform a manual backup on each manager node, because logs contain node IP address information and a... | Backup Docker Swarm - How many Manager Nodes Required |
You can reference the values using[without any arguments:library(gpuR)
A <- seq.int(from=0, to=999)
B <- seq.int(from=1000, to=1)
gpuA <- gpuVector(A)
gpuB <- gpuVector(B)
C <- A + B
gpuC <- gpuA + gpuB
all.equal(C, gpuC)
#> [1] "Modes: numeric, S4"
#> [2] "Attributes: < target is NULL, ... | library(gpuR)
A <- seq.int(from=0, to=999)
B <- seq.int(from=1000, to=1)
gpuA <- gpuVector(A)
gpuB <- gpuVector(B)
C <- A + B
gpuC <- gpuA + gpuBgpuCis agpuvector. I want to see the output as numeric values. so I tried to convert tocpuvector. In theRCUDApackagegathergpu()function is there. but no similar function in... | Converting GPUvector back to CPU vector using gpuR package |
According to docker help run:
…
-p, --publish list Publish a container's port(s) to the host
-P, --publish-all Publish all exposed ports to random ports
…
Command 1 uses -P (short form of --publish-all) and after that the image name. -P has no arguments.
Command 2 uses -p (short f... |
I'm learning docker, and trying to run the existing images. The first command is working fine
command 1: docker run --name static-site -e AUTHOR="Mathi1" -d -P dockersamples/static-site
But the below command is throwing error
Command 2: docker run --name mvcdotnet -e AUTHOR="Mathi2" -d -p valkyrion/mvcdotnet
Error:
"... | Docker run not working it says requires at least 1 argument |
There is no such command. try the below command to check all running podskubectl get po -n <namespace> | grep 'Running\|Completed'below command to check the pods that are failed,terminated, error etc.kubectl get po -n <namespace> | grep -v Running |grep -v Completed | I would like to know if there is a command in kubernetes that returns true if all resources in a namespace have the ready status and false otherwise.Something similar to this (ficticious) command:kubectl get namespace <namespace-name> readinessIf there is not one such command, any help guiding me in the direction of ho... | Kubectl command to check if namespace is ready |
ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1Tested and works on 10.7.*, foundhere.Update 2019-02-26:Still works on macOS 10.14.3 MojaveShareFolloweditedFeb 26, 2019 at 10:53Jørgen R10.7k77 gold badges4343 silver badges6161 bronze badgesansweredApr 7, 2013 at 22:45SaucierSaucier4,27011 gold... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed10 years ago.Improve this questionI'm running OS X 10.8 (Mountain Lion). I was wondering if there was a terminal command to check if the macbook pro's lid is c... | How to Check if Macbook Lid is closed via Terminal? [closed] |
You should useDirectMLplugin.From tensorflow 2.11 Gpu support has been dropped for native windows.you need to use DirectML plugin.
You can follow the tutorialhereto install | I'm trying to use my laptop RTX 3070 GPU for CNN model training because I have to employ a exhastive grid search to tune the hyper parameters. I tried many different methods however, I could not get it done. Can anyone kindly point me in the right direction?I followed the following procedure.
The procedure:Installed th... | Using the RTX 3070 laptop GPU for CNN model training with a windows system |
2
How are you opening the process handle? From the doc:
The handle must have been opened with the PROCESS_QUERY_INFORMATION
access right, which enables using the handle to read information from
the process object.
Another possibility is that the target process and you... |
So, I wrote a program which is able to successfully read memory from most of processes using VirtualQueryEx. However, I've come across a process for which this function fails. It's not a system process, just a game process. Without Debug privileges I couldn't even open the process's handle. With them I am able to get ... | Access denied error when using VirtualQueryEx |
I ended up using the react-native-aws3 library to upload the images to S3.
I wish it could be more straight forward to find answers with how to upload an image directly using AWS amplify, but it wasn't working. So here is what I did:
(the wrapper of this function is a React Component. I'm using ImagePicker from 'exp... |
I'm trying to upload an image to S3 from React Native using Amplify. I am able to upload a text file SUCCESSFULLY. But not an image.
Here is my code:
import React from 'react';
import {View, Text, Button, Image} from 'react-native';
import {identityPoolId, region, bucket} from '../auth';
import image from '../as... | Upload to S3 from React Native with AWS Amplify |
Certificate Authorities have one primary job -> they receive requests for certificates, validate that the person requesting a certain certificate is actually authorized to that name (if I want an examplesite.com certificate, do I own examplesite.com?), and then issue it to the authorized party. That's it.ShareFollowans... | I am looking into web security topic and just wondering what if your financial, credit card or private information is misused or compromised by a website having valid seal of some certification Authority?Does CA take any legal action against the offending entity in
addition to revoking certificate?How does the CA know ... | What if security is compromised by site that is certified by valid CA? |
You need to add a volumes reference in your docker-compose.yml.version: 2
services:
myService:
image: serviceA from registry
# Would like to modify a config file's content...
volumes:
- /path/to/host/config.conf:/path/to/container/config/to/overwrite/config.conf
mainAPI:
...Since 3.3, you c... | I am trying to create a docker-compose for a project that requires a service to be running in the background. The image for service exists and this contains a config file, as well as an entrypoint ["/usr/bin/java", ...]I would like to change the content of configuration file but I am not sure what would be the best way... | Docker-compose copy config |
Based on your description in the comment it can be done pretty simply:I want to match doc: docfollowed by two numbers: \d{2}and then match test: testand then one number: \dBut there is another doc that I do not want to match: I added ^ to the start and $ to the end^ represents the start of the string, it should start a... | I have a regex that should matchesdoc03test1Test string:doc10test2.prdoc10.comRegex:(doc?\d{2,2})(test?\d{1,1})?Is this correct? | Return first match with pattern |
git reflogdoesn't show any commits since I branchedThat means you might not have committed sonce you have branched.Maybe your files were added to the index but were since removed from disk?Asseen in this guide(or in "Recover from git reset --hard?"), check the result of:git fsck −−lost-found(more complete command:git f... | Something mysterious happened and the local git branch I was working on disappeared. I have no idea where it went.Is there any way to list all commits that have ever been made across all branches, even ones that aren't around any more? | Show all git commits over all branches |
Thank you for reporting these issues. We haven't tested Unity projects with SonarQube, but it's on our radar as the community and the Unity based code base is huge.At this point I can't suggest any other workaround for your first problem (convention based reflection) but to disable that rule. I created a JIRA ticket to... | I'm trying to setup Sonar on our organization that we mostly make Unity projects.Our problem is that the rules provided to C# language are not always the same in Unity context.In Unity there is a MonoBehaviour class that if you declare some methods (Awake, Start) they are being called by reflection:https://docs.unity3d... | SonarQube using it with Unity 3D tons of problems |
So it seems like the Developers did that intentionally. IDK there probably used to be some setting for it but now I can't find it. This solution is a (rather lengthy) workaround.
Close the target project
Rename the root project folder
Open the renamed project (Optional)
See that there is build.gradle and app/build.gr... |
I create a project, both build.gradle (Project) and build.gradle (Module) are listed in Android folder structure normally, look likes Old Image 1, then I sync the project to remote GitHub in Android Studio 3.4.1.
I clone the project from GitHub in another PC, I find that build.gradle (Project) disappear in Android fol... | Why does the build.gradle (Project) disappear when I clone the project from Github in Android Studio 3.4.1? |
<div class="s-prose js-post-body" itemprop="text">
<p>You can try this</p>
<pre><code>if ($http_user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)") {
return 444; # 444 is a special nginx status code that's useful in fighting attack
}
</code></pre>
<p>But that user agent ... | <div class="s-prose js-post-body" itemprop="text">
<p>I have been having a few problems with spam recently and bots registering and all these anti captcha systems do not seem to be working.</p>
<p>I have analyzed my access logs and discovered the user agents are not used by humans maybe because they are old... But also... | How to block specific human looking user agent in nginx |
This depends on the context but generally, an in-memory cache stores some value so that it can be retrieved later, instead of creating a new object. This is most often used in conjunction with databases – or really any application where the construction / retrieval of an object is expensive.
For a simple memory cache,... |
What is in-memory cache? I could not find much information on it from the Web.
In fact, I was asked to design a in-memory cache based on OO concept using C++, but just do not know how to start. Any suggestions would be appreciated.
| in-memory cache design using OO concept |
Given that it seems you don't have an Ingress Controller installed, if you have the aws cloud-provider configured in your K8S cluster you can follow this guide to install the Nginx Ingress controller using Helm.
By the end of the guide you should have a load balancer created for your ingress controller, point your Rou... |
I deployed grafana using helm and now it is running in pod. I can access it if I proxy port 3000 to my laptop.
Im trying to point a domain grafana.something.com to that pod so I can access it externally.
I have a domain in route53 that I can attach to a loadbalancer (Application Load Balancer, Network Load Balancer,... | How to forward traffic from domain in route53 to a pod using nginx ingress? |
You needunlessoperator for this.vector1 unless vector2results in a vector consisting of the elements of vector1 for which there are no elements in vector2 with exactly matching label sets. All matching elements in both vectors are dropped.For your case:count by(system) (count_over_time({job="mrs_error_list"} |~ "Timest... | "I'm using Loki to store logs and Grafana for visualization. I want to create a Grafana table that lists all systems that are considered offline. A system is considered offline if it has sent a "Timestamp" log in the mrs_error_list job in the past 7 days but not in the last minute. I am able to calculate the count of s... | How to display systems that are offline based on Loki log queries in Grafana? |
If anyone help me understand whether my-branch will be matched with the remote one or notProbably. But it's impossible to be certain from the info you have given. To find out, saygit branch --all -vvIf the listing for my-branch also mentions origin/my-branch, you're all set. If it doesn't, just set the upstream yoursel... | I had to delete my git branch and now need to fetch that remote branch.I did the following steps as I've seen someone's post here.git clone <repository-address>
git fetch origin
git checkout -b <branch> origin/branchBut I am not sure if it worked as expected. Here's my output for git branch -a* my-branch (GREEN)
mast... | How to fetch remote branch properly? |
I used following command to create cluster with auditlog functionality. I used volumes to provide policy file to cluster. I think it requires both audit-policy-file and audit-log-path variables to be set.k3d cluster create test-cluster \\
--k3s-arg '--kube-apiserver-arg=audit-policy-file=/var/lib/rancher/k3s/server/m... | I am currently trying to enable and configure audit logs in a k3s cluster.
Currently, I am using k3d to set up my k3s cluster. Is there a way how to configure the audit logging?I know you can parse k3s server args when creating a cluster with k3d. So, I tried it with this:k3d cluster create test-cluster --k3s-server-ar... | Enable/Configure audit-logs in k3s cluster (using k3d to set up cluster) |
I thought it silly that such an inane question go so glaringly unsolved... so for lack of knowing how to cleverly parse strings in bash without resorting to the one SED combo I know by heart, and......
security find-internet-password -s github.com | grep acct | sed 's/"acct"<blob>="//g' | sed 's/"//g'
ét voila....
mra... |
So if..
$ git config user.name
↳ Alex Gray # OK (my name)
$ git config user.email
↳ [email protected] # OK (my email).
and..
GithubUserForProject() { # in pwd
ORIGIN=$(git config --get remote.origin.url) && echo $ORIGIN
OWNER=${ORIGIN%/*} && echo $OWNER # trim URL tail
OWNER=${O... | How to obtain github "short" username at the command line? |
Your approach is suitable only for very small development groups and small projects without need for complicated deploy. But:1) Local vs RemoteI usually keep remote versions of config files in the repository and overwrite them on local with untracked files. The config loader then searches for override but does not fail... | My inquiries are specific and I understand that they can be subjective; I would appreciate any input.Here's what I was doing before git:I run a PHP/MYSQL websiteI develop locally and test on WAMPI FTP to a staging site dev.mywebsite.comOnce I'm happy with all the changes, I FTP to the live siteWhen I decided to start u... | Git and website development workflow |
S3 + Glue Crawler is known for poor performance when having a lot of small files.What you could do is to create aAmazon Kinesis Firehose Delivery Streamto append your JSON files so that you have less files but each file is bigger in size. This will allow your glue crawler to be able to finish.the following architecture... | Got 11 million+ json files in S3.Tried to crawl and catalog them to AWS Glue.JSON File Details:Each file size is from 250KB to 2MB uncompressed.Logs:BENCHMARK : Running Start Crawl for Crawler impall
ERROR : Internal Service Exception
BENCHMARK : Crawler has finished running and is in state READYAm I missing any step i... | AWS Glue Crawler fails with 11 million files on S3 |
You can use the madvise call to tell the kernel what you will likely be doing with the memory in the future. For example:
madvise(base, length, MADV_SOFT_OFFLINE);
tells the kernel that you wont need the memory in quesion any time soon, so it can be flushed to backing store (or just dropped if it was mapped from a f... |
In the case that memory is allocated and its known that it (almost certainly / probably) won't be used for a long time, it could be useful to tag this memory to be more aggressively moved into swap-space.
Is there some command to tell the kernel of this?
Failing that, it may be better to dump these out to temp files, ... | How to selectively put memory into swap? (Linux) |
The issue here is in the function help from the base package utils. You have two packages that are both exporting a function with the same name. Specifically, DoE.base and FrF2 both export Yates, so help doesn't load an Rd file; instead, it wants you to choose between different files. But help_console doesn't know how... |
I can get help in R 3.1.2 on Yates function from FrF2 package through:
?FrF2::Yates
Now I want to get help in .tex format through help_console function from noamtools R package. I tried this code but not working:
help_console(topic="Yates", format = "latex")
and
help_console(topic="FrF2:Yates", format = "latex")
Th... | Getting help of R function using help_console function from noamtools R package |
So a kubernetes cluster is basically setup like a network. Every node/pod gets its own internal ip address and it's own entry in the kube-dns! All nodes and pods can communicate with each other over the given ip addresses (it doesn't matter if its a master node or not) or hostname.If you use Calico it implements a more... | I executed thekubectl get nodes -o widecommand, and in the results, there is a column labeled INTERNAL-IP, which displays the internal IP for each node. I would like to understand if the nodes use this IP to communicate with each other and with the control plane (master node) as well.Additionally, what role does Calico... | How do nodes communicate with each other in a Kubernetes cluster? |
with that push command you are not pushing mybranch1 into master.... you are pushing your local master branch into the remote master branch. Try this:
git push origin mybranch1:master
|
I committed some changes.
git diff correctly shows differences between my branch and origin/master on Github (for Pages).
Yet git push shows "Everything up-to-date."
(See full interaction below).
What am I doing wrong here?
$ git fetch
$ git status
On branch mybranch1
nothing to commit, working tree clean
$ git d... | Why won't my git push recognize changes in the codebase? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.