Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
1 I magically found that running: call_command('dbbackup', clean=True, compress=True, interactive=False) works perfectly. Share Improve this answer Follow answered Oct 22, 2013 at 10:28 p...
I have the command : ./manage.py dbbackup --clean --compress provided by the django-dbbackup app which performs a backup of my PostgreSQL database to Amazon S3. I am trying to run this command inside a django celery task run daily. When I run: from django.core.management import call_command call_command('dbbacku...
Running python manage.py command from django with arguments
Created a script that pulls the token from AWS-ECRACCOUNT=xxxxxxxxxxxx REGION=xx-xxxx-x SECRET_NAME=${REGION}-ecr-registry[email protected]# # TOKEN=`aws ecr --region=$REGION get-authorization-token --output text \ --query authorizationData[].authorizationToken | base64 -d | cut -d: -f2` # # Create or replace re...
step 1sudo $(aws ecr get-login --no-include-email --region xx-xxxx-x)step 2curl -LSs https://github.com/fermayo/ecr-k8s-secret/raw/master/gen-secret.sh | bash -step 3kubectl describe secret aws-ecr-credentialsName: aws-ecr-credentials Namespace: default Labels: <none> Annotations: <none> Type: kuber...
kubectl pod fails to pull down an AWS ECR image
Found the answer - or one solution, that is quite simple:By setting two queries:Tracks the last 5 minutes and registers if count >= 1Tracks the last 10-5 minutes and registers if count >= 1if both conditions are met, then an alert is send.
Hi I am trying to setup a Grafana alert and doing a simple alert when a value is below/over a value or a query is "hit" once is easy.But I can't figure out how to set up an alert that goes off,when a query is hit - and hit again 5-10 min later.I will try to visualize it with the following drawing:I want a alert to chec...
Grafana Alerts when two hits are registered with 5 min between them
This linker malfunction can be revealed with an ASSERT: /* used by the startup to initialize data */ _sidata = .; .data : AT ( _sidata ) { _sdata = .; *(.data) /* .data sections */ *(.data*) /* .data* sections */ _edata = .; /* define a global symbol at data end */ ...
I have a microcontroller project using the GCC tool chain. gcc version 4.7.4 20130913 (release) [ARM/embedded-4_7-branch revision 202601] The controller has 512k flash memory. The first 64k are occupied by the bootloader and 448k remain for the project. I defined a linker script with the sizes for FLASH and RAM. I al...
detection of memory section overflow in ld
since Git 2.10+ (Q3 2016), you will be able to do a regular clone... and still benefit from shallow clone for submodules. All you need to do is record that configuration in your .gitmodules: git config -f .gitmodules submodule.<name>.shallow true Add, commit, and push: anyone cloning your repo (regular clone, full hi...
I'm not a Git master yet, faced a problem I can't figure out how to fix. I have a repo with my WordPress custom skeleton and I've added WordPress as a submodule from its original repo by git submodule add wp_repo_url. When I clone my repo to local machine with: git clone --recursive https://github.com/user/repo local_...
Git submodule without extra weight
As per my knowledge, For Multiple Certificates installation using SNI, You do not require to enter the host name and check the SNI checkbox for theprimary domain(www.domain1.com), But it is compulsory to enter the host name and check theRequire Server Name Indication boxforsecond domain(www.domain2.com).Find more infor...
I have 2 domains (www.domain1.com, www.domain2.com). For both, I have a separate certificate. Both domains have the same IP, but different host headers. How can I add https with cert1 to domain1 and https with cert2 to domain2 (on the same IP)? I tried to work around but didn't help me.one www.domain1.com binding I hav...
How can i use multiple SSL certificate with one IP:PORT on IIS 8
Instead of providing a link to an image. Provide a link to a cgi script which will automatically provide the proper header and content of the image.For example: image.php?sample.jpgYou can then make sure they are already authenticated (e.g. pass a session id) as part of the link.This would be part of the header, and t...
I'm putting together a portfolio website which includes a number of images, some of which I don't want to be viewable by the general public. I imagine that I'll email someone a user name and password, with which they can "log-in" to view my work.I've seen various solutions to the "hide-an-image" problem on line includi...
Restricting access to images on a website
Make sure that, from VSCode, you are modifying files that are in the local folder of the cloned repository.Double-check that agit status(in command line) done in that folder does show modified files, making sure they are not ignored.
I Can't connect to an existing Git Repo on Github through VScode on a new machine. Unsure of how to login in order to access repo and push changes.I have a Git repo setup which was initially setup on my desktop at home. I am currently away from my desktop and will be for awhile and therefore was looking to do some work...
How do I connect to my Github Repo and push changes to the repo through VScode?
37 The main point with upload_fileobj is that file object doesn't have to be stored on local disk in the first place, but may be represented as file object in RAM. Python have standard library module for that purpose. The code will look like import io import boto3 s3 = b...
According to S3.Client.upload_file and S3.Client.upload_fileobj, upload_fileobj may sound faster. But does anyone know specifics? Should I just upload the file, or should I open the file in binary mode to use upload_fileobj? In other words, import boto3 s3 = boto3.resource('s3') ### Version 1 s3.meta.client.upload_f...
What is the difference between S3.Client.upload_file() and S3.Client.upload_fileobj()?
Your fundamental problem is that you can only have exactly one CMD in a Docker file. Each RUN/COPY command builds up a layer during docker build, so you can have as many of those as you want. However, exactly one CMD gets executed during a docker run. Since you have three CMD statements, only one of them actually g...
I am very new to docker and playing with it. I am trying to run nodejs app in docker container. I took ubuntu:14.04 as base image and build my own nodeJS baked image. My Dockerfile content looks like below FROM ubuntu:14.04 MAINTAINER nmrony #install packages, nodejs and npm RUN apt-get -y update && \ apt-get -y...
Why NPM is not available in Docker Container
Check out the comments on the answer of thispost.I'm guessing by using the watchdog module it doesn't import "stat" which seems to look for this _winreg package.In other words, installing the module "watchdog" seems to do the trick.
I'm trying to run a python app from amazon EC2 large instance. However, Its complaining in scipy because it can't find a thing called _winreg.I don't know how to reconfigure this so its no longer an issue.$ python2 app.py * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat Traceba...
AWS ec2 winreg not found
Had the same problem and doing all of the:gcloud auth login gcloud auth list gcloud config set account gcloud projects listdidn't help. I knewgcloudswitched fine as I was able to list other resources with it directly. But it seemskubectlcan't pick those changes up automatically, askubectl/gcloudintegration relies on th...
At work we use Kubernetes hosted in GCP. I also have a side project hosted in mypersonalGCP account using Google App Engine (deploy usinggcloud app deploy).Often when I try to run a command such askubectl logs -f service-name, I get an error like "Error from server (Forbidden): pods is forbidden: User "[email protected...
How to easily switch gcloud / kubectl credentials
34 You can use | stats count(*) by fieldname This allows to list the distinct values in fieldname. Share Improve this answer Follow edited May 23, 2023 at 6:23 Marek Grzenkowicz 17.1k1010 gold badg...
I need to query data from lambda using AWS Cloudwatch log insights. The query syntax provide by aws doesn't have distinct. Only support (count_distinct(fieldname)) ref. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html Example data Column # @timestamp @ message 1 2020-02-17T13:33:29.049+07...
How to query distinct from AWS log insights
1 I don't have the exact explanation of this but when you build an image with a Dockerfile it will make the lightest image possible. When you use RUN you don't make data persistant but you only do an action that will give a result that will not stay in the image. Note that ...
I've been expiriencing a bit of weird behavior regarding volumes. We have a container which contains a database, and is expected to bind mount folders from the host which contain the data. I'm trying to create a child container which ships with test data, as it is just used for testing. This requires that during t...
Dockerfile can COPY files into a declared volume, but RUN cannot create files?
Basicly, stack memory comes from stack area, which is independent from heap area and perm area. Static variables are allocated in the heap, except string and numeric constants. -Xmx parameter only bounds the young + old parts of the heap, as perm area is not part of it. Stack area size is set by -Xss flag, heap area...
I have few questions regarding java GC and memory management. In java we define process memory upper bound and lower bound by xmx and xms parameters. Using these parameters JVM allocates young old and perm space. So if new threads are created then from which memory do stacks memory is allocated to threads? is it from...
Where does the stack memory allocated to a thread come from?
You can configure your NAT to forward external traffic for200.142.24.224to the10.140.22.11IP address on your LAN.Then, if you usehttp//200.142.24.224:7001, the requests will be sent to 10.140.22.11. No need formyApp?destIP=10.140.22.11.
I want to do this.I have a office firewall and all request from my system(10.140.22.11) will be routed through a NAT ip (200.142.24.224)My system acts as a server. Any request made via internet should reach my system. How can I achieve this without going for a one to one static ip (i.e., with this common NAT ip of my f...
NAT IP mapping using a request parameter
You would normally handle this sort of thing by creating aread-only deploy key. A deploy key is an ssh (public) key associated with a single repository, rather than with your entire github account. By default a deploy key is read-only (unless you check the "allow write access" checkbox when adding the key).That link ...
I am the owner of github organization and I have access to all repositories. Some of them are private and others are public. I am trying to set up Jenkins to trigger builds when a pull request is made to any repository of the organization. The problem is that i have an external system which is notified via github webho...
How to Clone a private repository of github organization in a Jenkins Job
2 Hell, nginx was the culprit. If its used as a proxy, it first stores the whole upload and when the whole file arrived, sends it to Apache or whatever else server you use. Hence no upload progress. Share Improve this answer Follow ...
The problem is php 5.4's upload progress feature doesn't seem to work. NO matter what I do, the session variable isn't populated. The session.upload-progress variables are populated and set. file_uploads enabled upload_max_filesize set to 2000M post_max_size set to 2000M upload_tmp_dir writable the hidden variable i...
Does PHP's upload progress feature actually works?
You want is this way?RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Example 1: detail search page RewriteRule ^search$ /pages/search.php [NC,L,QSA] # Example 2 - search with in the category: example.com/search/category RewriteRule ^search/(.*)$ /pages/search.p...
I am trying to figure out how to change the way my browser interprets the follow URI:example.com/pages/search.php?category=work_flowinto:example.com/search/category=work_flowI have tried:RewriteEngine On RewriteRule ^/search/?$ /pages/search.php [L]But it doesn't work. I don't have much experience with Htaccess so I wo...
htaccess search query redirect/rewrite
NGINX listens on port 80 and forwards to Gunicorn. Gunicorn operates on the 127.0.0.1 IP rather than 0.0.0.0, so it isn't listening publicly, and therefore the only way to access the site externally is through port 80.
I busy setting up a development environment for Django Framework using Gunicorn (as Django service) and NGINX (as a Reverse Proxy).When I look at several tutorialslike thisone andthis one, I see that they use port 8000 and port 8001 (http://127.0.0.1:8000andhttp://127.0.0.1:8001). Is there a special reason not to use p...
Why does Gunicorn use port 8000/8001 instead of 80?
You'll need to call the lambdaadd-permissionafter adding the target.That is (viaboto3for me):create the lambdacreate the rulecreate the targetscall lambdaadd-permissionwith the lambda arnseeboto3 documentationor thecli doc.
I am making a call to aws cloudWatchEvent putRule & PutTarget api through aws sdk to create a cloudWatch Rule and attach a target to it. My Target is a lambda function, the rule gets created, the target gets attached to the rule but when the rule triggers based on its schedule the target lambda function not trigger. So...
AWS Cloudwatch Event putTargets not adding Lambda event sources
I solved my issue with modifying the /etc/sysconfig/docker file. I added NO_PROXY="xxx.xxx.com" then exec "systemctl restart docker" and it worked.
I want to use a Nexus as private registry to push docker image but I'm not able to loginWhen I try this :docker login xxx.xxx.com:8500I have this message :Error response from daemon: login attempt to http://xxx.xxx.com:8500/v2/ failed with status: 503 Service UnavailableI set up my /etc/docker/daemon.json like this :{ ...
Docker registry with Nexus : 503 Service Unavailable
I think you're looking for Git's.git/info/excludefile.This file is meant for "private ignores", similar to.gitignorebut only for one copy of the repository. They arenotcommitted to the repository.Here is whatGitHub has to say about the matter:Explicit repository excludesIf you don't want to create a.gitignorefile to sh...
Situation:I want to add a .rvmrc file in my git folder, but I realize that this file is unneeded across my entire team. I don't want to modify the .gitignore file just for my own needs sake. However, I am unskilled in this area of git, so any advice in the answer column is appreciatedTherefore, I was looking around the...
How to not track an added, uncommitted file in Git without using .gitignore
This can now be configured within GKE, by using a custom resourceBackendConfig.apiVersion: cloud.google.com/v1beta1 kind: BackendConfig metadata: name: my-bconfig spec: timeoutSec: 60And then configuring yourServiceto use this configuration with an annotation:apiVersion: v1 kind: Service metadata: name: my-servic...
I'm running Kubernetes on Google Compute Engine (GCE). I have an Ingress set up. Everything works perfectly except when I upload large files, the L7 HTTPS Load Balancer terminates the connection after 30 seconds. I know that I can bump this up manually in the "Backend Service", but I'm wondering if there is a way to do...
Kubernetes on GCE: Ingress Timeout Configuration
CPU is measured in nanocores.kube_metrics_server_pods_cpuis measured in nanocores.I agree with @noam-yizraeliAs per thesource codeof themetrics-server-exporter, there ispod_container_cpuvariable.metrics_pods_cpu.add_sample('kube_metrics_server_pods_cpu', value=int(pod_container_cpu), labels={ 'pod_name': pod_name, 'po...
Can anyone guide if we monitoring outEKScluster usingprometheusThen what would be the units for the metrickube_metrics_server_pods_cpuby default.
units for kube_metrics_server_pods_cpu metric in prometheus
ComposeCompose doesn't have "tasks" as built in concept, but you can set them up with multiple compose files in a project. Adocker-compose-init.ymlcould define the tasks, rather than long running services but you need to manage orchestration yourself. I've put anexample on my consul demo.docker-compose up -d docker-com...
I am trying to spin a Consul server on docker container and use it as config server for my SpringBoot cloud application. For that I want to have some pre-configured data(Key-Value pairs) in Consul.My current config in docker-compose.yml is:consul: image: "progrium/consul:latest" container_name: "consul" por...
How to run Consul on docker with initial key-value pair data?
Use of the[NC]flag causes the RewriteRule to be matched in a case-insensitive manner. That is, it doesn't care whether letters appear as upper-case or lower-case in the matched URI.You have to add [NC] as suffix in rewriteurl
I'm trying to rewrite these two URLsdomain.com/test domain.com/TESTto thisdomain.com/test.phpThis is my current .htaccess code:Options +FollowSymlinks -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(test|TEST)($|/$) /test.phpThis works for the/testURL, but...
htaccess: Ignore Case in RewriteRule?
Something like: crontab <<'EOF' SHELL=/bin/bash #min hr md mo wkday command */10 * * * * curl 'http://localhost:8983/solr/dataimport?command=full-import' EOF Use crontab -l to get a look at it afterwards. BUT, add an option to that curl command to put the output somewhere specific, since it might be run somew...
I want to run this statement: curl 'http://localhost:8983/solr/dataimport?command=full-import' every 10 minutes using CRON jobs. How do I achieve this?
Run a curl command using CRON jobs
No, that's not possible. However, you could create an external documentation using a tool like Sphinx - while it doesn't use markdown it uses ReStructured Text which is somewhat similar.
Let's say I have a javascript file in github, and add some markdown to a comment block: /** * # Markdown here? * - list? * */ function MyClass(){ this.someMethod = function(){ // this method is added to each new instance // for this reason, adding your methods here can bloat }; } Can I get doc-blocks...
GitHub: Render markdown in code comments / docblock?
You used git add . and git add *. But these two command would not add the removed file to index stage. If you type git status, you should see like this: # Changes not staged for commit: # (use "git add/rm <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working ...
Essentially, I first rename a file from within my Ubuntu file navigation program (Nautilus). I then run git add . (I also tried git add *), then git commit -m "blah, then git push. The changes are pushed to the server successfully, but on the server, the newly named files are failing to replace the old ones; they appe...
new files appear on GitHub, but don't replace old ones
1 I think you're forwarding to @app while it should be @app_server_dinchi Share Improve this answer Follow answered Aug 1, 2013 at 1:11 AdilAdil 23133 silver badges66 bronze badges ...
I have a running app using rails (unicorn) and nginx. My client asked me to move a wordpress blog onto existing server as a subfolder. Let's assume current site is www.example.com. The blog link should be www.example.com/blog I do not succeed to configure nginx to server wordpress blog. My current nginx configuration ...
Add Wordpress as subfolder to existing rails site using nginx
This is a community wiki answer. Feel free to expand it.As already mentioned in the comments it is not possible to configure it at the Service level as it operates on Layer 4 which has no notion of "HTTP Headers".The alternative would be to choose a fittingIngressController for that task. For example you may choose fro...
I have a K8s Service namedorderProcessorwith 5 pods. Based on theorderIdHTTP Request header, I want to route the HTTP call to a specific pods.For example:requestId withorderId ABCshould always go to Pod A and requestId withorderId PQRshould always go to Pod BIf pod A is down and replaced with Pod C, then all request wi...
Consistent Hashing based on HTTP header for Kubernetes Service
For the record, SonarQube 6.0 doesn't have a SQALE rating, but a Maintainability RatingWhile you can't set a Quality Gate condition directly on the Maintainability rating, you can set a condition on the technical debt ratio (the Maintainability Rating is based directly on the tech. debt ratio).For the Security and Reli...
Reliability Rating, Security Rating and SQUALE Rating doesn't appear in quality gate definition form. Is this a bug or there's some hidden reason for this?
why sonarqube 6.0 doesn't allow to select metrics of type "Rating" in quality gate definitions?
I would suggest using pm2 in production. It definitely handles crashes better than nodemon
I am hosting a node js app on vps and I want to restart app if app crashed. is it good to usenodemoninstead ofnodeforstartinpackage.jsonfile? (performance and memory usage on production)"scripts": { "start": "node db", "dev": "nodemon db" }alternatively, ispm2suggestedhereis good for both server crash and app...
restart node app after app crash using nodemon
The alert manager has awebhookconfig which allows you to send notifications on any HTTP(S) endpoint - provided the endpoint is ready to ingest the AM alerts in JSON format.At this time there is no way to template the request so you need to have an integration somewhere.
Is there a way to use the alert manager to send an alert to external API, I mean instead using excage server or slack etc, I will provide an endpoint likehttps://mypullendpoint.host.comand the alert manager will send the alert to this URL ?
Using alert manager to send data to external API
0 Mercurial provides an extension "Convert" which can convert repositories from other SCMs to Mercurial. https://www.mercurial-scm.org/wiki/ConvertExtension Add the following lines to your .hgrc to enable the extension : [extensions] hgext.convert= Then following command c...
I have been using github for my code until now but I have to switch to Mercurial and delete my github repository. How can I or is it even possible to migrate all github repository versions to Mercurial repository? I would like to keep all versions of the code. Thanks.
Convert/Migrate all repository versions from github to mercurial
First build your modified Jekyll gem: $ gem build jekyll.gemspec Then install it: $ gem install jekyll-0.10.0.gem
I forked jekyll and made some changes in my repository. How can I use my forked version of jekyll instead of the main jekyll repository that I used to initially create my blog? I guess this is more of a general github question than something specific to jekyll. Thanks, Scott
How to use forked jekyll repository
Assuming you're using Traefik v2, you need something like aredirectRegex Middleware, for traefik to do this. I think it would go like this.--- apiVersion: traefik.containo.us/v1alpha1 kind: Middleware metadata: name: test-redirectregex namespace: nuclio spec: redirectRegex: regex: ^http://nuc.local/?$$ re...
I've configured an Ingress with config:apiVersion: extensions/v1beta1 kind: Ingress metadata: name: nuclio-dashboard namespace: nuclio spec: rules: - host: nuc.local http: paths: - path: /nuclio backend: serviceName: nuclio-dashboard servicePort:...
Traefik Route Prefix
still being able to have a project intact on GitHub?Not directly after a git pull, since those sensitive data wouldnotbe in your GitHub repo (by design).But what youcanhave in your GitHub repo is ascript, able to query an outside source and fetch those data (after requesting credentials of sorts)You then havetworemote ...
I've put delicate things like API keys and login files in my .gitignore only to realise the obvious, that when i pull my project to another desktop, i miss these essential classes. Is there a way for me to hide information and still being able to have a project intact on GitHub?
Gitignore switching environment
Based on yourCronJobspec you are not passing the environment variableRABBIT_URL.Your code looks as if it is expecting this variable to be set, which it is not, and which is likely why it is defaulting tolocalhost.self.params = pika.URLParameters(env.RABBIT_URL)You probably want something like this:apiVersion: batch/v1b...
I am using rabbitmq at a remote (cloudamqp.com) and I create a cron job on Kubernetes. On my local machine, my job is working fine and the Kubernetes cronJob schedules perfectly well but the Job redirects the rabbitmq connection URL to127.0.0.1:5672and I get an error.pika.exceptions.ConnectionClosed: Connection to 127....
Not able to connect rabbitmq from kubernetes cron jobs
Just use File.ReadLines which returns an IEnumerable<string> and doesn't load all the lines at once to the memory. foreach (var line in File.ReadLines(_filePath)) { //Don't put "line" into a list or collection. //Just make your processing on it. }
I want to read big TXT file size is 500 MB, First I use var file = new StreamReader(_filePath).ReadToEnd(); var lines = file.Split(new[] { '\n' }); but it throw out of memory Exception then I tried to read line by line but again after reading around 1.5 million lines it throw out of memory Exception using (Stre...
Read Big TXT File, Out of Memory Exception
I usually do it the way you've done it. In your case, it always pushes jobs at 6 second intervals. This is fine so long as your jobs don't take more than 6 seconds. If your jobs take more than 6 seconds then you'll start to get a backlog and you'll need to increase resources to handle the larger load. It can be a p...
I have a database of items that I need to update — or rather just perform upon — every so often. I am using a message queue (Kue) to handle the concurrency of these jobs, but my process which goes about adding the jobs to the queue looks like this:setInterval(function () { feed.find({}, function (error, foundModels) ...
Node worker process / cron job advice
I don't know of a compiler option for this. However, the ulimit Linux command can be used to limit the amount of memory a process can use. For example, the following command would limit the data segment size of applications run from the current shell: ulimit -d 1024K
Today, during my computer sciene classes I was told that I can adjust the amount of memory my program can allocate during its compilation (using GCC, Linux). This amount is by default set to optimal mode (which means as much as possible). I could greatly benefit from this compiler feature during debugging my applicati...
Reducing memory allocation GCC command
Theportmapper logic changedin version 1.1.0. The logic is now written to increase until 65535, until it resets toBeginPortRangewhich is 49153.You can usedocker run -p <host port>:<container port>to map a host port to a container port.
(On a Mac, Boot2Docker, docker v 1.1.1)Having trouble where Docker will not release the ports that it uses when assigning host ports. For instance, I start 3 containers with the same image. Mydocker psreturns the following:CONTAINER ID IMAGE COMMAND CREATED STATUS ...
Docker not releasing ports
did you untrack those temp files after adding the .gitignore? from github, Note that git will not ignore a file that was already tracked before a rule was added to this file to ignore it. In such a case the file must be un-tracked, usually with git rm --cached filename
This question already has answers here: Closed 11 years ago. Possible Duplicate: .gitignore file not ignoring I checked out a big repo and worked on it for a day which created lot of temp files. When I cloned the repo, I forgot to add .gitig...
.gitignore not working after adding it to already modified repo. [duplicate]
I had this issue because I still had files created by a previous Git repository in the folder. Example below:I fixed this by deleting the files in the git folder. The git folder may initially be hidden, so you will have to fix this by showing hidden folders (right click in windows explorer and properties).
I tried to submit my Github Project to my account; however, when I tried to make a new repository to commit to my Github account, I encountered the following error:https://i.stack.imgur.com/ACkWE.jpgI believe this error is because I used my desktop username and it is stored as a repository somewhere (and I do not know ...
"This directory appears to be a Git repository" error?
From what I understand, you are usingStandard GKEnotAutopilot GKE.Using node auto-provisioningGKE documentation provides much information about this feature.Regarding your issue, you mention that your cluster didn't havenode auto-provisioningand you have enabled it. InEnabling node auto-provisioningpart you have note:I...
All I have is a GKE cluster and there are 3 node pools and the machine size ise2-standard-2but when I push my deployment into this cluster I got this error on gke dashboarderror imageAlthough I have enabled the node auto-provisioning but it is still showing this error. Can you help me out how can I fix this issue?
Can’t scale up nodes because node auto-provisioning is disabled, which prevents provisioning of node groups
I'm answering this late in the day and even though it has an accepted answer because this question shows up at the top of a search for this issue: These days it's entirely possible to dynamically forward the original Host header via X-Forwarded-Host from CloudFront to the API Gateway, without having to hard-code a cus...
We have a wildcard(*) subdomain pointing to a CloudFront distribution. The origin is API Gateway. We need to know the original Host header within API Gateway so we can route the requests. Simply whitelisting the Host header in CloudFront returns an error when accessing the CloudFront distribution via HTTP - presumably...
Forwarding CloudFront Host Header to API Gateway
There are multiple ways to do this. But before we look into it there are two problems in your approach that you need to understand zookeper host is not reachable when you use docker run as each of the containers is running in a different network isolation kafka may start and try to connect to zookeeper but zookeeper ...
I want to use both confluent/kafka and confluent/zookeeper and run them on a single Ubuntu server. I'm using the following configurations: docker run -e ZOOKEEPER_CLIENT_PORT=2181 --name zookeeper confluent/zookeeper docker run --name kafka -e KAFKA_ADVERTISED_HOST_NAME=kafka -e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 ...
My kafka docker container cannot connect to my zookeeper docker container
0 To use max-age, you need to URL encode it. response-cache-control=max-age%3D100 Share Improve this answer Follow answered Jul 29, 2020 at 1:08 jellycscjellycsc 11.5k22 gold badges1616...
According to the Amazon S3 documentation, there is a query parameter called ResponseCacheControl that can be added to an S3 URL so that the response includes a Cache-Control header, which I need so that my browser will cache the response i.e I need it to return with Cache-Control: max-age=100 However, the notoriously ...
How do you use the ResponseCacheControl URL parameter in Amazon?
I managed to run the following script at influxdb startup :#!/bin/sh set -e influx bucket create -n first -r 7d influx bucket create -n second -r 7deven if the influxdb docker image supports bash, you should prefer writing sh scripts for alpine.is your script executable ? (chmod +x init.sh)the init.sh script is execut...
I am working on a deployment of an influxdb for storing of real-time data. I have been using 1.8.4 for some time now and recently decided to update to v2.Mydocker-compose.ymlfile looks something like this:influxdb: image: influxdb:2.0.4-alpine ports: - "8086:8086" volumes: - ./influxdb/data:/var...
Initialize influxdb2 buckets with entrypoint script
3 Consider configuring celery as a daemon. For logging speciy: CELERYD_LOG_FILE="/var/log/celery/%n.log" where %s will be replaced by the node name Share Improve this answer Follow answered Apr...
I'm running celery with django and works great in development. But now I want to make it live on my production server and I am running into some issues. My setup is as follows: Ubuntu Nginx Vitualenv Upstart Gunicorn Django I'm not sure how to now start celery with django when starting it with upstart and where doe...
Celery and Django, Logging Celery
You must be accessing these apps through a domain pointing to these IPs:75.101.163.44 75.101.145.87 174.129.212.2These are the apex faces and they are in front of both bamboo and cedar apps. Varnish is there for bamboo, but any request that goes through them ends up going through varnish too.These faces are only for ap...
According to the comments in the accepted answer hereRails how to Gzip Javascript? (Heroku)and the official cedar documentation (http://devcenter.heroku.com/articles/http-routing#the_herokuappcom_http_stack):Since requests to Cedar apps are made directly to the application server – not proxied through an HTTP server li...
Heroku Cedar and nginx (gzip)
This depends, generally, on whether or not a) the pull request can be automatically merged an b) (more importantly) whether the tests pass.You can create anupstreamremote that points to the original repository, then mergeupstream masterintoorigin masterand it will be up to date.You should do this first to preemptively ...
There is a Github repositoryI have forkedon which multiple commits where made afterwards.I wanted these corrections to be part of my forked repository I might have merged them (but can't remember how) and I now have a commit namedMerge remote-tracking branch 'blount/master'.Is it a problem for future pull requests I wi...
Are "Merge remote-tracking branch 'xxx/master'" commits a trouble for Pull Request?
Thanks Thomas !To allow the use of the search API, you must start the container by specifying the value of the environment variable SEARCH_BACKEND like this :docker run -d -e SEARCH_BACKEND=sqlalchemy -p 5000:5000 --name registry samalba/docker-registryThen i have a result for this query :GET http://registry_host:5000/...
I can't find how to manage images in a private registry. I can push or pull an image because i know the id but how to get the list of pushed images ?Take for example a person who wants to see the available images under the private registry of his organization. How can she do ?Unless I'm mistaken, I can't find API or We...
Any API or Web UI project to manage a Docker private registry?
They are probably being detected as different types of files. GitHub uses the Linguist library for this, but it's not perfect. In addition, assembly files are specifically very hard to detect because different assemblers have different register names, syntaxes, and comment forms. You can specify an override in your ...
I have two assembly files on github that should have the same syntax highlighting, but they do not as shown in the images below. The first image is wrong, comments are not grayed out, and the second image is right. Any ideas how to fix the first image?
Why is Github using different syntax highlighting for same file type?
I'll answer this myself. Just so its clear to everyone, you CAN connect to your instances of EC2 even though they are being managed by beanstalk. This is helpful because you get to see where things are located. In this case, I didn't know Apache was being used as the webserver for tomcat and had to search for that,...
I want to gzip the JavaScript, HTML, CSS in my war before it goes over the wire. standard web stuff. Beanstalk uses an AMI to scale up. I see the directions on how to create a new AMI, but I don't even see where Tomcat is located. The current AMI as of this writing is ami-1a249873 for Tomcat 7 deployments.
How do you enable gzip of HTML/JavaScript/CSS on Amazon Beanstalk and Tomcat
you can get the url and modify in a php file. for example some entered www.yourwebsite.com/homecontorller/homemethod/id/in your .htaccess fileRewriteEngine On RewriteBase / RewriteEngine On Options All -Indexes RewriteBase /directoryname/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ...
I am new to the concept of rewrite rules on WAMP/Apache/PHP as I usually use ASP.NET and IIS.I have the following folder structure:www |_Content |_Libs |_Scripts |_Views |_Accounts |_create-account.php |_News |_index.php |_Media |_index.php |_.htaccess |_about.php |_index.php |_WebConfig.xmlI need a r...
htaccess url rewrite for file type stripping and folders
In general, the easiest way to check if node is master or worker is to check if it has labelnode-role.kubernetes.io/control-plane(or before Kubernetesv1.20:node-role.kubernetes.io/master):Since Kubernetesv1.20:kubectl get nodes -l 'node-role.kubernetes.io/control-plane'Before Kubernetesv1.20:kubectl get nodes -l 'node-...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
How to find if a node is master or worker in k8s? [closed]
You need to add your self signed cert or personal CA to the list of trusted certificates on the host. For some reason, docker doesn't use the certificates on the daemon for this authentication. Here are the commands for a debian host: sudo mkdir -p /usr/local/share/ca-certificates sudo cp ca.pem /usr/local/share/ca-ce...
Does Docker Swarm support usage of Docker Registry with self-signed certificate? I've created my cluster based on step from official Docker documentation, it uses swarm master/nodes running inside containers. It works well, but as soon as I try to login to my Docker Registry I'm getting error message: $ docker -H :400...
Docker Swarm and self-signed Docker Registry
I suspect if you are trying to treat it like shared hosting, EC2 may end up being more work than its worth. If you do want to give it a shot, read on.EC2 provides mostly barebones virtual machines that you can purpose for anything you may need. They don't come with hosting control panels as many people use instances f...
I am just getting started with AWS and EC2 and can't quite get my head wrapped around what to do with email.On previous servers, I would use it as a mail server and on cPanel create all the email accounts I needed, and could access them through web mail.I can't get a consistent answer on how to set up email accounts on...
Setting up Email Accounts EC2
If you have an NFS server setup you can use use some nfs folder as a volume from docker compose like this:volumes: grafana: driver: local driver_opts: type: nfs o: addr=192.168.xxx.xx,rw device: ":/PathOnServer"
Can we share a common/single named volume across multiple hosts in docker engine swarm mode, what's the easiest way to do it ?
How to share volumes across multiple hosts in docker engine swarm mode?
Github's markdown supports diff when formatting code. For example:```diff public class Hello1 { public static void Main() { - System.Console.WriteLine("Hello, World!"); + System.Console.WriteLine("Rock all night long!"); } } ```Output:and it should give youthe Diff looks you are looking for, highligh...
I'm writing documents that should explain code in C# using Markdown.I use the```csharpto get csharp highlighting.I sometimes want to highlight something specific in the code using bold or anything.I know about<pre>etc... but it takes away my csharp highlighting.Best case scenario - some way to highlight code in the```c...
Diff syntax highlighting in Github Markdown
2 I got this message because I forgot to initialize the app cache.init_app(app) I would try to debug if this method call is reached before cache.get('XXX') is called. Share Improve this answer Follow ...
I am using application factory pattern in which I have initialized my cache from xyz.caching import cache # this is the cache object def create_app(): app = Flask(__name__) cache.init_app(app) # other relevant variables. return app My caching.py from flask_caching import Cache cache = Cache(config={....}...
Flask cache gives me 'AttributeError: 'Cache' object has no attribute 'app''
<div class="s-prose js-post-body" itemprop="text"> <p>You can run the interactive mongo shell by running the following command:</p> <pre><code>docker run -it -p 28000:27017 --name mongoContainer mongo:latest mongosh </code></pre> <p>Otherwise, if your container is already running, you can use the <code>exec</code> comm...
<div class="s-prose js-post-body" itemprop="text"> <p>To start the container, I am typing the following command:</p> <pre><code>sudo docker run -i -t -p 28000:27017 mongo:latest /usr/bin/mongod --smallfiles </code></pre> <p>But I want to open the shell in this container to type the mongo commands. What command should I...
How to start a mongodb shell in docker container?
System crontab is a great way for distro maintainers and app packagers to include cron jobs that don't pollute the user crontab space.The system crontab files can specify a user to run as, so not everything in the system crontab has to run as root.Non-login-users don't have crontabs, so the only place to put non-login-...
I will expand my question here:What is the need of a system crontab when every user including root has its own crontab? The existence of the system crontab seems to duplicate functionality. Is the system crontab more of an artifact of the history of the cron system?
What facility does system crontab provide that user crontab for root cannot?
1 You can simply move the content of the inner folder at the root of the repository: git mv innerfolder/* . rmdir innerfolder git commit --message "move folders one level up" If you want to change the whole history to look like it was like this from the beginning, you can ...
My folder structure looks like this: 1.Outer folder 1.1 Inner Folder 1.1.1 .....Main files Now the outer folder is a git folder that we get after creating a new repo and cloning it while the inner folder is the folder that you get when creating a new react native app. Essentially I should have created the RN app befor...
How to delete unnecessary outer folder in github
There is no documented way to cancel pending modifications. Note, though, that on an Aurora cluster, the master does not play a role that is as important as you might assume. It differs from other setups, because your data does not actually live on the master instance -- it lives on the Aurora Cluster Volume, which i...
I was pegging the 90 total connections allowed on my Aurora RDS instance, now that I've got a few more heavy duty sites than I had before. I decided to upgrade the instance and I did so, but put the upgrade as pending until the next maintenance window, without considering adding a read-only replica into the cluster. ...
How do you remove/undo/delete a pending modification on Amazon Aurora RDS?
I'm not clear on your question. Are you asking "How do I use ssh-key based authentication to authenticate my git connections through EGit?" The question you link to -"Auth Failed" error with EGit and GitHub- seems to address a lot of problems you might have been having.Eclipse needs to have the correct connection infor...
I installed the Egit plugin for Eclipse on both of my Mac OSX and Windows. However they all have problem, but it seems Mac OSX is more serious when it comes to auth the key.when i push the project to repository using the Team - Remote - Push, I tried many versions of the URL on the website, but all failed. I remembered...
Egit for Eclipse on Mac OSX
The simpler the better, no silver bullet.For single server, gracefully restart mechanism can be helpful. It will start new processes to accept new requests, and maintain the old processes till the old requests finished. Nginx already using this, seehttp://wiki.nginx.org/CommandLine#Stopping_or_Restarting_NginxFor multi...
There are a bunch of techniques I can think of for doing this:Setting up a replica web-server on a different port and/or IP, then using DNS as load-balancer; restarting one server at a timeUtilising more explicit load-balancing (which PaaS such as Heroku and OpenShift use) with implicit replicasUsing some in-built mech...
Restarting web server without affecting users?
I was trying to run unicorn so i can fork my app to multiple instances. I guess the issue here was, i set passenger_enabled on and was actually running unicorn on 3000.so instead i ran passengerpassenger start -a 127.0.0.1 -p 3000 -d -e productionand my nginx conf like this,server { listen 80; server_name www.APPNAME.c...
Update:Currently i visit my app at domain.com:3000, but i would like to visit domain.com to see my appI have setup nginx at 80 to proxy my rails app at 3000. below is the configurationupstream railsapp { server 127.0.0.1:3000; } server { listen 80; server_name APP; # Tell Nginx and Passenger where your app's ...
How to config nginx to proxy to rails app? so that i dont have to say domain.com:port
As of Sep 11, 2020: gcr.io/distroless/java:11 mirrors Debian 9 (stretch). Debian 9 is "oldstable" that I believe only gets occasional important security updates. You should use the Debian 10 (buster)-based gcr.io/distroless/java-debian10:11, which gets the 11.0.8 Debian Java package. In the near future, Distroless may...
Changing minor version in distroless java docker image . Current java project uses maven jib to build the docker images. The default version of docker image is java 11. The minor java version of this docker image is set to 11.0.6. How to change java minor version of this image gcr.io/distroless/java:11 from 11.0.6 to ...
gcr.io/distroless/java:11 use base version from 11:.0.6 to 11.0.8
I've faced same issue today, trying to downgrade fromt3.xlargetot3.large, and it seems that it is normal behaviour; as the Launch Template is created with the number of cores from the initial selected type of instance; and its value is not updated when new instance type is selected.It is not an issue if you go with a m...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
AWS launch template: A value of 4 for CoreCount is not a valid value for the r5a.xlarge instance type. Valid values are [2] [closed]
The problem with a cross platform orchestration tool is that it ends up catering for the lowest common denominator in terms of features available on all clouds. Terraform just describes the infrastructure using the resources available from the desired provider. So long story short you'll need separate configurations, ...
I am beginning to use terraform to control staging and production environments on various cloud providers (AWS for example). Is there a way to use terraform configuration files to create a local development environment for, say, a multi-tier application environment or do I have to maintain a different configuration v...
Create a local end-to-end development environment
My understanding is that there's no easy way to do what you're after - to have sbt download the project (possible - see below),mvnit (doable with some development) and depend on it (feature available out of the box).If it were a sbt build, it'd be possible with ease. You can check the following questions to build a sol...
My project has a dependency on a library that is available on GitHub, but with no binaries available. How can I tell sbt that I depend on it, so that it pulls the code and compiles it, but keeps it separate from mine? If need be, I can pull it manually - my main goal is a) to keep it clean and b) to transitively depend...
How to depend on Maven-managed project on GitHub?
Running git config --global -e allowed me to remove the offending config setting from the global git config. [credential] helper = winstore
After attempting to setup git credential cache on Windows 7 I would now like to scrap the idea and remove this error message and setting from git. git: 'credential-cache' is not a git command. This related question shows how to fix this error by installing additional software to make the credential caching work -- I h...
git: 'credential-cache' is not a git command - Remove setting
You can't edit built in profiles. Probably what you want to do iscreate a new profile, say P1set it as the defaultcopy into it the rules from the profile youhave beenusingedit (add/delete/update) the rules in P1 to meet your needsAlternately, 'P1' couldinheritfrom Sonar way, but then you wouldn't be able toremoverules ...
I am using sonarqube developer's edition and i cannot see any options to deactivate a active rule in any quality profile as there was in basic version. Can anyone please give me an idea as to to deactivate any active rule while using sonarqube commercial? Thanks
How to deactivate a rule in sonarqube commercial?
You have to haveRewriteEngine onAt the beginning of your file.This may be obvious but since you have no experience, just in case, you have to replace example.com with your domain name.Be sure you actually have and Apache server.Be sure to name your file ".htaccess" (with the dot, without the "")So, this should work:Rew...
Im have absolutely no experience with .htaccess and i tried something today. I basicly wanted all my pages starting withhttp://www. to redirect to http://so i did a search on the internet and found this link :http://forum.joomla.org/viewtopic.php?p=2437275again i had absolutely no idea what i was doing and i just copy ...
Redirect to www with .htaccess not redirecting
I do that same exact thing in my Kubernetes cluster. Our solution is for application to handle the web socket disconnect with consistent state kept intact.However, other options you have are mount a volume to serve from the host; however, you cannot guarantee all nginx pods will have that volume on multi hosts, unless...
I'm currently building a Kubernetes cluster. I plan on using Nginx containers as a server for static content, and to act as a web socket proxy. If you restart Nginx, you lose your web socket connection, so I do not want to restart the containers. But I will want to update the content within the container.
What are the options for syncing static content to Nginx within Kubernetes?
This code sample is a bit on the verbose side to make it easier to understand, but the table msdb.dbo.backupset can help you with this. https://learn.microsoft.com/en-us/sql/relational-databases/system-tables/backupset-transact-sql declare @MostRecentAuthorizedFullBackup datetime declare @MostRecentUnauthorizedNonCop...
I do a full backup once a month and then incremental backups in between. But meanwhile another users could do full backup and that break my chain. I know that there is a full back up with copy only. But in my case I can't know when and who will do the backup, so I need to find a solution to implement on my side to avo...
Is there an other solution than copy-only full backup?
you can do: git branch -u origin/cms and if the local branch cms is not the current branch git branch -u origin/cms cms these commands will set you up so you can do: git push origin cms =]
I have two branches on my remote: master and "cms". Now when I push to the cms branch I have to type: git push origin HEAD:cms. Is that really how it works or is there a shortcut command that I can use? Basically I'd like to have to option to choose to switch between each of my remote branches in the same way that I d...
How to push to a remote branch without providing the full push refspec?
Just adding on from the comment that says create it yourself. Here is an example: Prompt the user for the values and pass them into the following method, the Javadoc explains what is allowed in which value (taken from http://en.wikipedia.org/wiki/Cron#Format). This is untested and doesn't validate any of the input st...
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago. ...
Is there any Java code for creating Cron Expression? [closed]
You don't push files to your remote, you push commits (changesets). That's why Intellij wouldn't allow you to deselect anything when you are pushing.Pushing basically sends a commit delta (commits you have and the remote doesn't) to the remote.
In my project, when I choose "commit changes", I get a pop-up window where I can unselect some files. After doing this and clicking "commit and push", on the push window it still shows the files I unselected and there's no way to unselect them.After a push, it shows those files' changes on the remote server.How do I ke...
How push only the files from commit to git remote in IntelliJ?
The folder that you want to share is a subfolder the /Users. So it is already shared.ShareFollowansweredAug 4, 2016 at 2:57Marcel DiasMarcel Dias4,36111 gold badge1515 silver badges1010 bronze badges2OK, so does this mean that adding a directory to the "File Sharing" tab does not automatically bind that directory to an...
I'm following along withDocker's "Getting Started" tutorial, and in the "File Sharing" section there are instructions for sharing files into a new container. In the "Preferences > File Sharing" tab, I clicked "/Users" and then clicked the "+" button, then selected a directory that I wanted to add to my container and c...
Docker for Mac tutorial- overlapping export paths
Can you provide us with more info, like theserviceyou're using,From a quick guess, Looks like you're applying theexternalTrafficPolicy: "Local"on the wrong service,I also previously applied it to myNodePortservice instead of theNginx Serviceand it didn't workPlease check the service withLoadBalancertype, it's usually n...
When using nginx-ingress in Kubernetes (installed via helm), theX-Real-Ipis not my real IP (not preserving the original client IP)I've triedexternalTrafficPolicy: "Local",use-proxy-protocol: "true"as suggested, but it didn't help...
Nginx-ingress - Wrong src client ip (X-Real-Ip)
you can also docker exec -it container_id bash and then kill -9 of the main process. I tested with docker run -d --restart=always -e DISPLAY=$DISPLAY -v /home/gg/moncontainer:/home/gg -v /tmp/.X11-unix:/tmp/.X11-unix k3ck3c/captvty I killed the main process (pid 5, Captvty.exe), was logged out of the container, and 2 ...
From the Docker document, there is a restart policy parameter could be set. How do I verify the container indeed restarts when the container exits. How to trigger the exit of container manually, and observe if the container restarts? My environment is Mac and boot2docker. Thanks
How to check if the restart policy works of Docker
Short answerThe path will be just like above.Long answerThe path is the physical folder path where you save the self-signed certificate. In my case"C:\\Workspace\\CertficateUtils\\TheCertificate.pfx". You need to import this certificate to Local Computer/ Trusted Root Certification Authorities though.But the above conf...
I'm followinghttps://getakka.net/articles/remoting/security.htmldocumentation to implement TLS Secured communication using an Akka.Net cluster. I have generated a self-signed certificate using IIS and imported the certoficate TheCertifcate.pfx to Local Computer/Trusted Root Certification Authorities. The certificate is...
Akka.NET TLS implementaion
1 Use this commands, to know which directory is getting huge: du -h --max-depth=1 [project_root_path]/cache/ du -h --max-depth=1 [project_root_path]/cache/smarty du -h --max-depth=1 [project_root_path]/cache/smarty/cache You might have installed a module, which is handli...
I have a shop with prestashop installed on it. The cache folder size incrementally increases up-to 21gb+ every week & consumes heavy disk space. What could be the reason behind this ? In my settings - smarty cache is enabled Recompile templates if the files have been updated is ticked. Do I need to clear the cache in ...
prestashop huge cache folder size
You need to define it withARGinDockerfilebefore using:FROM alpine:3.3 ARG folderVariable=./my-folder # Optional default value to be `./my-folder` COPY ${folderVariable} /opt/my-folderAnd build it like:docker build --build-arg folderVariable=./folder-copy -t test .More details please refer to:https://docs.docker.com/e...
Trying to copy a folders content, it works when i hard code the path like:COPY ./my-folder /path/to/locationBut need to be able to change this path so i tried using a build argument like this:COPY ${folderVariable} /path/to/locationand then build with--build-arg folderVariable=./my-folderBut it copies everything in the...
Docker build-arg and copy
Another option is to add theirofficial repositoryto apt - this will provide you up to date AWS tools:sudo apt-add-repository ppa:awstools-dev/awstools sudo apt-get update sudo apt-get install ec2-api-tools -yThis is extremely useful for farther releases and and for up to date official bug fixes etc. just by running the...
I have created ubuntu 10.04 ec2 image and now I need to install tomcat apache and jdk6 on my instance but whenever I use the commandsudo apt-get install sun-java6-jdkorsudo apt-get install tomcat6 adminorsudo apt-get install ec2-api-toolsPackage ec2-api-tools is not available, but is referred to by another package. Rea...
Amazon web services and ubuntu 10.04 ec2 instance
You can choose a specific version of kubernetes control plane during installation by addingkubernetesVersionin the kubeadm config file.apiVersion: kubeadm.k8s.io/v1beta2 kind: ClusterConfiguration kubernetesVersion: v1.17.0 apiServer: ...
I'm trying to initialize a cluster with a configuration file in Kubernetes, The version for the kubeadm,kubectl and kubelet and as following for all nodes.1.kubeadmkubeadm version: &version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", Buil...
This version of kubeadm only supports deploying clusters with the control plane version >= 1.16.0. Current version: v1.12.0 Kubernetes
Update May 2013: see "Repository Search on all Repositories"Today we are allowing you to search your own public repositories and any private repositories you have access to.When you're on a repository page,you'll see an indication that you're searching that repository by default:Original answer (February 2013)I didn't ...
I know it is possible to search code inside a repo, by typing in the search box:my-keyword repo:user_name/repository_nameBut since I'm using a lot of projects everyday, and love to go deep inside the source code to see how this or that works, it very quickly becomes annoying to have to enterrepo: user_name/repository_n...
Github: Search code inside current repo
No solution but things that you could check:what is the version of git? Old versions <2.0 on Windows had a bug like that. Upgrade to the last versions that are quite goodverify that your files are encoded in utf8that git don't touch you files when committing ('autocrlf' at false)
Been working in C++ using Git (via SourceTree) for version control.My .cpp files will randomly become seemingly corrupted when I pull the project as shown below:Github still has the correct version of the file and even selecting the 'Open After' option in SourceTree shows me the file unaffected:The fact that Git and Gi...
Git, SourceTree, VisualStudio and corrupted .cpp files
You can usenode_exporter. It exports nfs and nfsd metrics:nfs Exposes NFS client statistics from /proc/net/rpc/nfs. This is the same information as nfsstat -c. Linux nfsd Exposes NFS kernel server statistics from /proc/net/rpc/nfsd. This is the same information as nfsstat -s. Linux
I'm trying to get in prometheus the status of an NFS server and the free disk space on that server.The configuration that I have isServer1:docker installedcontainer with prometheus/grafana ... etcServer2:nfsd serverI'd like to know the status of nfsd on prometheus (if possible, without the need of installing docker on ...
How to get NFS Free Disk Space on Prometheus
You can have a "wildcard" SSL certificate, valid for all subdomains - e.g. for*.example.com. This is indeed possible, useful - and more expensive than a single hostname certificate (e.g. forwww.example.com).There are various SSL certificate providers, and most can get you a wildcard certificate, so you're not limited i...
I have been looking for an affordable solution for a client of mine. In short, we developed aa web based application for this client through which he is going to establish partnerships with other firms that are able to modify the branding css files but for which the application is fully managed on my clients servers (n...
Unlimited Domains, Subdomains Certs with startssl.com?
Turns out the problem was anebextensionscript, did not realize they were checked at that stage, but I had configured a larger root disk, and in there it referred to /dev/sda1Resources: AWSEBAutoScalingLaunchConfiguration: Type: AWS::AutoScaling::LaunchConfiguration Properties: BlockDevic...
I have an Elastic Beanstalk application using anm3.xlargeEC2 instance.I wanted to try out usingm4.xlargeinstead so I cloned my EB instance. Then once it was running I clicked onChange Configurationand changed theInstance Typetom4.xlargebut then this gives the following errorInvalid root device name: '/dev/sda1', expect...
AWS:Device Name Error when converting from Elastic Beanstalk instance from m3.xlarge to m4.xlarge
10 You can either reuse your key pair already in your directory, or create a new key-pair specifically for GitHub's use. If you decide not to use the default pair, you'll need to modify your ~/.ssh/config file and add a host definition for GitHub pointing it to the new key...
I'm following these instructions for how to set up SSH keys for use with GitHub. The instructions tell you to delete your current .ssh directory and create new keys in that .ssh directory. I'm unable to do this as I already have keys in my id_dsa.pub that I need to use for other servers. Is it possible to set up SSH f...
Setting up SSH keys for GitHub
Don't rely on/proc/meminfofor tracking memory usage from inside a docker container./proc/meminfoisnot containerized, which means that the file is displaying the meminfo of your host system.Your/proc/meminfoindicates that your Host system has 2G of memory available. The only way you'll be able to make 6G available in yo...
I need to have a Docker Container with 6gb of RAM memory. I tried this command:docker run -p 5311:5311 --memory=6g my-linuxBut it doesn't work because I logged in to the Docker Container and I checked the amount of memory available. This is the output which shows there are only 2gb available:>> cat /proc/meminfo MemTo...
How to set RAM memory of a Docker container by terminal or DockerFile
Currently, HCL OneTest Data does not support the data insertion to fields with the DateTime data type.
When I import a schema or sample data set from a database, then does HCL OneTest Data generate the data for auditable fields, such as INSERTED TIME, UPDATE TIME) in the table?
Does HCL OneTest Data generate the data for auditable fields when a user imports a schema from database?
I found the answer over several examplesgit clone --bare --single-branch --branch Branch2 https://github.com/stuff/RepoA.git cd RepoA.git git remote add newbranch https://github.com/otherstuff/RepoB git push -u newbranch; git push --tags -u newbranch cd .. git clone https://github.com/otherstuff/RepoB.git cd RepoB git ...
So I currently have 2 repos: RepoA and RepoB. I am being to asked to mirror RepoA:Branch2 into RepoB:Master. Is there a way to mirror all the commit history of RepoA:Branch2 into RepoB:Master.All the examples I see keep the branch name the same or mirrors all the branches. I only need the one branch with all the his...
Mirror a specific branch into another repo under a different branch name