Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
You can useRename by regexfrom theTransformationsfor that.Go to the tabTransform, selectRename by regex, enter a regex that matches all IP addresses in theMatchfield and replace the initial name with the match. An example can be found in thedocs. | I'm configuring panels in Grafana, but the display shows a little more information than I would like.Ideally, I only want to see the IP address and the value, like this, without the instance ID.At the moment, I'm only able to do this using overrides and manually hardcoding the value I want to see, in this case, the pri... | How to show dynamic information in Grafana panels |
You could addkubectlto yourinstaller pod."In cluster" credentials could be provided via service account in "default-token" secret:https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ShareFollowansweredAug 5, 2017 at 20:11jaymejayme1,2661212 silver badges2525 bronze badgesAdd a comment| | I want to spin up a singleinstaller podwithhelm installthat once running, will apply some logic and install other applications into my cluster usinghelm install.I'm aware of the helm dependencies, but I want to run some business logic with the installations and I'd rather do it in theinstaller podand on the host trigge... | Kubernetes helm - Running helm install in a running pod |
If you are trying to find the merged PRs in a repo/branch during a period of time, it is possible using the GitHub Search Issues API.For example: if you want to find all PRs in repokm-poonacha/testissues, created between2017-06-01..2017-06-16and that aremergedyou can make the following request -https://api.github.com/... | I can't find the way hot to get information about several PRs inside one repo/branch filtered by their numbers from GitHub API. I'm trying to analyze git history and find pull requests titles merged in a branch during a period of time.Here I see only filter bystate.https://developer.github.com/v3/pulls/#list-pull-reque... | How to get a list of Pull Requests filtered by numbers through GitHub API? |
You can use the following :RewriteRule ^/?(cz|en)/([^/]+)/?(.*)$ $2.php?lang=$1&string=$3 [QSA,L]?: is used to disable the capture group, so $1 now Contains the value of your second capture group.ShareFolloweditedApr 14, 2016 at 14:13answeredApr 14, 2016 at 13:21Amit VermaAmit Verma41k2121 gold badges9595 silver badge... | I would like to write a rule, that would redirect URL like this:myweb.com/en/pagetomyweb.com/page.php?lang=enAnd URL like thismyweb.com/en/page/SOME_TEXT(EVEN WITH SLASHES)tomyweb.com/page.php?lang=en&string=SOME_TEXTThis code:RewriteRule ^(cz|en)/(.*)$ $2?lang=$1 [QSA,L]works for the language but not for the another ... | .htaccess complex mod_rewrite rule, language in URL |
1
From docker swarm documentation (https://docs.docker.com/engine/swarm/key-concepts/):
Swarm mode has an internal DNS component that automatically assigns
each service in the swarm a DNS entry. The swarm manager uses internal
load balancing to distribute requests among se... |
Docker network is created in a docker swarm, which contains several nodes, with this command:
docker network create --attachable --driver overlay [network-name]
And containers are attached to the network with "docker service create" command.
There is extra container with the name "lb-[network-name]" appeared after i... | What is the extra container with "lb-" prefix in docker swarm network? How to set up docker network not to have that? |
If a YAML value starts with a*then it is a YAMLalias nodethat refers to another&anchornode earlier in the document. (It's somewhat unusual to use this particular YAML feature in Kubernetes and especially with Helm; you see it occasionally in Docker Compose setups.)schedule: * 13 8 12 *
# looks like (not valid Kuberne... | I have a cronjob running in an aks. Its rollout with an helm chart:apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "gdp-chart.fullname" . }}-importjob
labels:
{{- include "gdp-chart.labels" . | nindent 4 }}
spec:
suspend: {{ .Values.import.suspend }}
schedule: {{ .Values.import.schedule }}
j... | Kubernetes Cronjob. Upgrade Schedule with helm command. Set does not accept * as first character |
The problem is not Sub, but you are not using ImportValue correctly. The thing you are actually importing in your code is not myexport, but touch ${myexport} as a whole. You should put your ImportValue inside Sub.
Also, if the export value is literally called myexport, you don't put it inside ${}; you only do this if ... |
When uploading my template to CloudFormation I am receiving the following validation error:
Template validation error: Template error: the attribute in
Fn::ImportValue must not depend on any resources, imported values, or
Fn::GetAZs
I have a test template below that reproduces the issue:
Resources:
EC2Instance:
... | AWS CloudFormation: Combining ImportValue and Sub functions causes error |
I had the same problem once and was wondering.
I found Issue on GitHub:https://github.com/docker/compose/issues/6920Check, maybe you will find something useful for yourself.ShareFollowansweredJun 4, 2022 at 19:36ParitiPariti2122 bronze badges0Add a comment| | I just wondering about toml support for docker-compose.I've only found following Reddit implementation of toml instead yaml.https://www.reddit.com/r/docker/comments/t1uvxu/dockercomposetoml/Does anyone know something more about toml support or more official implementation? | Use toml file format instead of yaml or json for docker compose... is it possible? |
After a long while tinkering, I found my solution. In the case of Jenkins, a .groovy script is run. In TeamCity, I had to add a configuration parameter and click "edit" under the Spec: label. Choosing a checkbox allows me to create a pipeline similar to Jenkins. I can add as many parameters as I like.I then create a Bu... | I'm currently in the process of migrating several dozen Jenkins Pipelines over to TeamCity and I'm just learning TeamCity. Currently we have a large Jenkins pipeline containing 70+ build steps. In Jenkins, this pipeline can be built depending on a boolean check box for each step so we can choose what steps we wish to b... | Issue migrating Jenkins boolean pipeline to Teamcity build chain |
Reverting the working tree version of a file to match the index version is one of many thingsgit checkoutcan do (depending on what args you give it).Reverting the index version of a file to match the version in theHEADcommit is one of many thingsgit resetcan do (depending on what args you give it). It is different fro... | This question already has answers here:What is `git restore` and how is it different from `git reset`?(5 answers)Closed3 years ago.IN order to revert a item from staging area we usegit reset filename or git reset .however git also gives me a prompt (mentioned below) after I dogit status.Changes to be committed:
(use ... | Difference between git restore, reset & git checkout? [duplicate] |
According to thePHP documentation, you can't use thedisable_functionssetting anywhere other than in aphp.inifile, so I'm very surprised this is working at all.If you need per-vhost or per-directory restrictions on functions, I would suggest using separate instances ofPHP-FPM, each of which can have its ownphp.ini. It a... | I'm trying to create a private clone of a popular website which gives the possibility to "write php code online" as a personal exercise.I write some code in a text areacode is executed some way server sideoutput is returnedI want the output to be exactly as it would be if served by an apache instance, with all the erro... | Disable php functions within htaccess |
You are trying to run an application with a JVM with a lower version number than the class was compiled with. Class version 52.0 equates to Java 1.8, and you are probably using 1.7, 1.6 or even lower. There will be no problem running it with a 1.8 or higher VM.You can check your VM version by executingjava -version. | I have the following problem, when executing Jenkins Job, I get the following error:error_sqINFO:
Java Version: 7
SonnarQube : 6.7.3-alpine
SonarQube Scanner for MSBuild 4.3.0.1333
Jenkins Version: 2.107.3Help me pls... | Jenkins Exception in thread "main" java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/cli/Main : Unsupported major.minor version 52.0 |
The library doesn't fully support Neo4j 4.x yet -still in development-.
You can either use an older image of Neo4j (using Neo4j:3.5.19 connects successfully), or you can use a different driver.
|
I want to setup my neo4j database and my .NetCore Web Api with Docker. I created the following docker-compose file :
version: '3.4'
services:
server:
image: ${DOCKER_REGISTRY-}server
network_mode: "bridge"
build:
context: .
dockerfile: Server/Dockerfile
stdin_open: true
tty: true
... | neo4j & .NetCore Docker setup |
You can look at the webhook event payload for an opened issue, and as far as I can tell, there's nothing in there that directly tells you what template the issue was created from.
As a workaround, you can set a unique label per template, both for the legacy templates and the issue forms, see docs.
Then, in your workfl... |
I've developed a GitHub action that currently is triggered when any issue is opened. I was wondering if there was a way to trigger this action only when an issue is created from a specific issue template? (e.g. when an issue is logged from bug.md and not from feature-request.md)
It looks like you can add if statements... | How to trigger a Github Action only when an issue is logged from a specific template? |
You cannot fetch all pods related to services (in the namespace) with one Kubernetes API call (one function call in Kubernetes C# library).You need to do the following:List all Services (filtered by namespace/name)List all Endpoints / Endpoint Slices (related to services you fetched in point 1.)List all Pods (related t... | I haveKubernetesClientcode running my app on K3s Orchestrator. I have created serviceprog,prog-external&my-modulewith specified Ports forapp-modulenamespace which are now seen inkubectl get svc -Acommand:root@Ubuntu20-VM:~# kubectl get svc -A
NAMESPACE NAME TYPE CLUSTER-IP PORT(S) ... | How to find existing service by Kubernetes C# client API |
Change the Cron value to ('0 0 0-23 * * *').It will work. | I have below node cron setup that runs every hour.const { CronJob } = require('cron');
const Job1 = new CronJob('0 0 */1 * * *', (async () => {
let response = await fetch(`${BASE_URL}/todo`);
response = await response.json();
infoLogger.log({
date: new Date().toISOString(),
level: 'info',
env: proces... | Run node cron every O'clock hour |
Assuming you want to use quarkus based Keycloak: Json logging for the quarkus based keycloak is only available since v18, see therelease notes- the guides are at the moment referencing only the latest version.I heavily recommend to update to this version. Then you could use the log console output variable.You find the ... | I want to reformat the default logging output to json format without code changesDocker image: jboss/keycloak:16.1.1The current log structure is the default15:04:16,056 INFO [org.infinispan.CLUSTER] (thread-5,null) [Context=authenticationSessions] ISPN100002: Starting rebalance with members [], phase READ_OLD_WRITE_AL... | kubernetes Keycloak logging in json format |
You can make openssl x509 read a specific config using the "-extfile" command.I would suggest you make a new config, lets name it foo.cnf.
Inside it put:subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer:always
basicConstraints = CA:trueNow run your command with a small change:openssl x509 -req -in ip... | we're doing a freeipa install using our existing CA. During the install, a CSR is generated and must be signed by the CA to create a certificate. This certificate must haveX509v3 Basic Constraints:
CA:TRUEI have been researching for about an hour now and I'm at a loss of what to do. Typically, i sign... | FreeIPA external CA (intermediate CA) |
EDIT: create-react-app v2 now have the service worker disabled by default
This answer only apply for CRA v1
This is probably because of your web worker.
If you look into your index.js file you can see
registerServiceWorker();
Never wondered what it did? If we take a look at the file it got imported from we can see
... |
When I updated my site, run npm run build and upload the new files to the server I am still looking the old version of my site.
Without React, I can see the new version of my site with cache-busting. I do this:
Previous file
<link rel="stylesheet" href="/css/styles.css">
New file
<link rel="stylesheet" href="/css... | Cache busting with CRA React |
Good code gets re-used. Good code have few size limitations. Write good code.
Use malloc() whenever there is anything more than trivial buffer sizes.
Buffer size to write an int: The needed buffer size is at most sizeof(int)*CHAR_BIT/3 + 3. Use a fixed buffer.
Buffer size to write a double as in sprintf(buf, "%f",... |
Most examples using structs in C use malloc to assign the required size block of memory to a pointer to that struct. However, variables with basic types (int, char etc.) are allocated to the stack and it is assumed that enough memory will be available.
I understand the idea behind this is that memory may not be availa... | At what size should I malloc structs? |
Run Pylons in daemon mode.paster serve development.ini --daemonShareFollowansweredJul 1, 2009 at 20:21Lennart RegebroLennart Regebro170k4242 gold badges225225 silver badges252252 bronze badges1Yes supervisord makes it much easier–PedroMorganAug 29, 2012 at 5:21Add a comment| | Is there a tutorial on how to deploy Pylons with Nginx?I've been able to start nginx and then serve pylons to :8080 with paster serve development.iniHowever, I can't seem to do other stuff as pylons locks me into that serve mode. If I try to CTRL+Z out of pylons serving to do other stuff on my server, pylons goes down... | Deploying Pylons with Nginx reverse proxy? |
20
So, thanks to the tips by @strognjz above, here is what worked for me using `aws-sdk-s3'.
require 'aws-sdk-s3'
#credentials below for the IAM user I am using
s3 = Aws::S3::Client.new(
region: 'us-west-2', #or any other region
access_key_id: AW... |
I am trying to generate a pre-signed url on my Rails server to send to the browser, so that the browser can upload to S3.
It seems like aws-sdk-s3 is the gem to use going forward. But unfortunately, I haven't come across documentation for the gem that would provide clarity. There seem to be a few different ways of doi... | Recommended way to generate a presigned url to S3 Bucket in Ruby |
After quite a bit of investigation, we discovered the root cause - our company's antivirus software (Sophos) is blocking Edge (and only Edge) from reaching internal IP addresses. Edge's error message - "outdated or unsafe TLS security settings" - was misleading; Edge's requests weren't able to make it to the wire at a... | For development, my team is using a self-signed SSL certificate. After installing the certificate in my machine's Trusted Root Certification Authorities store, the SSL certificate is recognized as valid in Chrome and IE 11:Internet Explorer 11:Chrome 69:But Edge (version 42) seems to be ignoring the certificate:Based ... | Self-signed trusted root certificate is not recognized by Edge |
i would clear your temporary internet files and cookies, and to go further, stop the container, and use thefusercommand. An example is shown below,fuser -v -n tcp 80-vis for verbose mode, and-nis used to select the corresponding name
space.If an application is using port 80, then you can stop this program, or change th... | Closed. This question needsdetails or clarity. It is not currently accepting answers.Want to improve this question?Add details and clarify the problem byediting this post.Closed3 years ago.Improve this questionI used Docker version 19.03.13 and run Docker in Windows 10.To reproduce the problem:Run command line as below... | Why Docker container is running but localhost shows only "it works"? [closed] |
0
One propable cause is because you haven't set the environment variable HOME (unless you started git with the git-cmd.bat included in the Git For Windows distrbution)
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
Ssh... |
I have created public/private key pair using the instructions in this link and access is given for this key from GIT. when i tried to clone the repository, i am prompted for password in GIT bash, I tried the passphrase, which i used while generating the key, it did not work and how to solve this issue.
OS: Windows 8
| Unable to clone GIT repository using SSH |
You should rewrite your history usinggit rebase -iand then usegit push --forceto override the distant branch with your local one. | This question already has answers here:Remove sensitive files and their commits from Git history(12 answers)Closed5 years ago.I committed a few times to my Github, and realized that I had some sensitive information ononeof the earlier commits. I've removed it since then in my most recent commits, but if someone were to... | Stop showing commit on github or similar? [duplicate] |
Your program eats a lot of memory, getting OOM is certainly not unexpected. Exactly where it will die is unpredictable. But yes, creating the bitmap is where it is likely to die first. Addressing the most likely reasons in order:
foreach (var car in cars)
There is no obvious upper-bound on the number of cars yo... |
I have an application, which processes and re-sizes images and occassionally during long iterations I get OutOfMemoryException.
I store my images in the database as filestream and during processing I need to save them to a temporary physical location.
My models:
[Table("Car")]
public class Car
{
[... some fields ..... | Out Of Memory exception on System.Drawing.Image.FromStream() |
It sayshereNP: Possible null pointer dereference (NP_NULL_ON_SOME_PATH)There is a branch of statement that, if executed, guarantees that a null value will be dereferenced, which would generate a NullPointerException when the code is executed. Of course, the problem might be that the branch or statement is infeasible an... | I am using Sonar and I have got this kind of violation from it for a peace of my code:Correctness - Possible null pointer dereferenceHas anyone know about this rule in findbugs? I searched a lot but I can not find a good sample code (in Java) which describe this rule, unfortunately findbugs site did not have any sample... | What is the meaning of Possible null pointer dereference in findbug? |
As a habit, you shouldpullorrebase(which is better is a subject of great debate and is up to your source control admin) before anycommitandpushtoorigin, ensuring your copy of the repo has the latest versions AND that you can resolve conflicts before youpush. If youpulland resolve conflicts (if there are any), your re... | I am new to git and I am using sourcetree in my current project. Everytime I do a pull request from my origin feature branch to origin/master the local master inside sourcetree wants to pull. So far so good, since the local master wants the new changes, however right after I do a pull to local master, it shows me to pu... | Why after pull from origin/master, the local/master wants to push again? |
There are a ton of good reasons to include it, the best of which is here:Yahoo Performance Best PracticesDue to the dot rule with cookies, if you don't have the 'www.' then you can't set two-dot cookies or cross-subdomain cookies a la *.example.com. There are two pertinent impacts.First it means that any user you're gi... | When browsing through the internet for the last few years, I'm seeing more and more pages getting rid of the 'www' subdomain.Are there any good reasons to use or not to use the 'www' subdomain? | Why do some websites require "www"? [duplicate] |
No, Grafana doesn't install plugins used in the dashboard - that will be very dangerous feature. It is a Grafana admin responsibility to install plugins in advance. Also plugins can't be installed from ini file.You can use plugin provisioning eventually -https://grafana.com/docs/grafana/latest/administration/provisioni... | 1)I have exported a dashboard in a json file.2)When I re-import the json file, grafana does not install the plugins that were used in
the dashboard.Is there a way I can configure plugons to be insalled by default in my .ini file.
or is there a way out when I import the grafana dashboards , it also installs plugins use... | How to import Datasources in grafana using from the export json file |
The correct way is to use theFflag, which simply returns a 403 forbidden and you can use-as the target which just means "do nothing and let the URI pass through unchanged":RewriteEngine on
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ - [L,F]Or you can try combining the condition with the rule:RewriteEngine on
Rewri... | I have a folder containing various .php files, and I want to prevent direct access to them, BUT to index.php.This is what I got so far, and it appears working:<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ /403.php/$1 [R=403]
</IfModule>Is this the correct way to do it? Also ... | Sending access is denied error using htaccess on apache for all files but a certain one |
GitHub Api doc says:
Note: Pagination is powered exclusively by the since parameter.
see https://developer.github.com/v3/repos/#list-all-public-repositories
The per_page parameter is not supported.
|
As my title stays, how to get only a limited number of repositories from the public API? I'm using the following link:
https://api.github.com/repositories //Gets 100
To get first the 100 repositories but I only need to get 15. This what I tried:
https://api.github.com/repositories?per_page=15 //Gets 100
It seems tha... | How to get only 15 repositories from GitHub API? |
Well, if a view is shown and then hidden, it will receive both an initWithNibName and then a release; so what you should do is something like this:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
yourArray = [[NSArray alloc] init];
}
- (void) dealloc
{
[yourArray release];
... |
Is it correct to allocate memory for an array that is set as a property in the method initWithNibName if i don't want to allocate memory for it anymore (even if the view is pop and then is pushed again)?
Thanks
| Iphone Allocate memory in initWithNibName |
Different CPU processes have different process-based virtual to physical pointer mappings. Therefore a (virtual) pointer created in one CPU process cannot be reliably used in another process. UVA has no control over harmonizing separate CPU process virtual mappings.
|
When we use nVidia GPU we can use UVA (unified virtual addressing) as on the picture. But we can use GPU+UVA from different CPU-processes with different contexts.
Will be UVA use the same Page-Table (virtual address <-> physical address) for UVA in all CPU-processes(contexts), look like as it done for kernel-space ad... | Can CPU-process write to memory(UVA) in GPU-RAM allocated by other CPU-process? |
4
Create a repository in github and copy the git url(Something Like https://github.com/username/gitname.git ).
Then
git init
git add .
git commit -m "First commit"
git remote add origin https://github.com/username/gitname.git
git remote -v
git push origin master
Then ... |
I want to backup my project, so I have tried initializing a rep with
git init
and then commit all files with
git add .
git commit -am "first commit"
and now I want to push it to a repository (which is not only locally stored).
I know I have to do something like
git push origin master
I know that master is the name ... | How do I backup my project with git? |
The simple answer is yes. I wouldn't call it industry standard, because AFAIK there isn't one.The more complicated answer is: It depends. It depends entirely on the security requirements you need to adhere to for the applications you're deploying.There's a number of ways you can manage this in a single cluster, assumin... | We are planning to deploy 15 different applications in azure kubernetes. These applications are owned by multiple business portfolios - eg: marketing, finance, legal.Currently we have provisioned an AKS cluster with the following configurationSubnet : x.x.x.x/21, that gives us ~2k IPs.Network : Azure CNINetwork policy ... | Azure kubernetes - How many clusters? |
Yes. I assume that you mean to assign aLoadBalancertype of address to your Kubernetesservice. You can manually query the GCP API to see if your Load Balancer IP has been allocated. For example,GETa resource address.You can also use thegcloudcommand.Here isa list of all the GCP APIs related to load balancing that you ca... | I have a process where I use a Kubernetes client to build a deployment and a service. This process works fine but I have to wait some time for google to assign it an external IP. I cant seem to find anything in googles docs about a possible event emitter for when this process is done. Is there a way to programmatically... | Kubernetes API get service endpoint IP when available |
You have 2 options.
In your branch, do git merge origin/master. If you have merge conflicts, you need to resolve. You will have an additional commit created for merge
Alternatively, you can do git rebase origin/master. Here again you need to resolve conflicts if there are any. But you will not have the merge commit p... |
I am new to git and GitHub. I forked a repository and cloned it to my machine. Created a branch fix-a-certain-issue. I worked on this branch and pushed it back to origin/fix-a-certain-issue and then opened a PR. Two days later, the PR is reviewed and I am supposed to make changes to it. The problem is my fix-a-certain... | Update branch without deleting pull request made from it |
1
First, Kill the processes via ssh.
Then, do pm2 restart ecosystem.config.js via Github CI.
Share
Improve this answer
Follow
answered May 14, 2022 at 18:40
Prasad TamgalePrasad Tamgale
33... |
I recently updated my self-hosted linux server on compute engine. Pm2 had been working perfectly along my github actions previously. However after update when i restart a pm2 instance from my ssh terminal it works fine. But when I try to restart pm2 instance from github actions jobs then it throws me this error. I've ... | Error: RROR] Process or Namespace not found. PM2 Error Linux Server with github actions |
Someone helped me onSuper User.The trick is to NOT prefix the Cert Path with "CurrentUser".c:\Windows\System32>curl.exe --cert
"\\MY\\7cbcaf1586e5a1cb9ba72aa7deed294ca4779266"
https://server.cryptomix.com/secure/ | Disclaimer: I am new to curl.When I go tohttps://server.cryptomix.com/secure/with Chrome, I am asked by Chrome to choose one client cert among the few ones I currently have in my Windows Cert Store.Once I have choose a Cert, cryptomix.com is happy.Fine. Now I have a curl shipped with WindowsBUT THEN, if I justcurl http... | How to tell curl to use one client cert from the Windows Cert Store? |
You can stick with an older image likedocker:18.06.2-dind. Alternatively take the upstreamDockerfileand edit the alpine version to your liking. No guaranty the build will still work, but could be worth a try.In the long run you probably want your dependencies to be upgraded to versions compatible with more recent Node ... | Recently the DIND release was updated from using Alpine 3.8 to Alpine 3.9.Alpine 3.9 supports only Node 10.14. This is problematic because Node 10.14 is incompatible with several required packages, such as ursa and @newrelic/nativemetrics... these work well with Alpine 3.8, which supports Node 8.14.We've been using DIN... | Docker-in-Docker with Alpine 3.8 |
By default tensorflow will allocate almost all GPU's VRAM, to limit that seehere.The GPU usage instead depends on thebatch size(larger tends to utilize more GPU),size of the neural network(smaller models use less resource),layer kind(e.g. convolutions use the GPU more efficiently), and thedata pipeline: if the way you ... | I'm training a model right now and it's using almost all my VRAM but my CUDA usage is hovering between 10-20%. Is this normal? I know it's meant to use a lot of VRAM but I'm surprised it's not using a lot of Cuda cores. | Should Tensorflow always be using the most Cuda cores it can? |
74
Its actually formulated more like:
https://<bucket-name>.s3.amazonaws.com/<key>
See here
Share
Improve this answer
Follow
answered Oct 28, 2011 at 18:55
stevebotstevebot
23.6k3030 go... |
I am having some trouble figuring out how to access a file from Amazon S3. Lets say that the bucket that the file lives in is BUCKET_NAME, the file is FILE_NAME, etc. I have tried the following two URLs:
https://s3.amazonaws.com/BUCKET_NAME/FILE_NAME/
?Expires=EXPIRATION
&Signature=SIGNATURE
&SignatureVersion=2
&Signa... | How to format a URL to get a file from Amazon S3? |
I think you are not clear on the idea of version control. Version control is about managing your code. It is about putting your code in a remote server (may be in a central location) and accessing it using a client tool. This way a number of people can work on different part of the code and than push their work to ver... |
I understand the concept of source version control and how it applies to self-contained projects like a Windows application. But for web development, most files are stored on the web server. This has become a headache for development with many people just copying and renaming files and then pushing files over to produ... | How do I integrate source version control with a web server? |
Thanks to @BenjaminW for pointing me in the right direction.
I used the gh cli tool from GitHub and jq:$PR_ID=<your_pr_id>
gh pr list --json number --json reviewDecision | jq --arg PR_ID "$PR_ID" '.[] | select(.number == ($PR_ID|tonumber)).reviewDecision' | tr -d '"'In which case the output is either APPROVED or REVIEW... | I am trying to identify using a script if the pull request of mine is blocked and whether it is blocked due to insufficient reviews.For example, it may be defined in the branch protection rules in GitHub that a pull request must have two reviews in order to merge, and those reviewers must not be the same person who mad... | How can I check from the command line if a pull request on GitHub is blocked due to insufficient reviews? |
No point appendingQUERY_STRINGyourself; you'll leave a stray&if there isn't any, and mod_rewrite already has a tool to do it better:RewriteRule ^(.*)\.html$ index.php?pagename=$1 [QSA]You can control aRewriteRulewith aRewriteCondthat precedes it. For example:RewriteCond %{REQUEST_URI} !^/staticpage.html$RewriteRule ^(.... | I currently have this in my .htaccess file:Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)\.html$ index.php?pagename=$1&%{QUERY_STRING}The the html file name is rewritten to the pagename query string.However I'm trying to allow access to one particular static html file, so somehow I need to overwrite t... | How would I write a RewriteRule to make an exception for one file |
Strangely enough, it worked when I copied the toml file from thepackaging tutorialand edited the fields to match the project. | I have a python packagehereand the publishing workflow errors when building the package. The error is suggesting the email field in the pyproject.toml file is not formatted properly, but it is correct. Is the error coming from somewhere else? How do I fix it? | `email.errors.InvalidHeaderDefect: addr-spec local part with no domain` error when building python package |
CodePipeline is designed around a model of one pipeline per project / service.Trying to combine multiple independent release processes into a single pipeline is challenging due to the superseding behavior where newer changes can replace older changes while waiting for a stage to be come free to avoid unnecessary releas... | I'm investigating whether or not CodePipeline will work for our use case:We have several hundred repositories, all hosted with CodeCommit. The build/test/release process for all of these is identical, aside from minor configuration.What I'd like to do is set up a pipeline that will build/test/release changes made in an... | AWS CodePipeline track multiple repositories as a single source |
yes, you should always remove any observers when they're being dealloc'd. otherwise the notification center will keep references to the now-dealloc'd objects around and continue to try to forward notifications to them.
|
In one of my view controller, it adds itself as observer of UITextViewTextDidEndEditingNotification notification, like the following does
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(done:) name:UITextViewTextDidEndEditingNotification object:nil];
Now I am wondering - do I need to do the ... | is removeObserver necessary on dealloc? |
The service ip you manually select has to be part of the selected range or you'll receive aninvalid(422) response from kubernetes. Thekubernetes documentationhas a choosing your own ip section for services. If you have admin rights to the cluster the easiest option is going to performkubectl get services --all-namespa... | When creating a service, I can either specify static IP address from cluster IP range or don't specify any IP address in which case such address will be dynamically assigned.But when specifying static IP address, how can I make sure that it will not conflict with existing dynamically assigned IP address? I could for ex... | Kubernetes: reserving subrange of service-cluster-ip-range for manual allocation |
After much digging, rummaging, hair-pulling, and going down one rabbit hole after another, we found the culprit to be our geolocated load balancers' SSL certificates that needed updating. Once we did that across every supported region, the SSL issues went away.A humbling experience for all involved.ShareFollowansweredA... | We have been trying for a while now to pass validation on our new Word add-in. Since the reports recommend contacting the validation team on Stack Overflow, here we are.The reports state that:certain URLs in the manifest "do not resolve to functioning websites", andthe add-in could not be loaded "because it isn't signe... | Cannot reproduce validation fail when browsing to login website |
This regex\d+-(.+)will match 1 or more digits followed by hyphen followed 1 or more any thingTry this code instead:RewriteRule ^(online-store)/inner-store/(.*)$ /$1/$2 [R=301,L,NC]Make sure this is first rule in your.htaccessand use a different browser to test it to avoid caching issues. | i need to remove part of Joomla/Virtuemart generated SEF URI using .htaccess
the URI represents a menu hierarchy and structured this way:online-store
- inner-store
-product-catalogthis is the resulting URI:www.domain.com/online-store/inner-store/product-catalogi would like to change it to:www.dom... | erase part of a URL using htaccess rewrite |
Defining the volume in the Dockerfile doesn't expose the volumes to the host by default. Instead it sets up the linked volume to allow other containers to link to the volume(s) in other Docker containers. This is commonly used in a "Data Container" configuration where you start a container with the sole purpose of pe... | To me theVOLUMEin a Dockerfile doesn't seam to be doing anything, where-von the commandline actually make a directory available inside the container.When I read the Docker manual forVOLUME, it is not really clear to me, why I ever want to write it in the Dockerfile, and not just on the commandline? | Why would I want to to use VOLUME inside a Dockerfile? |
You can usememcachedalso. There are alsoother alternatives. You may also check Scott Gu'spostabout the new cache extensibility model introduced in ASP.NET 4.0. | Having used PHP on Linux a lot, I'm used to using memcache so that the database doesnt have to be accessed on every single request. What do people use on Windows the achieve this? From the asp.net mvc applications which I've seen, none of them use any sort of cache, they just hit the database on every request? Is this ... | ASP.NET Data Caching? Memcache equivalent |
You can probably install this on the same server as the rabbitMQ, and make it trigger the lambdas. I haven't tried myself though
https://github.com/AirHelp/rabbit-amazon-forwarder
As far as I understand, lambdas are billed by the running time, and you pay based on amount of memory (per gigabyte/second). So making a la... |
From what I know, Lambdas are for listening to events and running a piece of code on response to those events.
The events need to be AWS services or HTTP endpoints.
If I have a RabbitMq service running on an EC2 server (Not using SQS), is it possible to have a consumer deployed on Lambda?
If possible, would this be th... | RabbitMq Consumer on AWS Lambda |
Rather, set it asPROMPT_COMMAND='PS1=$(git config user.email)'ExamplePROMPT_COMMAND
If set, the value is executed as a command prior to issuing each primary
prompt.bash(1)ShareFolloweditedJun 12, 2013 at 3:16answeredJun 12, 2013 at 2:52ZomboZombo11Great man, it works. Thanks a lot. How this works can you expla... | Sometimes I have to work with multiple Github accounts. Different email and name. And what happens all the time is I accidentally commit with wrong user and everything this messes up everything (scenario is both the users have access to that repo but one user is wrong). So to avoid this I want to display github user em... | Is there any way to display github user name in prompt |
Found the issue. Not a system admin, else I should have know this thing. Following command is flushing the data from the EBS volume.
yes | mkfs -t ext3 /dev/sdf
On an EBS volume, started using snapshot, don't run above command. Hope it this thread will help someone in future.
|
I created an EBS volume, attached and mounted it on an EC2 instance. Created few sample text files in the mounted directory and took a snapshot from the AWS console.
Problem is, when I create a new EBS volume using this snapshot and mount this new volume, I am not seeing the stored content (in snapshot).
What can be t... | Why am I not seeing new content in an Amazon EBS volume created from an existing snapshot? |
I found the answer athttps://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-addressNote: If you created your GitHub account after July 18, 2017, your GitHub-provided no-reply email address is a seven-digit ID number and your username in the form of[email protected].... | If I change my username on GitHub, will my contributions still show commits from merged pull requests that are listed as using the email[email protected]? On theGitHub websiteit saysGit commits that were associated with your GitHub-provided noreply email address won't be attributed to your new username and won't appear... | Will changing my GitHub username update/remove attributions using the noreply email |
Clear the OS cache:sudo killall -HUP mDNSResponderDisable Safari DNS prefetching:defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false | I'd like to disable Safari on Mac OS X from performing DNS caching.Is there a way to do that through configuration or any other setting ? | How can I disable DNS caching in Safari? |
1
The memory usage of the heap of (Java) applications is only a part of the memory that the applications requires. Other typical uses of memory are:
Stack memory for each application Thread
application code, (shared) libraries
operating system purposes, including caches th... |
Say I have three Java applications; A and B are 32 bit, C is 64 bit. All of them are configured with
maxHeapPercent = 50
maxHeapSize = 1024
which reads "50 percent of available memory no less than 1024 MB", according to the documentation. Now my question is, what will happen if I run these applications on the same ma... | Launch4j: HeapPercent for multiple applications |
2
Thanks to fluffy.
To implement the same, simple use the removalListener.
For my use case:
Cache<String, File> cache = Caffeine.newBuilder()
.removalListener((String key, File file, RemovalCause cause) -> {
file.delete();
})
.expireAfterWrite(3, TimeUnit.... |
I want to create a cache like so
Cache<String, File> cache = Caffeine.newBuilder()
.expireAfterWrite(1, TimeUnit.MINUTES)
.maximumSize(100)
.build();
That i will populate with a temporary file like so,
File f = File.createTempFile("jobid_", ".json");
FileWriter fileWrit... | Perform action on expiry with Caffeine on Java |
Unfortunately currently (August 2016) it is not possible to do that on Azure. The only way to fix it would be to download the VHDs for the VM, boot them locally in Hyper-V, VMConnect to them, fix the problem and upload them back to Azure.It is an often requested feature here:https://feedback.azure.com/forums/216843-vir... | I have a remote Azure Ubuntu VM where firewall wasn't enabled. While changing the configurations I accidentally enabled the firewall but forgot to allow port 22 for SSH. Only port 443 is allowed in firewall.It's a very lame mistake but I cannot SSH into my VM. The SSH connection is refused every time. Is there a way ou... | Accidentally enabled Firewall - SSH connections to port 22 are refused |
I was able to work around this some time ago by getting a Personal Access Token working.The environment I'm forced to work in made even this difficult, but got there eventually. | To set the scene: I work in a highly restricted SOE. I can only sign in as a standard user, but have administrative access through "Run as other user" or "Run as administrator".When trying to setup GitHub access, VSCode running as administrator opens an authentication window in a browser that then wants to re-open VSCo... | Git authentication not opening VSCode as "other user" |
You can use preStop hooks to complete ongoing task before the pod is terminated.Kubernetes sends the preStop event immediately before the Container is terminated. Kubernetes’ management of the Container blocks until the preStop handler completes, unless the Pod’s grace period expires.For more details, seeTermination of... | I'm managing a application inside kubernetes,
I have a front end (nginx, flask) and a backend (celery)
Long running tasks are sent to the backend using a middle-ware (rabbitmq)My issue here is that i can receive long running tasks at anytime, and i don't want it to disturb my plan of upgrading the version of my applic... | With Kubernetes Is there a way to wait for a pod to finish its ongoing tasks before updating it? |
If I understand you correctly you should focus on Kublet, it's support for several container runtimes and it's integration with Docker.According to thisdocumentation, there are plenty of options to choose from, like:--cgroup-driver stringDriver that the kubelet uses to manipulate cgroups on the host.--cgroup-root strin... | By default Docker containers are unprivileged. Of course devices can be added individually withdocker run --device /dev/abc0but this cannot yet be done in Kubernetes.In any event I have an arbitrary number of devices per node, which makes it easier to map/devand to enable a cgroup rule:docker run -v /dev:/dev --device-... | Apply control group rule to specific (or all) Docker containers in Kubernetes cluster |
Use:
Capybara.app_host = "http://yourhostip:9000"
not localhost. For docker container localhost is itself.
Also I recommend not calling docker by its internal ip just use:
options[:url] = "http://localhost:4444/wd/hub"
But first solve the former problem
Regards
|
I'm trying to run my tests using Selenium docker,
I have a local grunt server running on port 9000, I' launched the following selenium docker:
docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug
Then I've launched my tests (using Capybara) and opened VNC to watch the tests, but all I get is chr... | Trying to reach localhost from inside Selenium docker |
Give this a try;Const SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3
Const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056
Call vXMLHttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CER T_ERROR_FLAGS, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS)ShareFolloweditedMar 17, 2014 at 10:45answeredMar 17, 2014 at 10:33user692942user69294216.5... | The following routine works fine from my Win 2003 server to send a pay request to Paypal.Set vXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
vXMLHttp.setOption(3) = CERT_PATH
strURL = KEYPOINT &"/AdaptivePayments/Pay"
vXMLHttp.open "POST", strURL, false
vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-USERI... | paypal classic asp msxml error on windows server 2008 |
The following query must return the average number of files being generated per minute over the last 24 hours:avg_over_time(
increase(txt_files_data__total{instance="localhost:9999",job="python"}[1m])[20s:24h]
)This query usessubquery feature. | I've just a service that creates 2 files each 30 seconds on a specific directory using python, and I'm using Prometheus/Grafana to evaluate the number of files being uploaded over time, with the metric that I've created on Prometheus namedtxt_files_data__total. Sometimes I just upload more files to my directory manuall... | Prometheus - Monitoring number of files - avg_over_time is giving a huge number |
RUN instructions happen at build time.
ENTRYPOINT and CMD instructions happen at run time.
You probably want something like this in your Dockerfile:
....
ENTRYPOINT ["xyz.sh"]
CMD ["--IP", "127.0.0.1"]
....
Then you can run with:
docker run -it some-image --IP 127.0.0.1
Arguments after the image overwrite the CMD i... |
My Dockerfile contains a
RUN xyz.sh --IP localhost
and when I give the command docker run I want to insert a new IP address:
docker run -it IP 127.0.0.1 name:tag
How to pass it like this?
I tried to give ENV in Docker file and using -e in run command but nothing works.
| Dockerfile entrypoint script arguments in docker run |
You could fall back to a default value for the optional fields from the payload with #if-else.#set($req = $input.path('$'))
#if($req.optional_field != "")
#set( $my_default_value = $input.path('$.optional_field'))
#else
#set ($my_default_value = "no_data")
#end
{
"TableName": "A_Table",
"Item": {
"id": ... | I've been working with Mapping Templates on AWS API Gateway, in particular for DynamoDB integration. And I found very inconvenient to check against optional fields. For example I have a JSON payload like this:{
"optional_field": "abcd"
}now to put it to the database I use a mapping like this:#set($hasOptionalField... | API Gateway Mapping Template optional field |
Unity'sUnityObjectToClipPos(float3 pos)let's you transform a vertex into clip space. This means0to1on all axes, z axis is the distance from the rendering camera (from near to far clipping plane, I believe).You can use this distance to simply to only apply your keying to vertices further than a given threshold.If you do... | I have written a shader which converts an RGB Camera Value to HSV and then apply some filtering for green chrome.
Current ProblemIf the object at foreground (player) has green pixels, it will be cut out.I have already depth camera, how can I use that property for making a better cut out chrome key ?frag (v2f i) : SV_Ta... | Green Chrome Key Shader using depth |
Libraries likeaws-encryption-sdk-pythonsometimes contain code/dependencies that are not pure Python and need to be compiled. When code needs to be "compiled" it is usually compiled for a target architecture (like ARM or x86) to run properly.You can not run code compiled for one architecture on different architecture. S... | I have a lambda function runs on Python 3.7 with architecture x86_64 before. Now I would like to migrate it to arm64 to use the Graviton processor and upgrade to Python 3.9 as well.While I success to create the Python 3.9 virtual environment layer with the dependencies that I need, which isaws-encryption-sdk, when I ch... | Migrate to arm64 on AWS Lambda show error: Unable to import module 'encryptor-lambda' |
A Pod is the basic scheduling unit in Kubernetes. It is the common case that a pod will only have a single container running in it, as most containers can be scheduled independently (i.e. they do not need to be co-located on the same machine).
With regards to your example, you could put most containers in individual p... |
So I'm trying to wrap my head around what exactly a typical Kubernetes pod looks like. According to their docs, a pod:
"A pod (as in a pod of whales or pea pod) corresponds to a colocated group of applications running with a shared context."
Later in that same article:
"Pods can be used to host vertically integrate... | How to organize containers "horizontally" inside Kubernetes pods? |
Dropping in a simple mod_rewrite rule before the mainindex.phpbootstrap capture should get you want you wantRewriteEngine on
RewriteRule ^$ static-html.html [L] | Is there any way to have the Magento home page be a static html page?Under heavy load situations Magento (even with Varnish, APC, Fooman, block caching, etc) can be slow. However, I would like the home page to be as fast as possible. One way to do that is to just use a static HTML page.Is this possible? | Any way to make the Magento home page use a static HTML page? |
You'll want to explicitly tell the web server to load those files via a location directive.
Here's an example for what I use with Unicorn to have the web server load assets:
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
root /home/ubuntu/app/public;
expires max;
add_header Cache-Control public;
log_not_found ... |
I've just set up a Sinatra app running on Unicorn and served through a socket by NGINX.
I'm trying to get NGINX to serve my static assets with this in my nginx config:
upstream unicorn {
server unix:/tmp/unicorn.app.sock fail_timeout=0;
}
server {
listen 80 default;
server_name localhost;
root /home/ubuntu/ap... | Serving static files with NGINX for UNICORN served app |
There's no native solution for this. However, I've approximated something like this usingpre-commithooks.Basically, there is apre-commithook script that will generate the possible choices and edit thevariables:key in the.gitlab-ci.ymlto contain all the appropriate options whenever they change. I also setuppre-commit au... | I’m trying to create a parent child pipeline on Gitlab using gitlab-ci but I need to share variables from parent to child pipeline.
I’m using the “options” capability to have a drop down menu with pre-filled values just to avoid TYPO while filling the variable.
Is there any way to create the options starting from a bas... | Dynamically create gitlab-ci variables starting from a script |
<div class="s-prose js-post-body" itemprop="text">
<p>You can set the environment variable <code>DOCKER_DEFAULT_PLATFORM</code>:</p>
<pre class="lang-bash prettyprint-override"><code>export DOCKER_DEFAULT_PLATFORM=linux/amd64
</code></pre>
</div> | <div class="s-prose js-post-body" itemprop="text">
<p>Current beta version of docker requires you to specify a <code>--platform=linux/amd64</code> each time you need to <code>build</code> or <code>run</code> an amd64 image/container.</p>
<p>The documentation mentions</p>
<blockquote>
<p>When running an image with multi... | Forcing docker to use linux/amd64 platform by default on macOS |
ConfigMaps as described by @paltaa would do the trick for non-sensitive information. For sensitive information I would use asealedSecret.Sealed Secrets is composed of two parts:A cluster-side controller / operatorA client-side utility: kubesealThe kubeseal utility uses asymmetric crypto to encrypt secrets that only the... | How to pass in theapplication.propertiesto the Spring boot application usingconfigmaps. Since theapplication.ymlfile contains sensitive information, this requires to pass insecretsandconfigmaps. In this case what options do we have to pass in both the sensitive and non-sensitive configuration data to the Spring boot po... | passing application configuration using K8s configmaps |
You have to run it with mono.$ sudo apt-get install mono-complete
$ mono AdrenoProfiler.exeWould be cool if they just included a simple run.sh as a lot of people seem to be having this issue. | I downloaded the adreno profiler for Linux from herehttps://developer.qualcomm.com/mobile-development/maximize-hardware/mobile-gaming-graphics-adreno/tools-and-resourcesThe tar file which I downloaded does not have any linux executables.It only has .exe files. I tried to run it using WINE, but was without any luck.Did ... | adreno profiler for Linux/Ubuntu |
Change host port in compose
For example:
ports:
- "4201:4200"
|
I already have a vue application containerized and running, but how do I put it in docker compose?
Dockerfile:
FROM node:14
WORKDIR /app
RUN npm install @babel/core @babel/node @babel/preset-env nodemon express axios cors mongodb
COPY . .
EXPOSE 4200
CMD ["npm", "run", "serve"]
So when I try to put port "4200" ... | How to put an existing container in docker-compose? |
I finally found the solution !
On ECS you have to add a entrypoint and not command.
So if you want to launch your docker container when the EC2 is ready, you can use this sample :
{
"family": "familyName",
"containerDefinitions": [
{
"name": "testSample",
"image": "usernameDocker/containerName",
... |
How can I launch automatically my docker container on ECS (Amazon Web Service) ?
When my EC2 instance is ready, i want to launch this command :
docker run -d -p 80:80 myusername/mydocker /usr/sbin/apache2ctl -D FOREGROUND
on my EC2 to launch automatically (without SSH) my container.
Can you help me ?
| How to launch my docker container automatically on ECS? |
The rewrite rule you are using should work except for the.,%, and!characters that are in your URL. The%characters is not safe to use in URLs because it has a special meaning in the URL syntax. I wouldn't use exclamation points either.If the ID is always going to be numeric, use([0-9]+)instead of([A-Za-z0-9-]+).Try th... | Lets say I want users to be able to type this url in:www.website.com/blog/2453/I-gained-0.1%-more-scripting-knowledge-!I'm trying to include title information in the url for seo benefits.I also want to include an id for my query. Effectively I want to pick up the id andignorethe title stuff that comes after, bearing in... | Rewrite rule for seo - title in url |
RedirectMatchonly matches request URL without scheme, port and domain name.You can use this rule instead:RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www\.)?demostore\.nl$ [NC]
RewriteRule ^persbericht/(.*)$ https://www.demostore.com/press-portal/$1 [L,NC,NE,R=301] | I´ve got a press portal for my second tld and I wnat to redirect that to my .com domain, but this one is not working:RedirectMatch 301 https://www.demostore.nl/persbericht/.* https://www.demostore.com/press-portalWhat am I doing wrong? | How to htaccess redirect with wildcard? |
I faced exactly the same issue using Lambda@Edge. Responses from DynamoDB took 130-140ms on average while the DynamoDB latency graph shown 10-20ms latency.I managed to improve response times to ~30ms on average by disabling ssl, parameter validations, and convertResponseTypes:const docClient = new AWS.DynamoDB.Document... | So my problem is that DynamoDB is taking quite some time to return single object. I'm using node.js and AWS docclient. The weird thing is that it takes from 100ms to 200ms to "select" single item from DB.
Is there anyway to make it faster?Exampel code:var AWS = require("aws-sdk");
var docClient = new AWS.DynamoDB.Docu... | DynamoDB slow response |
The following works for me on Windows and recursively copies all JPEG files:aws s3 cp c:\mydocs\images\ s3://mybucket/images/ --recursive --exclude * --include *.jpegNote that you have to exclude all files and then include the files of interest (*.jpeg). If you don't use--exclude *, you'll get all files, regardless of ... | I'm trying to create a folder in my AWS bucket and to upload all image files from a local storage. Unfortunately I have tried all possible commands given in the documentation such as the ones below, but none of them are working.aws s3 cp C:\mydocs\images s3://bucket.pictures --recursive --include ".jpeg"
aws s3api put-... | AWS CLI create a folder and upload files |
A workaround would be to generate atinyurlfor the magnet link and use that instead | I've this torrent magnet URL.magnet:?xt=urn:btih:6d8ac116eef6829f3e756c4c12a62ebfac2ba4f5&dn=Spenser.Confidential.2020.720p.NF.WEBRip.800MB.x264-GalaxyRG&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppe... | How to make torrent magnet url clickable in Markdown? |
This error related to .app, .dev TLD.Chromium forced all domains with the .app,.dev TLD to only respond to secure connectionsShareFollowansweredJun 10, 2021 at 17:46jobindcruzjobindcruz111 silver badge22 bronze badgesAdd a comment| | I downloaded a project on localhost via bitbucket, I set up a virtual host but I have an error on each browser that the certificate is self-signed. I created the certificate in xampp and added it to trusted certificates in the chrome / windows 10 settings and unfortunately I still have the same error.The project is on ... | MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT HSTS in https site |
Sorry, but you are taking a wrong approach.What you need is to create a passphrase for the key, not encrypt the key with Ansible Vault.openssl rsa -in ssh_key.pem -out encrypted_ssh_key.pemGive it a passphrase and provide that passphrase every time you run it (or use some agent which would cache the password for you):a... | Is there any way to encrypt --private-key with ansible-vault and use it encrypted with Ansible Playbook ansible-playbook command (or inside Playbook)?I tried this but it didn't worked:$ ansible-vault create encrypted_ssh_key.pem --vault-password-file vault_password_file(pasted my SSH private key into it)$ ansible-playb... | Encrypting Ansible Playbook .pem private key with ansible-vault |
Insert this rulebefore your existing rule:RewriteEngine On
# replace - with + in $2 and $2
RewriteRule ^(search/files/[^/]+)/([^-]*)-+(.+?\.html?)$ /$1/$2+$3 [NC,L,R]
# your present rule
RewriteRule ^search/files/([^/]+)/([^.]+).html?$ http://www.domain.com/search.html?q=$2 [R=301,L,QSA,NC]ShareFollowansweredSep 29, ... | I'm doing a rewrite rewriting my old url structure to my new one, the thing is my old one uses dashes to separate words and my new one uses +'s.This is my rewrite ruleRewriteRule ^search/files/(.*)/(.*).html?$ http://www.domain.com/search.html?q=$2 [R=301,L]how could i do a string replace on $2 to replace -'s with +'s?... | String replace dash to plus sign htaccess |
You could use find:
find . -type f ! -iname '*.java' -exec git add {} +
You can also skip paths matching a pattern by using ! -ipath <pattern>, e.g:
find . -type f ! -iname '*.java' ! -ipath './a/b/*c*' -exec git add {} +
|
I am trying to stage some new created files and some others edited files to my staging area in git using git add command. What I exactly want is to stage everything except *.java files (in my current directory and in every sub directory in my project). I tried to get that work with NO success.
pwd: /d/myProject
Nothin... | staging all files except specific files using glob patterns in git |
Suddenly I have found that my original base assumption that weak reference in Swift can be slow is wrong. As we can see from sources, Swift is actually using almost same implementation for weak and unowned references. So weak reference is almost as fast as unowned reference.
(But Objective-C is completely different st... |
Is there any way to check an unowned(safe) Swift reference for "availability"? So, I am looking for a hypothetical function like isReferenceAccessible in this example:
func someMethod() {
someAsyncOperation(parameters) { [unowned(safe) self] in
guard isReferenceAccessible(self) else {
return
}
se... | Is there way to check a `unowned` (actually `unowned(safe)`) reference has been deinited? |
Possible Solution but I can't test it right now. Please let me know if this is incorrect.Make virtual network interface with macvlan:Seehttps://superuser.com/questions/175475/ip-address-alias-assigned-by-dhcpcommands:ip link add dev macvlan0 link eth0 type macvlan #macvlan0 being the name of the v-card (lol)Connect con... | I have been trying to assign one of my five public ip's to my docker container. It seems like this should be possible because of the nature of docker and its uses. I found this website that I think explains what I want to do but it no longer works since Docker went away from LXC:http://programster.blogspot.com/2014/06/... | Is it possible to assign a static public ip to a Docker Container? |
You're approaching this from the wrong direction. Perthe Java8 docs:The amount of native memory that can be used for class metadata is by default unlimited. Use the option MaxMetaspaceSize to put an upper limit on the amount of native memory used for class metadataSo, the only thing that explicitly configuring metaspac... | We are gettingjava.lang.OutOfMemoryError: MetaspaceSince we are not using our full memory space, we figure it is the metaspace size. I have seen a few posts that say we can set "some" jvm settings but I want to set some of these:java -XX:MaxMetaspaceSize=192mb (just example sizes)Is it possible to set these settings?W... | Can JVM memory settings be set on an AWS Lambda? |
Only a very naive implementation would have a problem with circular references. Wikipedia has a goodarticleon the different GC algorithms. If you really want to learn more, try (Amazon)Garbage Collection: Algorithms for Automatic Dynamic Memory Management. Java has had a good garbage collector since 1.2 and an exceptio... | Given an aggregation of class instances which refer to each other in a complex, circular, fashion: is it possible that the garbage collector may not be able to free these objects?I vaguely recall this being an issue in the JVM in the past, but Ithoughtthis was resolved years ago. yet, some investigation in jhat has re... | Circular References in Java |
You can usecontainer transformwith boto3, that will convert docker-compose to equivalent ECS task definition. this is also base on python.container-transform is a small utility to transform various docker container formats to one another.Currently, container-transform can parse and convert:Kubernetes Pod specsECS task ... | I have an application running using docker-compose.Now I'm migrating the application to be hosted on ECS.I'm translating the docker-compose settings to the boto3 ECS equivalents.Unfortunately I don't find an equivalent of docker-compose'scommandin theAWS CLI. | ECS equivalent of docker-compose's command |
On my WinXP machine, AIR apps cache such data intoC:\Documents and Settings\username\Local Settings\Temporary Internet Files. So while I don't have any other systems to hand, it would appear AIR uses what it considers to be the platform-specific system temp folder. (As for how you clear it, in my case you can do so thr... | When you create a AIR app with an embedded web browser, where does it store it's cache? How can I clear this cache? | Where does the Adobe AIR Browser store it's cache? |
4
re-Install python-gevent
apt-get install python-gevent
pip install --upgrade gevent
Share
Improve this answer
Follow
answered Apr 4, 2016 at 12:01
Ravi BhureRavi Bhure
12911 silver badge... |
I am attempting to run a Docker registry on Ubuntu 14 using the following command:
sudo gunicorn --access-logfile - --debug -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wsgi:application
Unfortunately, when I attempt this I get the following failure message:
Error: class uri 'gevent' invalid or not found:
[Traceb... | gevent not valid running Docker Registry |
You can use WMI to access the virtualization services.
Documentation and samples related to the WMI virtualization classes are available here.
|
Where one would start to learn how to interact with Hyper-V thru C# to able to backup and restore virtual machines (preferably with snapshots and everything else related to backup)? I tried finding some examples / information on how to start but couldn't find anything. Maybe I was just asking wrong questions.
| Where to start with backup/restore of Hyper-V in C#? |
This question has also been asked on serverfault and has garnered a couple additional answers
The following is a paraphrased version of Marco's solution:
(Not sure if best etiquette is not providing a link only answer or not copying someone else's solution)
Create a environment file with a temporary cron entry
* * * *... |
I added a cron job recently, but made a mistake in the path while giving the command and hence, the job never succeeded. Is there some way to test the cron changes we have done?
Please note that I had indeed copied and pasted the command from my command line and it was just an stray keypress that caused this.
| Test run cron entry |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.