Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
I had the same problem with a daily cron job, I used the @daily but this will run at 00:00 every day.@daily /usr/local/bin/msa70_check.shwas the cron tab line i added, below is the script i run.#!/bin/bash # msa70 disk check /sbin/mdadm --detail /dev/md0 /dev/md1| /bin/mailx -s"Disk check on server123 please check"[ema...
I have a very simple script in my crontab that I want to run every day. It is located in/home:-rwxr-xr-x 1 root root 40 Apr 15 08:01 kill_slony_stop_sql.shIt has execute permission and here is the content:#!/bin/bash slon_kill;rcpostgresql stopand here is the cron line for it to run daily:56 12 * * * /home/k...
running a script in crontab
set NO_PROXY="$NO_PROXY,192.168.211.158/8443"That slash is not the port, it's theCIDRwhich defines how many IPs should be excluded from the proxy. Separately, it appears you somehow included the colon in the one provided to--docker-env, which I think is also wrong.And, the$NO_PROXY,syntax in yoursetcommand is also inco...
I am trying to start minikube behind a corporate proxy on Windows machine. I am using the following start commandminikube start --alsologtostderr --vm-driver="hyperv" --docker-env http_proxy=http://proxyabc.uk.sample.com:3128 --docker-env https_proxy=http://proxyabc.uk.sample.com:3128 --docker-env "NO_PROXY=localhost,1...
Kubernetes Minikube not starting behind corporate proxy (Windows)
I think you don't need to copy postgres jar in slaves as the driver programme and cluster manager take care everything. I've created dataframe from Postgres external source by the following way:Download postgres driver jar:cd $HOME && wget https://jdbc.postgresql.org/download/postgresql-42.2.5.jarCreate dataframe:atrri...
I have existing EMR cluster running and wish to create DF from Postgresql DB source.To do this, it seems you need to modify the spark-defaults.conf with the updatedspark.driver.extraClassPathand point to the relevant PostgreSQL JAR that has been already downloaded on master & slave nodes,oryou can add these as argument...
Using Postgresql JDBC source with Apache Spark on EMR
objc_msgSend() effectively drops messages to nil. If the method has a non-void return type, it will return something like nil, i.e. 0, NO, or 0.0, although this isn't always guaranteed all return types on all platforms. Thus, the only errors you're likely to encounter are when your object isn't really nil, (e.g. when...
I know it's ok to send the release message to nil objects. What about other messages? The following code prints 0 to the console. I'd like to understand why. NSArray *a = nil; int i = [a count]; NSLog(@"%d", i); Does sending messages to nil objects ever cause errors?
How does Objective-c handle messages sent to nil objects?
If your image is unix like, you can check if the proccess is running with$ ps aux | grep '[s]idekiq'But this don't guarantee that everything is working inside sidekiq and redis.A better approach is described/developed in this sidekiq pluginhttps://github.com/arturictus/sidekiq_aliveI'm facing problems withlivenessProbe...
I'm using kubernetes on my cluster with several rails / node docker images. Most of them have :3000/healtz health check that simply returns status 200 with OK in body.Now I'm trying to discover the best way how this health check can be performed on docker image running sidekiq. How I can verify that the worker is runni...
How to check health of docker image running sidekiq
First, this is only if you are on Android. Find a terminal emulator like Termux. Grant the emulator storage access. Move all the relevant files into a new folder. Install git, using whatever package manager you have (pkg or apt-get both work on Termux). Create a git remote on the GitHub website or app. Use your ...
When I search or ask for how to upload folder to GitHub from my mobile phone. Everyone is tell that you can only upload entrie folder on desktop or laptop computer. Please help me
How can I upload a entire folder to GitHub from my mobile phone?
Lots of options. The best option is probably to make a new branch and cherry-pick your fix into that branch: git checkout -b my-fix-branch origin/master git cherry-pick master git push -u origin my-fix-branch then do a pull request from my-fix-branch on GitHub. (This assumes your working branch is named master, based...
OK, I did something stupid. I forked a repo I am supposed to contribute to. So I then literally created a file called "blafile" to check I can commit (obviously I did not understand what a fork is) and committed with a message "check I can commit". I pushed to my github forked repo and forgot about it. I started fix...
I need to delete a commit to a fork
You can call cudaDeviceReset() at the end of your application if you choose. In fact, this is recommended for proper usage of the visual profiler. If you are in fact finished with the GPU and ready to exit your application, there should be no downside to using cudaDeviceReset() if you choose. Note that probably n...
There are various questions regarding the proper use of cudaDeviceReset(), but I haven't been able to find an answer to the following question. The doc on cudaDeviceReset() says that it explicitly destroys and cleans up all resources associated with the current device in the current process. Suppose I have a program...
cudaDeviceReset v. cudaFree
Something like this:#!/bin/bash set -x TEMPDIR=$(mktemp -d) CONFIG=$(aws cloudfront get-distribution-config --id CGSKSKLSLSM) ETAG=$(echo "${CONFIG}" | jq -r '.ETag') echo "${CONFIG}" | jq '.DistributionConfig' > ${TEMPDIR}/orig.json echo "${CONFIG}" | jq '.DistributionConfig | .DefaultCacheBehavior.LambdaFunctionAssoc...
I would like to update the cloudfront distribution with the latest lambda@edge function using CLI.I sawthis documentation, but could not figure out how to update the lambda ARN only.Can some one help?
How to update lambda@edge ARN in cloudfront distribution using CLI
I think you might want to investigate the other authentication components that CakePHP has to offer.BasicAuthenticateshould be of particular interest.If you go down this route, the authentication will still happen against a userModel rather than a .htpasswd file.As for the IP restriction, that should be relatively safe...
I am developing a website with CakePHP.I have anAdminsControllerfor admins to authenticate. However I want create extra security by adding .htaccess password protection.I tried to do it by adding.htaccessand a.htpasswdfiles in my Admins view directory since I want the other pages of my site to work normally, but it doe...
Prevent access to a specific view in cakephp
I am not sure you can ever do it.fmin_l_bfgd_bis provided not by pure python code, but by a extension (a wrap of FORTRAN code). In Win32/64 platform it can be found at\scipy\optimize\_lbfgsb.pyd. What you want may only be possible if you can compile the extension differently or modify the FORTRAN code. If you check tha...
I am trying to optimize functions with GPU calculation in Python, so I prefer to store all my data as ndarrays withdtype=float32.When I am usingscipy.optimize.fmin_l_bfgs_b, I notice that the optimizer always passes afloat64(on my 64bit machine) parameter to my objective and gradient functions, even when I pass afloat3...
How to enforce scipy.optimize.fmin_l_bfgs_b to use 'dtype=float32'
I'm confused, though, as to why most Dockerfiles specify the OS in the FROM line of the Dockerfile. I thought that as it was using the underlying OS, then the OS wouldn't have to be defined. I think your terminology may be a little confused. Docker indeed uses the host kernel, because Docker is nothing but a way...
I've read that on linux, Docker uses the underlying linux kernal to create containers. So this is an advantage because resources aren't wasted on creating virtual machines that each contain an OS. I'm confused, though, as to why most Dockerfiles specify the OS in the FROM line of the Dockerfile. I thought that as it w...
If docker uses the underlying linux os, why specify the OS in the FROM line of a Dockerfile
When you first asked this question, it was not possible. But it is now possible to do asynchronous memcache operations in the Python version of the SDK starting in version 1.5.4 (see the announcement) and for Java users from version 1.6.0 (announcement)
A typical usage of the memcache (in pseudocode) looks like this: Map data = getFromMemcache(key); if(data == null){ data = doSomethingThatTakesAWhile(); setMemcache(key, data); } return data; If the setMemcache call could be asynchronous, that would be about 10 less milliseconds the user has to wait for their r...
Google App Engine - Is there any way to do an asynchronous memcache set?
The Iguazio uses for monitoring standard technology stack Prometheus and Grafana, it means, it is possible to see performance of NGINX (web server in Iguazio).Grafana dashboard see 'private / NGINX - Request Handling Performance' and view to the 'Total request handling time':
How does it possible to identify throughput in MLRun solution (I use MLRun 1.3.0 with Iguazio version 3.5.2)?I am using MLRun real-time function 'nuclio-risk-sentiment' and I would like to see request/response time of MLRun.It is easy to see e.g. view to the Memory, CPU, Network I/O usage (see the board in grafana 'pri...
MLRun, Issue with view to REST API throughput
A nested location is the right way to create locations with regular expressions and it should do the trick for what you want to achieve. location / { proxy_pass http://192.168.12.12:91; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-...
I want to cache all *.html files in a Nginx reverse proxy, So I added the config: # Original configuration location = / { proxy_pass http://192.168.12.12:91; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwar...
How can I optimize this nginx proxy cache configuration?
The problem is, you installed it in/codeigniter3/This should fix it:// remove index.php $config['index_page'] = "" // Allow installation in a subfolder of your webroot $config['uri_protocol'] = "REQUEST_URI"And keep your rewrite settings, they are ok.
I try to remove the index page in Codeigniterthe first step I do this //old Code$config['index_page'] = "index.php”//New updated code(Only Need to remove index.php )$config['index_page'] = ""then for second step i do this creat file .htaccess in root of codigniter then put this code sourceRewriteEngine On RewriteCond ...
How to Remove index.php in URL
Change the remote url tossh.https will keeep asking you for password every time you wish to rungit pull/push/fetch.Simply follow those steps and you will set up your ssh key in no time:Generate a new ssh key (or skip this step if you already have a key)ssh-keygen -t rsa -C "your@email"Once you have your key set inhome/...
I'm facing this issue when I try to push the code to the repository from my local machine.user@user:~/rails_projects/first_app$ git push origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.How do I reso...
How do I remove the permission in Github?
Prometheus by default doesn't accept data via remote_write protocol. This option can be enabled by running a Prometheus with--enable-feature=remote-write-receivercommand-line flag. Seethese docs.Side notes:You can also write the collected data from client-side Prometheus to any other supported centralized Prometheus-co...
I have been trying to setup monitoring for a server which is on client side (unreachable).One way I tried was prometheus remote write. As I am new to prometheus, I expected that Client prometheus will push the metrics to central prometheus further I can create a Grafana dashboard. I guess I am wrong, somehow I am getti...
Prometheus for unreachable endpoint monitoring
It sounds like you want an exact duplicate of the repository on GitHub without marking it as a fork. GitHub documents how toduplicate a repositoryin their help.To make an exact duplicate, you need to perform both a bare-clone and a mirror-push.Open up the command line, and type these commands:git clone --bare https://g...
Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed9 years ago.Improve this questionWhat is your workflow if you have a "boilerplate" pushed in github, and you'll be creat...
Version control an application that is cloned from a boilerplate [closed]
25 On GitHub it's not possible to compare two unrelated repos. On your computer you can: Go to the working directory of your local repo Add a remote for the other repo and fetch it Compare using git diff For example: cd /path/to/repo git remote add other URL_TO_OTHER git ...
This question already has answers here: How do I compare two git repositories? (6 answers) Closed 7 years ago. Git novice here, how do I compare two completely separate repos (no f...
How do I compare repos from different projects through github? [duplicate]
Answer from micrometer support:Generally I'd say this isn't necessary. The value of the metric is a floating point seconds value. If you want to display ms on a chart you can safely multiply the time series by 1000 There is a healthy principle of using base units whenever possible. Seconds is a base unit, which makes i...
At the moment on my endpoint/actuator/prometheusI receive answer for timer like this:... # HELP MY_NAME_seconds # TYPE MY_NAME_seconds summary MY_NAME_seconds_count{application="MyApplication",smth="else",} 520.0 MY_NAME_seconds_sum{application="MyApplication",smth="else",} 1249.024 # HELP MY_NAME_seconds_max # TYP...
How can I change metrics naming in Micrometer
<Files "\.pdf$"> Header set X-Robots-Tag "noindex, nofollow" </Files>You have copied the linked solution incorrectly. To match a regex with theFilesdirective you need the additional~argument. ie.<Files ~ "\.pdf$">. (Although theFilesMatchdirective is arguably preferable when using a regex.)However, you do not need a ...
My sample PDF URL is:https://askanydifference.com/wp-content/uploads/2022/09/Difference-Between-Import-and-Export.pdfI am trying to noindex all my PDF files in my wordpress website. While doing research, I learnt that they can only be marked noindex using .htaccess and not any other means as pdf files don't have any ht...
X-Robots-Tag not shown in HTTP response header
On the cron command line type:bash -l -c '/home4/USER/public_html/code.rb'On top of your code.rb file add:#!/usr/local/bin/rubyand also open and edit.bashcr just to make sure you have the gems directory included.export HPATH=$HOME export GEM_HOME=$HPATH/ruby/gems export GEM_PATH=$GEM_HOME:/lib64/ruby/gems/1.9.3 export ...
My Cron Setup is:0 * * * * ruby /directory/to/ruby/file.rbAnd I get this error:/usr/lib64/ruby/1.9.3/rubygems/custom_require.rb:36:in `require': cannot load such file -- mechanize (LoadError) from /usr/lib64/ruby/1.9.3/rubygems/custom_require.rb:36:in `require' from /home4/ofixcom1/rails_apps/products.rb:3:in `<main>'W...
Command to run a RUBY cron job on JUSTHOST
You can see all this and more if you load the SOS.dll (or PSSCOR2.dll) extension into WinDbg or even into Visual Studio.SOS is a part of the .NET framework and it basically turns a native debugger such as WinDbg into a "managed code aware" debugger.SOS has commands that will let you inspect the managed heap, objects an...
Ok, This question is not exactly a programming question but this is what can really make programming more practical and easy to implement.This question is coming out beacuase each-time I writeint c=10;orMyClass objMyClass=new MyClass();I want to see where in the memory the value has been created (Though We can see the ...
Is there a CPU emulator or a way to see how things are created and Destroyed in Memory
The recommend method is multistage builds: https://docs.docker.com/develop/develop-images/multistage-build/ That is dont separate production from test docker files. Instead keep all the requirements in one file and build for the target stage you need. An example Dockerfile: FROM python:3.8.7-slim-buster AS production ...
I have a Dockerfile which installs production & test dependencies. I want to have separate image for tests, so production image is smaller, without to much code duplication. Maybe there is something like FROM statement for referencing other Dockerfiles? Dockerfile has following lines: ADD requirements.txt ${PROJECT_DI...
How to implement Dockerfile inheritance?
13 We ran into a similar issue for an application I'm working on. The solution we ended up working with is generating S3 signed URLS, that have short expiration times on them. This allows us to generate a new signed link with every request to the web server, pass that l...
When I go to the url of my bucket file it downloads straight away. However I only want users that are logged into my application to have access to these files. I have been searching for hours but cannot find out how to do this in php from my app. I am using laravel to do this so the code may not look familiar. But ess...
restrict access to amazon s3 file to only allow logged in users access
Is the KubeDNS addon running?You should see something like this in yourkube-systemnamespace when you list pods:If you don't see those pods, try installing the addon:https://coreos.com/kubernetes/docs/latest/deploy-addons.html
I created a cluster with 2 vm's. I followed instructions listed below.This is on RHEL 7.3 This is after kubernetes was installed using yum. The version of kubernetes is 1.7commands on Master01-onlysysctl net.bridge.bridge-nf-call-iptables=1 sysctl net.bridge.bridge-nf-call-ip6tables=1 systemctl stop firewall systemctl ...
dns issue on newly created kubernetes cluster
Because you didn't setX509KeyStorageFlags.PersistKeySetas required, the certificate is in fact not imported to the store as you wished.Further explanation can be found inKB950090
I am trying to replicate what IIS Import does. I have an application that needs to import the certificates programmatically but its not working because i seem to be missing a step. If i import the same certificate through IIS Import utility it works perfectly.In code:private X509Certificate2Collection x509 = new X509Ce...
Where does IIS import cert to?
Remove the equal signENV NODE_ENV productionShareFollowansweredMar 20, 2019 at 17:26Cody SwannCody Swann65766 silver badges99 bronze badges2But i have other variables like ENV UV_THREADPOOL_SIZE=5 which does not have any issue.–HackerMar 20, 2019 at 17:283Syntax is not the problem in this case,ENVsupports both styles a...
I am trying to use below code below code in nodejsif (process.env.NODE_ENV !== 'production')I tried to set NODE_ENV variable from docker file like below.FROM collinestes/docker-node-oracle:10-slim ENV NODE_ENV=production EXPOSE 8085 CMD ["npm","start"]If i to run my docker image it does not start and throws error. If ...
set NODE_ENV variable in production via docker file
As far as I know this is not achievable by putting each section as an array element. Instead you can do something like the following:command: - /bin/sh - -c - | ./kubectl -n $MONGODB_NAMESPACE exec -ti $(kubectl -n $MONGODB_NAMESPACE get pods --selector=app=$MONGODB_CONTAINER_NAME -o jsonpath=...
I have misunderstanding with how to execute $() commands in exec. i'm creating a job in kubernetes with this params:command: - ./kubectl - -n - $MONGODB_NAMESPACE - exec - -ti - $(kubectl - -n - $MONGODB_NAMESPACE - get - pods - --selector=app=$MONGODB_CONTAINER_NAME - -o...
how to execute an argument in kubernetes?
Some of reasons not to cache entities:When the entities are changed frequently (so you would end up invalidating/locking them in the cache and re-reading them anyway, but you pay an extra cost of cache maintenance which is not low since cache write operations would be frequent).If there are a large number of entity ins...
In my experience, I have typically used the shared cache setting:<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>My process is to then think about which entities are not expected to change often and those that would benefit from the cache, performance wise, and mark those as@Cacheable. My practice of using sele...
Second Level Cache - Why not cache all entities?
This is a community wiki answer based on OP's comment posted for better visibility. Feel free to expand it.The issue was caused by using different versions of docker on different nodes. After upgrading docker to v19.3 on both nodes and executingkubeadm resetthe issue was resolved.
Versionk8s version: v1.19.0metrics server: v0.3.6I set up k8s cluster and metrics server, it can check nodes and pod on master node, work node can not see, it return unknown.NAME CPU(cores) CPU% MEMORY(bytes) MEMORY% u-29 1160m 14% 37307Mi 58% u-31 2755m 22% 51647Mi 80...
About k8s metrices server only some resources can be monitored
I am using latest version of kubernetes version 1.0.1FYI, the latest version isv1.2.3.... it says kube-system not foundYou can create the kube-system namespace by runningkubectl create namespace kube-system.Hopefully once you've created the kube-system namespace the rest of the instructions will work.
enter image description hereI tried to used the instructions from this linkhttps://github.com/kubernetes/heapster/blob/master/docs/influxdb.mdbut I was not able to install it. specifically I dont know what this instruction means "Ensure that kubecfg.sh is exported." I dont even know where I can find this I did thissudo...
How to install influxdb and grafana?
Its possible to create multiple databases in the same cluster. I have used the below reference for pgo client to do that . First you need to create a superuser and then use that super user to create multiple databases in the cluster. I havent used CRDs to create the databases if you are looking for that specific way to...
I installed Crunchydata Postgres Operator on K8S by following thislinkI found the followinglinkto create PG Cluster.resource "kubectl_manifest" "pgocluster" { yaml_body = <<YAML apiVersion: crunchydata.com/v1 ........... ........... ........... kind: Pgcluster ccpimage: crunchy-postgres-ha ccpimageprefix: registr...
How to create multiple databases on same cluster of postgres operator?
0 Actually i did some tests and concluded that if you comment out the mime.types line in the /etc/nginx/nginx.conf file # include /etc/nginx/mime.types And restart nginx sudo service nginx restart And you clear the browser cache before accessing again your page, you will...
I have a custom nginx.conf file that I start nginx with using the cli, for example nginx -c /my/path/nginx.conf. I have found that if I take the include /my/path/mime.types from the custom nginx.conf file, that the server still starts up fine, and webpages seem to load normally with no apparent errors. I have been res...
What happens if no mime.types is included in nginx.conf?
You can first squash all the commits hat handled the big file. To do so, you can juste reset (soft) to the commit before the one you tried to push the big file.For instance, if your tree is like this:--> c0 ---> c1 (commit big file) ---> c2 (revert commit big file) --> c3 (other changes)You can just reset soft to c0, a...
This question already has answers here:How can I remove/delete a large file from the commit history in the Git repository?(24 answers)How do I squash my last N commits together?(46 answers)Closed6 months ago.Yesterday I tried to commit a repository to GitHub but it had a big file, so it returned an error. After this, t...
Delete previous commits and push just the actual commit [duplicate]
you can use Infinity plugin, to visualise your data as timeseries:in my case I needed to add data transformation, to treat timeStamp as time:I used API mocking service:https://somegrafanademo.free.beeceptor.com/to present data:
I have a sample json & I'm using JSON API plugin as i'm getting data from API{ "data": [ { "timeStamp": "2022-07-28 12:00:00", "val": 10 }, { "timeStamp": "2022-07-28 13:00:00", "val": 11 }, { "timeStamp": "2022-07-2...
how to create graph in grafana using Json data?
You can addcurlygirly's repo as aremoteto your original repo and merge in changes from it just like any other branch. For example, if you want to merge everything oncurlygirly'smasterbranch into your original repo'smaster:git remote add curlygirly https://github.com/curlygirly/yelp_clone-1.git git fetch curlygirly git ...
I'm still very new to coding and Github and as such am a little confused with how forking repos works - so please forgive what may be a basic question.I've been working on a project with different pair partners all week and my current code base situation is as follows:My initial repo -https://github.com/timrobertson012...
How do I merge between multiple forked repositories on GitHub?
The latest version allows you to map different branches to different repositories, seeAnnouncement: Deploy Git Branches to Multiple Elastic Beanstalk Environments:Starting today, you can use eb and Git to deploy branches to multiple Elastic Beanstalk environments. You can also manage and configure multiple Elastic ...
I have two different environments running off of the same git repository. it looks like in the AWS console tools for git and elastic beanstalk, I can only connect one environment at a time, is there anyway to have it push to both of my environments at the same time?
aws.push to more than one environment
Short-term, you could likely just use the scheduling capabilities in IronWorker and have the worker hit an endpoint in your application. The endpoint will then trigger the operations to run within your app environment.Longer-term, we do suggest you look at more of a service-oriented approach whereby you break your appl...
My website is hosted on AWS Elastic Beanstalk (PHP). I use Yii Framework as an MVC.A while ago I wanted to run a SQL query everyday. I looked up how to run crons on Beanstalk and it seemed complicated to merge the concepts of Cloud and Cron. I ran into Iron Worker (http://www.iron.io/worker), and managed to create a wo...
Use IronWorkers while using my work
Warning:This answer is out-dated. You should useEnvironment.getExternalStorageDirectory()to get the root path of the SD card as mentioned in the answers below.Old Answer so the comments on this make sense:Adding/sdcard/to the root your path should direct your Android application to use the SD card (at least it works t...
Is there a way to store android application data on the SD card instead of in the internal memory? I know how to transfer the application sqlite database from the internal memory to the SDCard, but what if the internal memory gets full in the first place? How does everyone handle this?
storing android application data on SD Card
You can usekustomize editto edit thenameprefixandnamesuffixvalues.For example:Deployment.yamlapiVersion: apps/v1 kind: Deployment metadata: name: the-deployment spec: replicas: 5 template: containers: - name: the-container image: registry/conatiner:latestKustomization.yamlapiVersion: kustomize.c...
In Helm, it is possible to specify a release name usinghelm install my-release-name chart-pathThis means, I can specify the release name and its components (using fullname) using the CLI.In kustomize (I am new to kustomize), there is a similar concept,namePrefixandnameSuffixwhich can be defined in akustomization.yamlap...
Is it possible to have a dynamic namePrefix/nameSuffix in kustomize?
Looks like we found the bug - it was in the code. :)After some time, we found the Lambda logs on Cloud Watch that matched API Gateway's logs, and we saw some database timeouts. We are still investigating the details, but the issue was with express middleware for logging.It was accessing the database even on OPTIONS and...
As NodeJS 8.x runtime on AWS Lambda is EOL, we moved our staging environment for our REST API to NodeJS 12.x..Now we noticed, that at some random times request from frontend web app to API Gateway fails with 502. Usually this happens after API is idle for some time (few minutes). Mostly this happens for OPTIONS or HEAD...
Randomly getting 502 Bad Gateway response from AWS API Gateway after changing Lambda runtime from Node 8.x to Node 12.x
<project_name>, <build-status>, <current-phase>needed to be passed as separate values. You cannot use them for string interpolation.[doc]You will need to modify you lambda input format and construct your message inside the lambda function.{ "channel":"#XYZ", "project_name": <project_name>, "current-phase": <current-p...
Goal: I want to trigger notification to slack on any phase change in codebuild. I have a lambda that does for me and it expects a request as follows:{ "channel":"#XYZ", "message":"TESTING <project_name> from <build-status> to <current-phase>" }So I try create a event from cloudwatch events and trigger my lambda:So I tr...
How to create JSON from AWS cloudwatch Input Transformer
Yes, the code will still be there after you delete your repo. As soon as you submit your pull-request, Github internally adds that branch to the target repo (it creates a branch in a non-default namespace, so you usually don't see those). Since PRs cannot usually be deleted, those branches will exist in the target rep...
Following scenario: I forked an open source repository (GitHub -> project -> Fork). Then I cloned my project copy locally, made some changes in the master branch, commited them, and pushed to my repository: $ git clone [email protected]:myusername/originalprojectname.git ... changes ... $ cd originalprojectname $ git ...
Understanding pull requests on GitHub: What happens, when the requesting repository is deleted?
Before deployment, open the Docker app/daemon on your machine.
Using AWS CDK, I am trying to deploy the Docker image with lambda function on AWS. And I am getting the following error. [100%] fail: docker login --username AWS --password-stdin https://XXXXXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com exited with error code 1: Error saving credentials: error storing credentials - err: ex...
AWS CDK: Error saving credentials: error storing credentials - err: exit status 1
There are a couple of problems: int main() { PicLib *lib = new PicLib; beginStorage(lib); return 0; } It is best to allocate and delete memory in the same scope so that it is easy to spot. But in this case just declare it locally (and pass by reference): int main() { PicLib lib; beginStorage(li...
I've just started combining my knowledge of C++ classes and dynamic arrays. I was given the advice that "any time I use the new operator" I should delete. I also know how destructors work, so I think this code is correct: main.cpp ... int main() { PicLib *lib = new PicLib; beginStorage(lib); return 0; } ...
Am I using delete correctly here?
If I understand correctly: With every code push, CI pipeline creates new image, where new version of application is deployed. As a result, previously created image becomes outdated, so you want to remove it. To do so, you have to:Get rid of all outdated containers, which where created from outdated imagedisplay all con...
I have a CI-pipeline that builds a docker image for my app for every run of the pipeline (and the pipeline is triggered by a code-push to the git repository.)The docker image consists of several intermediate layers which progressively become very large in size. Most of the intermediate images are identical for each run...
How to delete cached/intermediate docker images after the cache gets invalidated?
In my understanding, in GKE, I can only have single type (instance template) of machines in each cluster.... Do I need to run separate clusters for different requirement?Yes, this is currently true. We are working on relaxing this restriction, but in the mean time you cancopy the instance templateto create another set ...
I am trying to deploy a web application using Kubernetes and google container engine. My application requires different types of machine. In my understanding, in GKE, I can only have single type (instance template) of machines in each cluster, and it reduces to wasting resource or money to mix different pods in single ...
Kubernetes node capacity planning for various pod requirements in GKE
0 In docker compose yml file, you can modify the memory limit of a container. You could try to increase that limit, in your image configuration section, as follows: ... deploy: resources: limits: memory: <memory size> More info here Sh...
I have a spring boot application running on ubuntu 20 ec2 machine where I am creating around 200000 threads to write data into kafka. However it is failing repeatedly with the following error [138.470s][warning][os,thread] Attempt to protect stack guard pages failed (0x00007f828d055000-0x00007f828d059000). [138.470s][...
os::commit_memory failed; error=Not enough space (errno=12)
There are various ways to control access to the S3 objects:Use the query string auth - but as you noted this does require an expiration date. You could make it far in the future, which has been good enough for most things I have done.Use the S3 ACLS - but this requires the user to have an AWS account and authenticate ...
Trying to understand S3...How do you limit access to a file you upload to S3? For example, from a web application, each user has files they can upload, but how do you limit access so only that user has access to that file? It seems like the query string authentication requires an expiration date and that won't work f...
Amazon S3 permissions
The solution was to update slather to version 2.5 and also generate coverage in the sonarqube generic mode. Follow the steps for successful reproduction:Build xcodebuild -workspace 'YourProject.xcworkspace' -scheme DEV -derivedDataPath Build/ -enableCodeCoverage YES clean build test CODE_SIGN_IDENTITY="" CODE_SIGNING_R...
I'm trying to perform the conversion for SonarQube to interpret coverage and I get this error:Error: Error Domain=XCCovErrorDomain Code=0 "Failed to load result bundle" UserInfo={NSLocalizedDescription=Failed to load result bundle, NSUnderlyingError=0x7fdaa840a8d0 {Error Domain=IDEFoundation.ResultBundleError Code=0 "T...
Someone got convert coverage in new version xcode12 - SonarQube
The request was failing because I wasn't setting the region for the client before making the request. The default region is probably US East and my table is setup in EU West. This fixed it: import com.amazonaws.regions.Region; import com.amazonaws.regions.Regions; client.setRegion(Region.getRegion(Regions.EU_WEST_1))...
I'm just getting up and running with DynamoDB using the Java SDK (v1.8). I've created a very simple table using the AWS console. My table has a primary hash key, which is a String (no range). I've put a single item into the table with 4 other attribute values (all Strings). I'm making a simple Java request for that it...
Simple DynamoDB request failing with ResourceNotFoundException
Have you looked at this?http://blogs.microsoft.co.il/blogs/srlteam/archive/2006/11/27/TFS-Permission-Manager-1.0-is-Finally-out.aspx
Is there a way to export all of TFS 2008 Groups and Permissions for an Audit?
Export TFS 2008 (Team Foundation Server) Groups and Permissions
I had a browse around and managed to find my answer. It is solved by the following postIs there a way to skip password typing when using https:// on GitHub?Works a treat!!ShareFolloweditedMay 23, 2017 at 11:43CommunityBot111 silver badgeansweredMay 14, 2015 at 9:22user1107753user11077531,59655 gold badges2424 silver ba...
I am trying to set up a Jenkins Windows slave which will pull from GitHub using Git Bash. I have installed Git Bash on my Windows server so it is available through the Windows command prompt. When I try to invoke any Git command that goes to GitHub it always asks for my credentials.How can I set this up so it does not ...
Store GitHub credentials on Windows with Git Bash
Here is the answer incase someone in future is having the same problem: EV certificates are only supported on paid business or enterprise subscriptions:https://support.cloudflare.com/hc/en-us/articles/200170446-Can-I-use-an-EV-or-OV-SSL-certificate-with-CloudFlare-Business-and-Enterprise-only-
I have certified SSL from godaddy. It works fine and the green address bar with the name of my company shows up when I use it without cloudflare. However when I change my dns to cloudflare and turn SSL Strict mode on, the green lock says I have SSL from cloud flare (it shows a different ssl certificate). I don't know w...
Custom SSL doesn't show when using CloudFlare
Execute the command:docker inspect --format="{{json .Config.ExposedPorts }}" src_python_1Result:{"8000/tcp":{}}Proof (usingdocker ps):e5e917b59e15 src_python:latest "start-server" 22 hours ago Up 22 hours 0.0.0.0:8000->8000/tcp src_python_1
Assuming that I start a docker container with the following commanddocker run -d --name my-container -p 1234 my-imageand runningdocker psshows the port binding for that image is...80/tcp, 443 /tcp. 0.0.0.0:32768->1234/tcpIs there a way that I can usedocker inspectto grab the port that is assigned to be mapped to1234(in...
How can I grab exposed port from inspecting docker container?
You should probably just ignore it. The swap trick frees the memory from the vector, but that does not mean that the allocator (or even the malloc or equivalent implementation underneath) will yield the memory back to the system. That is, the vector is most probably not the one holding the memory up.
Consider the following code, compiled with g++ problem.cpp -o problem: #include <vector> using namespace std; int main() { while(1){} return 0; } When this code is executed, the command top reports that ~80K of memory is being consumed. Now consider this code: #include <vector> using namespace std; int ma...
Problem with memory deallocation for non-dynamically created std::vectors storing normal (i.e. non-dynamically allocated) data
That depends entirely on how many sessions are typically present (which in turn depends on how many users you have, how long they stay on the site, and the session timeout) and how much RAM your server has. But first of all: have you actually used a memory profiler to tell you that your "high memory usage" is caused ...
We are running into unusually high memory usage issues. And I observed that many places in our code we are pulling 100s of records from DB, packing it in custom data objects, adding it to an arraylist and storing in session. I wish to know what is the recommended upper limit storing data in session. Just a good practi...
How much session data is too much?
Google Container Engine does not support CPU Quota by default. If you'd like to use CPU quota you can switch to using GCI Node image -https://cloud.google.com/container-engine/docs/gci. GCI has support for CPU quota and Container Engine would automatically start supporting CPUlimitson containers.
I've set cpu limits on my Kubernetes pods, but they do not seem to cap cpu usage at all running on Google Container Engine version 1.3.3Readinghttps://github.com/kubernetes/kubernetes/tree/master/examples/runtime-constraintsthis has to be enabled on the kubelet as follows:kubelet --cpu-cfs-quota=trueHowever when checki...
Does Google Container Engine have CFS cpu quota enabled?
Just found the answer in thedocs: Relative time. With this option you can set a timerange per graph.
I'm trying to set up a monitoring dashboard that contains two graphs. One that shows current hour transaction volumes (in 1 minute intervals from current hour start until now) and one that shows current day transaction volumes (in 10 minute intervals from 00:00 until now). I can't seem to find a way to display two diff...
Can you have different time ranges on different panels on the same dashboard?
Solved : There are two parameters taken by aws-sdk : Expression Attribute Name Expression Attribute Value both provide the functionality of replacing placeholders used in the attributes list. Here by Attributes it is a bit ambiguous, where I got confused. The wizards over at aws mean both the key and value when they u...
My scan function : var tableName = 'faasos_orders', filterExp = 'status = :delivered OR status = :void OR status = :bad', projectionValues = '', expressionAttr = {}; expressionAttr[":delivered"] = "delivered"; expressionAttr[":bad"] = "bad"; expressionAttr[":void"] = "void"; limit = 1...
Scan Function in DynamoDB with reserved keyword as FilterExpression NodeJS
Seeing as each gist is in fact a git repository, you could use the git submodule feature to include them all in your primary GitHub repository. Have a look at this page from the book, http://git-scm.com/book/en/Git-Tools-Submodules , it even has a section on so-called Superprojects.
I am developing a pretty large JavaScript library (Formula.js) of functions (450+). Most of them are pretty independent from each other and totally self-contained, or make use of well-known third-party libraries (Moment.js for example). In order to support discussions and manage contributions at the function level rat...
How to synchronize a GitHub repository and multiple Gists
The problem has been resolved.I changed--cluster-cidr=10.254.0.0/16for kube-proxy to--cluster-cidr=172.30.0.0/16. And then it worked well.The kube-proxy cluster-cidr needs to match the one used on the controller manager, also the one used by calico.
For every service in k8s cluster, kubernetes do snat for request packets. The iptables rules are:-A KUBE-SERVICES ! -s 10.254.0.0/16 -d 10.254.186.26/32 -p tcp -m comment --comment "policy-demo/nginx: cluster IP" -m tcp --dport 80 -j KUBE-MARK-MASQ -A KUBE-SERVICES -d 10.254.186.26/32 -p tcp -m comment --comment "polic...
how to avoid snat when using service type clusterip on kubernetes?
When we don't want to modify our input messages and want to publish unmodified messages to the output , processor can be removed and only input and output configuration are sufficient. Removing processor solved my problem . Following the working configurationinput: http_server: address: "" pat...
i want to create a pipeline to read XML data from postman http url and consume it through benthos input configuration and publish this message to a kafka topic using benthos processor . Following is the configuration , i was trying but doesn't seem workinginput: http_server: address: "" path: ...
Benthos pipleline to read XML from postman and publish to kafka topic
sudo firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 0 -d 0.0.0.0/0 -j ACCEPT sudo firewall-cmd --reload
firewalld command alternative ofiptables -P FORWARD ACCEPTI have to runiptables -P FORWARD ACCEPTin order to run kubernetes cluster and communicate from pods using the service name.Problem is that I have k8s cluster running on centos7 and using firewalld instead of iptables and that is default in cenots, without iptabl...
firewalld command alternative of iptables -P FORWARD ACCEPT
Based on the comments, the exact cause of the issue is undetermined. However, the problem was solved by creating a new Service Discovery in ECS.
I have six docker containers all running in their own Tasks (6 tasks), and each task running in a separate Fargate service (6 services) on ECS. I need the services to be able to communicate with each other, and some of them need to be publically accessible. I keep seeing info about using either Service Discovery or a ...
How to communicate between Fargate services on AWS ECS?
It worked for me by using external directories provided by maven jib plugin. <extraDirectories> <paths> <path>webapp</path> <path> <from>webapp</from> <into>/app/webapp</into> </path> </paths> </extraDirectories>
I am creating docker image using google's Jib maven plugin, image gets created successfully and backend services are working fine but my webapp folder is not part of that image. Before jib i was creating a zip containing everything (including webapp folder in the root of that zip along with executable jar) which was w...
Jib - where to copy webapp folder inside image?
The question is quite open-ended. However having gone through this thought process recently, I can come up with two options:hostPath: You mount this data (probably from NFS or some such) at/data(for example) on all your Kubernetes nodes. Then in Pod specification, you attach volume of typehostPathwithpath: /data.Gluste...
A question that I can’t seem to find a good answer to and am so confused as to what should be an easy answer. I guess you can say I can't see the forest for the trees.I have N Pods that need access to the same shared FILE SYSTEM (contains 20Gig of pdfs, HTML) only read. I don’t want to copy it to each Pod and create a ...
Kubernetes shared File System across Pods
2 I don't think you can reference localhost on heroku. Try using postgres url instead, e.g: postgres://dbUserName:[email protected]:dbPortNumber/dbName. its easier to manage. Heroku has a postgres service to. You could follow this link to learn more about the postgres add...
when trying to deploy my app in heroku, I get this error: I'm trying to search the net but I can't find anything definitive. Just say that it works perfect for me at local. I use MAMP, the database is in myphpadmin and I think I imported it correctly in Heroku. The .env variables that I have are: BD_NAME = agencydevi...
Problems uploading an application to HEROKU, Failed with async. H12
Use the following:route: repeat_interval: 10h routes: - match: severity: 'critical' receiver: 'email' repeat_interval: 200h continue: trueShareFollowansweredMay 19, 2021 at 14:23Marcelo Ávila de OliveiraMarcelo Ávila de Oliveira20.9k33 gold badges4242 silver badges5353 bronze badges...
We are using Prometheus to send alerts. We have a globalrepeat_intervalroute of 10 hours as default, but I would like to up this to 200 hours for a specific receiver/type of alert.I have already upped the--data.retentionto 200 hours (as it defaults to 120h), but I don't want to change the defaultrepeat_interval, only f...
Can I set AlertManager repeat_interval for a specific receiver/alert?
Those messages are from systemd itself about the mount. This is addressed in systemd v249; seehttps://github.com/systemd/systemd/issues/6432for more information.In a nutshell, that version of systemd allows controlling of that mount via its unit file using the following:[Mount] LogLevelMax=0The LogLevelMax setting appl...
I've google this, but so far no way to fix it. My syslog under /var/log is being flooded every second with messages like this;Aug 27 20:58:27 mail-server systemd[1]: run-docker-runtime\x2drunc-moby-e4bfb13118b141bf232cf981fe9b535706243c47ae0659466b8e6667bd4feceb-runc.YHoxmJ.mount: Succeeded. Aug 27 20:58:27 mail-server...
Docker flooding syslog with run-docker-runtime logs
If thejobis spawned by acronjob, then you can just delete thejobresource andsuspendthecronjob(seehere. Also seehereregarding "missed jobs" which will happen while thecronjobis suspended).Then when you are ready to resume, justunsuspendthecronjob, and the next triggered cycle will re-create thejobresourceIf the job is c...
This question already has answers here:What is the difference between a Pod and a Job resources in k8s?(3 answers)Closed1 year ago.I wanted to stop my job for sometime. What would be the recommended approach for it?If I delete job then it will delete all pods associated to the job.yaml file .Scalling down pods to zero...
What is the difference between deleting a job vs pod scale down to zero [duplicate]
Yes. If a file is tagged in .gitattributes as export-ignore, then it will not be included in the archive. This is a feature of git archive, and GitHub uses git archive internally to generate archives. There is no way to disable this feature, although if you were using git archive by hand, you could use --worktree-at...
I had some issues with a deploy and has to revert back to a tagged version of the code. When reviewing the changes between the the tagged code and the git code it had some changes like changelog. Is there a list of exclusions for a zipped tag version of the code?
What files are left out of the tagged github zip?
1 Conflict is not a fail when using Github. git is saying 'hey I'll do everything, just let me know what is right when two of you write different code at the same file at the same time' There are several tools that helps you merge when conflict happens. (ex. Github Desktop ...
Have a question regarding two scenarios: We are all working on a repo. Usually I’m working on my own folder, so everything I do is ok. But what if I’m working on a change in a file but the other developer work in the file at the same time? I checkout a local branch The other developer checkout another local branch The...
Which is the best method to fix conflicts ? Rebase or Merge?
This sample repository show demo use ofFinalizerandInitializer. Finalizer are used here for garbage collection.Repostory:k8s-initializer-finalizer-practiceHere, I have created a custom controller for pods, just like Deployment.I have usedInitializerto addbusyboxsidecar orfinalizerto underlying pods. Seehere.When aCusto...
Kubernetes SupportsFinalizer in CRto prevent hard deletion. I had a hard time to find sample code though. Can someone please point to real code snippet?
Kubernetes CRD Finalizer
2 I had the same issue. What I found was that the error message was misleading. Here's what worked for me: Try this: protoc ./proto/hello/hello.proto --go_out=plugins=grpc:./outputDirectory -I ./proto/hello/hello.proto Parts of the command obviously look redundant, but t...
I am trying to build a project using maven on teamcity and getting this error during maven build step. [Step 2/4] [ERROR] protoc failed output: [Step 2/4] [ERROR] protoc failed error: /bin/sh: 1: protoc: Permission denied [Step 2/4] [13:03:14][Step 2/4] Failed to execute goal com.google.protobuf.tools:maven-pr...
Permission denied for protoc on maven build in Teamcity
The number of contributors to a repository as listed on the repository's front page is the number of people who have code in that repository (or possibly the main branch). It doesn't reflect how many people have permissions on the repository.For example, when looking athttps://github.com/git/git, there are 1366 contri...
I just invited a user to collaborate with my public repository, and she accepted my invitation. But her name is not shown in repository title and repository still show 1 contributor. In manage section, I can see her name as one of the contributors.what is wrong?
New contributor is not shown in public repository
This should work:RewriteEngine On RewriteCond %{THE_REQUEST} ^(GET|POST)\ /\?til=(.*)\ HTTP [OR] RewriteCond %{THE_REQUEST} ^(GET|POST)\ /index\.php\?til=(.*)\ HTTP RewriteRule ^ /%2? [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?til=$1 [L]It should red...
i'm looking for a htaccess rule that can do this:Original URL:?til=mainReplace to:/mainand if this is the scenario:Original URL:/index.php?til=mainor?til=mainRedirect to:/mainTill now i only have this code:RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?til=$1 [L,QSA...
htaccess rewrite and redirect URL
4 After many hours I finally could fix it. Resulted that I was using a docker golang version that it doesn't have git included. I should use golang:1.8 I modified my Dockerfile like this and now it works like a charm FROM golang:1.8 RUN go get github.com/gin-gonic/gin WOR...
I'm writing a simple app in GO and I have this folder structure The docker-compose.yml file content is: version: '2' services: db: image: rethinkdb:latest ports: - "38080:8080" - "38015:28015" - "39015:29015" api: image: golang:1.8-alpine volumes: - .:/go/src/test_server/ ...
docker-compose cannot find package
In the root of your project create a file namedsonar-project.propertiesand set your key/value property pairs there, one per line.
I have built a rule in my setup.py file that allows my to call sonar scanner from within eclipse. To do this I have had to make use of sonar-scanners command line arguments. I run into a problem however when specifying project names with spaces in. As I'm running on a windows PC my command line look like ths['cmd', '/c...
Specifying a space in the sonar.ProjectName option
If you look at the code on the System page, you'll find your answer. Go to/CMSModules/System/Controls/System.ascx.csfile and search forMemory.Text. You'll find severalSystemHelpermethods to get the values for you.SystemHelper.GetVirtualMemorySize()SystemHelper.GetWorkingSetSize()SystemHelper.GetPeakWorkingSetSize()
BackgroundI recently came across an out of memory exception when users would visit few pages of my Kentico website. Fast forward - I found that the allocated memory (System > General) was over 2 GB! I then went to Debug > Clear cache and then noticed the allocated memory sitting roughly around 400 MB (phew..). Now, whe...
How to get Kentico's memory statistics via C# code?
Add current timestamp as parameter of url, e.g.http://server.com/index.php?timestamp=125656789ShareFollowansweredSep 25, 2009 at 20:16AnatoliyAnatoliy29.8k55 gold badges4646 silver badges4747 bronze badges3This is the best answer since older browsers (i am looking at you IE) don't follow the no-cache header in some sit...
For a small intranet site, I have a dynamic (includes AJAX) page that is being cached incorrectly by Firefox. Is there a way to disable browser caching for a single page?Here's the setup I'm using:Apache under XAMPP, running on a Windows serverPHPClarificationThe content that I'm primarily concerned about is page text ...
Is there a way to disable browser cache for a single page?
Answer to first question: ./configure has already been found according to the answer here. It is under the source folder of tensorflow as shown here. Answer to second question: Actually, I have the GPU NVIDIA Corporation GK208GLM [Quadro K610M]. I also have CUDA + cuDNN installed. (Therefore, the following answer ...
When installing TensorFlow on my Ubuntu, I would like to use GPU with CUDA. But I am stopped at this step in the Official Tutorial : Where exactly is this ./configure ? Or where is my root of source tree. My TensorFlow is located here /usr/local/lib/python2.7/dist-packages/tensorflow. But I still did not find ./co...
where is the ./configure of TensorFlow and how to enable the GPU support?
Step functions are excellent at coordinating workflows that involve multiple predefined steps. It can do parallel tasks and error handling well. It mainly uses Lambda functions to perform each task. Based on your use-case, step functions sound like a good fit. As far as pricing, it adds a very small additional charge ...
I am designing an application for which input is a large text file (size ranges from 1-30 GB) uploaded to S3 bucket every 15 min. It splits the file into n no of small ones and copy these files to 3 different S3 buckets in 3 different aws regions. Then 3 loader applications read these n files from respective s3 bucket...
AWS Lambda vs AWS step function
When you deploy Lambda@Edge function, It is deployed to all edge cache regions across the world with their version Replica of the Lambda Edge function. Regional edge caches are a subset of the main AWS regions and edge locations. When a user requests to the nearest pop/edge, the lambda associated with the edge cache ...
As explained in the Docs , I set up Lambda@edge for cloudfront trigger of Viewer Response. The lambda function code : 'use strict'; exports.handler = (event, context, callback) => { console.log('----EXECUTED------'); const response = event.Records[0].cf.response; console.log(event.Records[0].cf_r...
Lambda@Edge not logging on cloudfront request
YourRewriteCondis almost correct but you have to capture$1in a group inRewriteRuleand also your target needs to beout/$1.html.You can use this rewrite rule in your site root .htaccess:RewriteEngine On # To internally forward /dir/file to /out/dir/file.html RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROO...
I have a CMS that I've built myself in PHP (Codeigniter framework). I was thinking why every time PHP has to process all code just that to respond with a page. So instead I will create the complete HTML pages and serve them when a user asks for them.That is why I need to rewrite an URL to a specific file only if that f...
htaccess: rewrite URL to a file only if that file exists, but with regex captured groups
Try:git clone https://github.com/username/MYPROJECTWhich should be the correct http address (instead of trying to access github through an ssh session) for apublicrepo.It will take advantage of theirsupport for smart http.git clone https://[email protected]/username/project.gitis for private repo (asexplained here), wh...
I'm having trouble trying to clone a GitHub repository with the following command:git clone https://[email protected]/MYPROJECT.gitWhen I run it, I get this error:fatal: cannot exec 'git-remote-https': Permission deniedHow can I resolve it?
How can I resolve a permission denied error with git-remote-https?
This is a multi-stage build. This is used to keep the running docker container small while still be able to build/compile things needing a lot of dependencies.For example a go application could be built by using:FROM golang:1.7.3 AS builder WORKDIR /go/src/github.com/alexellis/href-counter/ RUN go get -d -v golang.org/...
I am seeing a dockerfile whose code is given below:FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build WORKDIR /src COPY ["FirstDockerApp/FirstDockerApp.csproj", "FirstDockerApp/"] RUN dotnet restore "FirstDockerApp/F...
What is --from used in copy command in dockerfile
You have to select "commit and push". If you want to upload (push) the changes that you made, go to: VCS -> Git -> PUSH Only after "pushing", your changes will be uploaded to GitHub. If you select "commit", your changes would remain local.
I am trying to use git in Android Studio. If I choose commit changes, it says that it has successfully committed the changed files but those changes do not appear on the GitHub. Instead, if I delete the repository from GitHub and choose Share Project on GitHub, it successfully creates a new repository and uploads the ...
Android Studio not committing to GitHub
You are correct - Elastic Beanstalk uses Amazon EC2 instances, Load Balancers and Amazon RDS databases. From AWS Elastic Beanstalk Pricing - Amazon Web Services (AWS): There is no additional charge for AWS Elastic Beanstalk. You pay for AWS resources (e.g. EC2 instances or S3 buckets) you create to store and run your...
I want to deploy or upload a Java Application in Elastic Beanstalk. Is Elastic Beanstalk a Free Tier eligible service? If yes, how long it will be?? Like EC2 750 hrs/ Month Read the pricing paragraph in Elastic Beanstalk dashboard. But it seems like Elastic Beanstalk internally using EC2 instance. I am confused here....
AWS Elastic Beanstalk Pricing
docker exec will let you run commands in the container. docker exec $target_container mkdir -p /opt/project/build/core docker cp /opt/project/build/core/bundle $target_container:/opt/project/build/core/ Note the trailing / on the cp which tells docker to copy the source into the core/ directory rather than naming bu...
Is it possible to create a folder if it is not existing before copy it? docker cp /opt/project/build/core/bundle target_container:/opt/project/build/core Normally there is only /opt/project/build/ existing. What I want to do is to copy the folder bundle and replace the existing folder and its files if it is existing....
Docker: Remove and create folder before doing cp
yes, just setup your SMTP server to run in a docker container using a Dockerfile in the normal way. Then when you run the container make sure you open the SMTP port ... docker run -p 25:25 --name yourSmtpDockerContainer yourSmtpDockerImage now if the server the container is running in exposes port 25 ... then any traf...
I built up my development environment using Docker containers, but currently all mails are sent by smtp server in my company, I cannot use it for testing. Is there a way that I can create a container that replaces the real smtp server? Do I need a DNS? Thanks.
Docker: how to use container to replace real smtp server?
I find the root cause scheduler container has different timezone, so it run with a few hours delay
I am using rancher 2.3.3 When I config cronjob with schedule values like @hourly and @daily, works fine. but when I config it with values like "6 1 * * *" , doesn't work.OS times are sync between all cluster nodesMy config fileapiVersion: batch/v1beta1 kind: CronJob metadata: name: samplename namespace: samplenames...
kubernetes cronjob dont works correctly when values are customized
SQS cannot publish messages to SNS. SQS can only store the messages. You have to pull the message using SQS Api's.Hope this helps you!
We’re presently building an application using AWS and have a need to push msgs into SQS. My question is whether it is possible to have SQS publish a message to an SNS which will trigger a Lambda (susbscribing to the SNS)? The lambda then needs to return an affirmation to the SQS that it received the message, thereby re...
Can AWS SQS publish to SNS or is polling SQS required?
A main philosophy of Docker is to have one task (or process) per container. Seehttps://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/for more clarification on this.I would question whether you're making the most of Docker by trying to run so much in one container. It's alright to run PHP and Apac...
I have started using docker recently and were able to setup two containers one is running php7.0 with apache2 and another running mysql both of them are able to talk to each other and everything is working fine, now I want to setup a new docker container which shoudl have nginx, php5.6-fpm and php7.0-fpm installed on s...
How to install multiple php versions on a single docker container
(note : I'm not sure I understood what you wish to achieve) You can easily "squash rebase" original-master as a single commit on top of master : # from original-master : git reset --soft master git commit With these commands, you would now have a commit : with the exact content of original-master on top of master Y...
I am working on a project that is large and long term. In the middle of development, I decided to dial back some of the features and roll out an MVP. I created a new branch from master and deleted all of the future features. =====> master +==========> deleted-and-changed-mvp I then deployed. However, master shou...
How can I bump a branch ahead of master?
Generally speaking docker-compose can be used to deploy in a production environment. Only one difference that you can do, instead of build the image you can push the images to AWS ECR or any alternative registry like Gitlab registry if you are using Gitlab then you can pull the image directly to the server/instance wh...
I have a docker-compose.yml configuratio that spin up multiple services such as SQL Server, redis and Elasticsearch. Everything is fine in the local development, I run docker-compose up -d --build on a Windows machine and exposes its IP and ports number to the public. That's how I deploy my docker containers. But how ...
How do I really deploy docker-compose.yml to the cloud?
You can block access to the wp-admin directory using an htpasswd file. Generate and htpasswd file usingthis tool. Then create a new htaccess file in the wp-admin directory with these contents:<FilesMatch "wp-login.php"> AuthName "Admins Only" AuthUserFile /directory/with/htpasswd/file/ AuthType basic re...
We are getting bruteforce attacked on our sites and I am afraid to ban the IP's as they may be rotating IP's or legitimate users at some point in there life span.I would like to block all unknown bots from accessing my site. Specifically my /wp-login.php file.I have spent hours trying to find the code to do this. I am ...
How do I block unknown bots to my sites?
You need to enable Identity and Access Management (IAM) API for your project:https://console.cloud.google.com/apis/library/iam.googleapis.com
Setting IAM policy Completed Creating revision Completed Routing traffic Completed Creating Cloud Build trigger Completed Building and deploying from repository Trigger execution failed: source code could not be built or deployed, no logs are found.I am new in GCP and learning by myself. I am trying to connect my git p...
GCP Building and deploying from repository Trigger execution failed source code could not be built or deployed, no logs are foun