Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
There is an option called add collaborator in settings
add your friend name in that field so that he will be added to the project-> Go to your project
-> Click on admin
-> Add Collaborator
-> Add your friendShareFolloweditedJun 17, 2019 at 10:16answeredNov 19, 2012 at 10:29Akhilraj N SAkhilraj N S9,24955 gold badge... | I have a git hub account i created one project and push it to my online git hub repository
after than one of my friend login with his git hub account and fork my repository.After he modified that project he want to push that project. For that what i did is i added his SSH key to my git hub account but when he push the ... | How two person can work on same project using GitHub |
I switched from unbounded version constraint>=2.16.0to range^2.16onpiwik/piwik- this will installpiwik/piwik (2.16.1-b1)atm.I've also addedminimum-stabilitybetabecausepiwik 2.16.0has a dependency onphp-di 5.0.0-beta, which could not be resolved at the given level of stability. We need to go lower to get beta stuff. And... | When I runcomposer updatewith lot of packages i get this error:Problem 1
- Installation request for piwik/piwik dev-2491e6bfcf61984b0f0f3387e1496815e809c6cc -> satisfiable by piwik/piwik[dev-2491e6bfcf61984b0f0f3387e1496815e809c6cc].
- myspace/MyPlugin 2.13.0 requires piwik/piwik >=2.16.0 -> satisfiable by piwi... | Composer conflicts GitHub tag with its commit hash |
It turned out that the following directive (which was defined globally) prevented caching from working:proxy_buffering off;When I override it underlocationconfig withproxy_buffering on;, caching starts working.So, to make caching work with POST requests, we have to do the following:OutputCache-Control: public, max-age=... | My task is to implement microcaching strategy using nginx, that is, cache responses of some POST endpoints for a few seconds.Inhttpsection of thenginx.confI have the following:proxy_cache_path /tmp/cache keys_zone=cache:10m levels=1:2 inactive=600s max_size=100m;Then I havelocationinserver:location /my-url/ {
roo... | POST response caching does not work in nginx |
No, you'll not see an empty address list: even if you query a DNS label that does exist, but has no A or AAAA (IPv6) records, a SocketException ("No Such Host is Known") will be thrown.You can verify this by looking at the functionInternalGetHostByName(string hostName, bool includeIPv6)in DNS.cs from the .NET Reference... | I'm just wondering if there can be a case where the hostname can be successfully resolved but the returned hostEntry.AddressList is empty.Currently I'm doing something like this:IPHostEntry hostEntry = Dns.GetHostEntry("some.hostname.tld");
if (hostEntry.AddressList.Count() < 1)
{
// can that ever happen?
throw new... | Can Dns.GetHostEntry ever return an IPHostEntry with an empty AddressList? |
Yesterday, I had the same error. Well, the error comes from serverless's version I was using. In my local environment, I had the version 2.3 and it works fine with the flag~trueafter mysecret_nameID, but in my CD I had version 3.*, and that was generating the error. After reading the docs, I searched:Note: The method d... | I am trying to access secret managers using Serverless secrets framework this way:Approach1 (Old)supersecret: ${ssm(us-east-1, raw):/aws/reference/secretsmanager/secret-name~true}Approach2 (New)variablesResolutionMode: 20210326 in serverless.yamlsupersecret: ${ssm(us-east-1, raw):/aws/reference/secretsmanager/secret-na... | Serverless Framework Secrets Error - An error occurred while calling one AWS dependency service |
It turns out that the AWS commands call exit which exits the .bat script prematurely.Prepending each AWS command with "call" did the trick.I found suggestions in this question:Why does only the first line of this Windows batch file execute but all three lines execute in a command shell? | I am fairly new to Amazon Cloud Auto Scaling (and AWS all together).I am currently trying to write a .bat script that will automatically create a launch configuration and then an auto scaler. The aim is for an image that was previously set up about a week ago by a coworker.The problem I encounter is that when I run the... | .bat Script Terminating Before AWS Auto Scaling Commands Executed |
Below command is working fine for Rolling update.First time it will be installnext time it will be upgradehelm upgrade --install tom-release --set appName=mytomcatcon
hello-worldtom-release is my release name and passing runtime values to helm chart using --set option | I am new to Helm. I have installed Minikube & Helm on my windows system. I am able create pods using Helm and see deployment,pods & replicaset in dashboard.I want to do rolling update using Helm. Guide me how to do rolling update in K8s using Helm.Creating Tomcat pod using Helmhelm create hello-worldChanged image name... | kubernetes rolling update using helm |
I merge master to bring in other changes from master into f1.Ideally, you avoid merging master to anything: the best practice is to merge or rebase other branches tomaster.In your case:m--m--m--m--m--m---M
\ / (PR1)
f1--f1--F1
\
f1--f1--f1 (f1: want to do PR2... | I am working on a feature branch say f1. After working on same changes, creating a PR, I push those changes to master.Instead of deleting the branch, I continue working on f1. I merge master to bring in other changes from master into f1. When I create another PR from f1, the commit section under PR has commits from oth... | Git rebase gets other commits from different branch in my PR |
It works if you run echo in a shell:
$ sudo docker run --rm -e FOO=bar ubuntu bash -c 'echo $FOO'
bar
This is because echo is a command (/bin/echo), but it's the shell that does the variable substitution.
|
If I pass an environment variable which is set inside of the container as an argument to docker run, my shell evaluates it. For example:
I want my container to print the value of $FOO which is bar. None of these will work:
# Prints blank line
$ docker run -e FOO=bar ubuntu echo $FOO
# Prints '$FOO'
$ docker run -r FO... | How can I use environment variables in a docker run command? |
If you know, that "pip" works, why don't you just use "pip"? "pip" can not only install from a package index, but also from a local source directory. Just usepip install .instead ofpython setup.py install.Concerning your impression, it is indeed wrong. "pip" and "distribute" are altogether different projects with di... | I built a small micro framework for our web service / web app and have it hosted it in a private repository on github.I've added the private github repo in thedependency_linksand have verified that it exists independency_links.txtWhen I execute python setup.py install, I getunknown url type: git+ssh, so I looked deeper... | Has anyone gotten distribute to work correctly with github, specifically private repositories? |
1
For general guidance with memory management in MATLAB, see this MathWorks article. Some specific suggestions follow.
Set the /3GB switch in the boot.ini to increase the memory available to MATLAB. Or set it with a properties dialog if you are averse to text editors. This ... |
I am using Matlab r2012b on win7 32-bit with 4GB RAM.
However, the memory limit on Matlab process is pretty low. On memory command, I am getting the following output:
Maximum possible array: 385 MB (4.038e+08 bytes) *
Memory available for all arrays: 1281 MB (1.343e+09 bytes) **
Memory used by MATLAB: 421 MB (... | How do I increase memory limit (contiguous as well as overall) in Matlab r2012b? |
It's all kept in memory, protected by a mutex. For a multi-threaded application it'll all Just Work. | Just a quick question here as I am quiet lazy to go through the code.. :) Where does pythonprometheus_clientstores all the data it captures? Is it stored in memory of current thread? If not then where?I would like to use it with my django project in production, but my django app is seriously multi-threaded... How it wi... | Where python prometheus_client stores the data? |
It turns out β.εηοιτ.βε answer was fine, but I didnt really have all the information I needed to solve my problem after all..I had to use a openssl call to track the ca certificates chain, with this command:openssl s_client -connect google.com:443which returned me this:CONNECTED(00000003)
depth=2 C = US, ST = Californi... | I am running Docker through Docker Desktop on a MacOS, and I am having a lot of trouble installing packages in my container because it is being unable to verify any ssl certificates.When I runapk updatefor example, I get this error:fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
1397973082... | Why I get SSL errors while installing packages on Docker(on mac)? |
Not exactly "Dockerfile", but you can do this with an entrypoint script provided you always run the container with --privileged
That being said, I would warn against this if at all possible as part of the beauty of docker is that you aren't running things as root.
A more better alternative, IMHO, is instead to change... |
I need to bee --privileged to run a specific command in the Dockerfile but I can't find a way to tell docker to do so.
The command is RUN echo core > /proc/sys/kernel/core_pattern
If I put that in the Dockerfile the build process fails.
If I run the Dockerfile with that line commented but with the flag --privileged t... | Run command as --privileged in Dockerfile |
Both Kibana and Grafana require some kind of database to connect to. AFAIK, so does Apache Superset.If you don't want to provision and manage a database, you could just write something to read the files directly and render charts. | I have a .net web api application where I have used Serilog and was able to generate both structured logs with custom fields. All log files are stored in a folder in the server. Can I install Kibana/Grafana in the same server to create dashboards using info in the structured log files. Their(Kibana/Grafana) website ref... | How to Create dashboard for structured log files in disk in any tool like Kibana, Grafana |
Theoretically, another thread might change the result ofexception.getResponseHeaders()after you checked it's non null but before you call it a second time. This kind of check-then-act is not always safe.The safer way to handle this is to assign to a localvar headers = exception.getResponseHeaders();
if (headers != null... | Sonarqube says there are 2 major bugs in this code, on the 2nd statement in if condition.first:A "NullPointerException" could be thrown; "getResponseHeaders()" can
return null.Second:Result of "getResponseHeaders()" is dereferencedprivate ResponseEntity<ErrorResponse> handleHttpStatusCodeException(HttpStatusCodeExcepti... | Sonarqube shows NullPointerException bug even after null check is present in Java |
The naming can get confusing, I'll try to clarify.
There are typically two pools under the umbrella of Amazon Cognito:
User Pool
Identity Pool (Federated Identities)
The "sub" that you are referring to is typically expressed in IAM Policies as
${cognito-identity.amazonaws.com:sub}
and will resolve to the value fo... |
Im building a serverless backend using AWS Cognito for user administration.
Cognito uses both cognitoId and sub to identify a user.
This project from the official awslabs uses the cognitoId as primary key in the database tables to link data to a user object, but the documentation about sub clearly states:
sub: the... | AWS Cognito: Difference between Cognito ID and sub, what should I use as primary key? |
You can link to a commit’s tree instead of its diff, and the easiest way to get this link is GitHub’s permalink keyboard shortcut: pressYafter clicking the line on a branch’s tree.If you’d like to get there from a commit instead of a branch, use the “Browse files” button in the header.To construct it manually, the path... | Linking to a line number in GitHub is easy: clicking on the line edits the URL to point to that line so we can share it.However,if the file changes with a new commit, the line numbers may offset and this renders the existing links as inaccurate and confusing.How to permanently link to a line of code in GitHub? Too ofte... | How to PERMANENTLY link to a line number in GitHub? |
Change your line which reads:
using (FileStream fs = File.Create(path, 64 * 1024))
to
using (FileStream fs = File.Create(path, 64 * 1024, FileOptions.WriteThrough))
and see how that does for you.
|
I've written the following program which purpose is to create a file of a give size with some random data in it. The program works fine and does what it's suppose to do. However, I don't understand why it consumes 5GB of RAM (see screenshot of my Task Manager). While I am writing the file with random data, I am not cr... | FileStream and memory usage |
It is not a defensive secuirty practice to move core parts of your application to 3rd parties. You might not get hacked, but there is a good chance something could go wrong. Unfortunately with windows hosting you don't have many alternatives.Google AppEnigne is free and it has a cron:http://code.google.com/appengi... | I have a mailing list page in one of my asp.net web application... I found an online web based cron to execute the url of MailingList.aspx once a day in my application...Is it secure to use an online free web based cron?What should i watch out for when using them?EDIT:Anyone who uses web based crons for scheduling thei... | Is it secure to use an online free web based cron? |
You have two options to validate an ACM certificate.CDN validationRoute53 validation (easier and faster, also recommended by aws).So, after applying for a certificate it will redirect you to the ACM dashboard. Reload the page and you'll see your certificate listed aspending validation.
Click on your desired pending cer... | I want to use this newly requested certificate further in the process with Load Balancer etc. But my certificate is still not issued. I have done the following steps:I bought & registered a new domain name inAWS Route 53.I created a new Hosted zone with thesample.comas domain name (same as the domain name in step 1).I ... | Why is my ACM Certificate still not issued / validated? |
Format is trying to substitute for {print $1} and of course there is no such key.
You can escape the {} by surrounding them with {} so:
run('docker ps -a | grep {} | awk "{{print $1}}"'.format(container_name))
Should work - as a test:
iPython 3.0:
In [1]: container_name = 'fred'
In [2]: 'docker ps -a | grep {} | awk... |
I am using python fabric run command, it doesn't work and give me a KeyError:
run('docker ps -a | grep {} | awk "{print $1}"'.format(container_name))
KeyError: 'print $1'
But if I replace .format with %s, it works, how could that be possible:
run("docker ps -a | grep %s | awk '{print $1}'" % container_name)
My pytho... | python fabric run awk command return a KeyError: 'print $1' |
The Istio CNI plugin actually runs as a chained CNI plugin, which means it is added to the configuration of the existing CNI plugin configured for your cluster. It should work fine with most CNI plugins. | managed k8s services like EKS and GKE provide cloud native CNIS.https://docs.aws.amazon.com/eks/latest/userguide/pod-networking.htmlhttps://cloud.google.com/kubernetes-engine/docs/concepts/alias-ipswe can install also deploy service mesh like istio provided CNI in the clusterhttps://istio.io/latest/docs/setup/addition... | Deploying Istio CNI along with VPC Native CNIS in kubernetes cluster |
Performance tuning through cachine could be categorized into multi-layers:
Client-side (JS and CSS): Add an Expires or a Cache-Control Header will get it done for you. But note that there are more to do than only caching to enhance client-side performance. For detailes check Best Practices for Speeding Up Your Web Si... |
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be imp... | Different file caching methods, pros & cons [closed] |
In Charles, go to Proxy>>Proxy Settings and select the SSL tab. Add your host to the list of Locations.For example, if your secure call is going tohttps://secure.example.com, you can enter secure.example.com, or *.example.com.Once the above is in place, you may need to right-click on the call in the main Charles windo... | I would like to use Charles web proxy to work with the Android emulator in Windows. I've successfully set up charles and have started the emulator with the command line:emulator -http-proxy 127.0.0.1:8888 @NexusOneI can see traffic coming from the android emulator in Charles, but the problem is that I'm developing aga... | How to configure SSL certificates with Charles Web Proxy and the latest Android Emulator on Windows? |
By default, git uses the branch called "master". So when you clone a repository, you will be in master branch. After doing changes, you can push your commits without declaring the branch name. Git pushes to the master branch of remote repository. | I have a bash script that does the following:Clones a repo;Modifies some files;Commits the changes;Pushes the commits to repo's default branch.Now, if I clone a repo withgit clone <repo>I assume the default branch of the repo is cloned locally. If I push the commits withgit push, is it 100% sure that the commits will b... | Git push to repo's default branch |
+100Using the latest FSeventer program I traced the cache file to:/private/var/folders/Sl/rand chars+++TM/-Caches-/com.apple.mail/Cache.dbI tried turning of internet connection, deleting the file, and then viewing the HTML newsletters. No images loaded. After re-connecting and viewing the HTML mail the Cache.db file gr... | I'm developing an HTML newsletter system using PHP & PEAR. It sends out the emails fine.However I cannot force Apple Mail to reload images from the server. I have tried:Restarting MailClear ~/Library/MailDownloadsClear ~/Library/Cache/MailEmpty Safari cacheDoes any one know where Apple Mail caches the images ? | Developing HTML email newsletter, refreshing Apple Mail |
If it is just previous one you can try--previousflag with your logs command. More detailshere | I recently had an event that resulted in my pod being evicted and in order to quickly reestablish service I proceeded to delete the pod which resulted in a new one being spun up.Is there any way to describe or retrieve logs from a deleted pod so that I can perform RCA on why the pod was evicted in the first place? | Deleted Pod Logs |
At the writing of this answer, the repo of Docker did not contain a stable version for Fedora 28
The work around is to call:sudo dnf install https://download.docker.com/linux/fedora/27/x86_64/stable/Packages/docker-ce-18.03.1.ce-1.fc27.x86_64.rpmThis will download the latest stable version at the writing of these lines... | According to docker website, installation for Fedora should be as follow:https://docs.docker.com/install/linux/docker-ce/fedora/#set-up-the-repositoryHowever these instruction does not work for Fedora, and you get a frustrating message "Nothing to be done"So how can I install Docker-ce on Fedora 28 | Installing docker-ce on Fedora 28 |
You can remove passphrase from the private key runningssh-keygen -p(enter old passphrase and press [Enter] two times to enter an empty new passphrase). But you have to understand the passphrase protects the private key, so by removing it you make your key more vulnerable to stealing. | My development environment is configured in aVirtual Machine on my Mac(Vagrant box using Debian 8).I've installed Git on the VM withSSH remote access.
Everything works perfectly fine except that I always have to enter my passphrase for the firstgit push origin masterafter having booted my VM.Here's my list of remotes ... | Store SSH key passphrase persistently |
Have your rule as this:RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://xyz.com%{REQUEST_URI} [R=301,L]Also make sure in your WP permalink settings you havehomeandsiteURL reflectinghttps://xyz.com/ | I'm trying to redirect xyz.com tohttps://xyz.comMy code# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^xyz.com$
RewriteRule ^(.*)$ https://xyz.com/$1 [R=301]
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST... | Redirect .htaccess to ssl is not working |
Just to add - you can do it in two waysVirtual-hosted–style URL (Bucket name is part of the domain name in the URL)http://bucket-name.s3.amazonaws.com/<file-name>http://bucket-name.s3-aws-region.amazonaws.com/<file-name>Path-style URL (Bucket name is not part of the domain and endpoint you use must match the region in ... | I am using Amazon S3 to store images for my web app and iOS app.I wonder if I can safely hardcode my bucket URL when fetching the images? So that I don't have to make one more API call just to fetch my URL.For example, hardcoding this in my apps code:https://s3.eu-central-1.amazonaws.com/mybucket/images/{some_var} | Amazon S3 hardcode my bucket URL |
Try this ==>For Weekday*/30 08-17 * * 1-5 /path_of_fileFor Weekend// Saturday, sunday*/30 08-17 * * 0,6 /path_of_file*/30 for every half hour08-17 for 8 AM to 5 PM1-5 for Monday to friday0,6 For Sunday and Saturday | How can I set a cron to run every 30 mins between 8 am and 5 pm during the weekedays , here is my code but seems it not working*/30 8-16 * * 1,2,3,4,5 cd /root/Desktop; ./script.shplease help me to solve this | How to set a cron job to run at a exact date and time frame? |
Simple answer below, but you need some shenanigans to avoid sending an empty Vary: header (try to avoid it out of paranoia)Header edit Vary (.*)User-Agent(.*) $1$2
# Remove leading or trailing ',' without making things complex above
Header edit Vary ^,?(.*),?$ $1
# 2.4-only: remove empty Vary header
Header unset Vary "... | I know that I can add theUser-Agentto theVaryhttp header with this line in my .htacess:Header append Vary User-AgentBut how can I remove theUser-Agentfrom theVaryheader if it is already set?According to themod_headers docthere is anappendoption, but no equivalent "remove" option. | What's the opposite of "Header append Vary User-Agent", how to remove the "User-Agent" string from "Vary"? |
The PKCS#12 or PFX format is a binary format for storing the server certificate, any intermediate certificates, and the private key in one encryptable file. PFX files usually have extensions such as .pfx and .p12. PFX files are typically used on Windows machines to import and export certificates and private keys. | I'm implementing a SOAP service with SoapUI that needs authentication.For authentication, I received 5 files:XXX.cerXXX.csrXXX.jksXXX.p12XXX.pemI used the "XXX.p12" file with SoapUI to authenticate.What is the purpose of each file and why do I need the ".p12" to gain access to the WSDL? | What is a .p12, .cer, .csr, .jks, .pem file? |
PIL closes the handle and releases associated resources when the object is garbage collected, just as you would expect it to. There's no danger of a memory leak.
Also, the Image.open() does not actually read anything into memory - image data is lazy-loaded as needed - in this case under the PhotoImage() call. Image... |
saving data from PIL.Image.open("image.png") into a variable doesnt update the variable data but instead creates a new instance of the image data and just reassigns where the variable is pointing to in memory, this can cause memory problems by creating hundreds of image files that cant be closed as the variable is no ... | is this a possible memory leak issue for updating python PIL image data to a variable? |
Not the most beautiful solution but this should work (or give you an idea if you want to further improve the command)kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}} {{.metadata.creationTimestamp}}{{"\n"}}{{end}}' | awk '$2 > "'$(date -d 'yesterday' -Ins --utc | sed 's/+0000/Z/')'" { print... | I would like to list pods created within 24 hours. I didn't find any kubectl commands or anything to get those. Could anyone please help me with the kubectl command to get only the pods created in last 24 hours. | List newly created kubernetes pods in last 24 hours |
That's expected since the Certificate Authority (who emitted your certificate) is not trusted by the browsers. You'd need to install your CA certificate in your clients in order to make them trust the certificates emitted by that CA.If you own avalid domain, you may buy a certificate for it from a trusted CA, or even e... | I have a web page with apache, and it is hosted only in localhost, but all devices that are connected to my network can be entered using my ipv4 (192.168.1.x), I have installed a certificate using openssl, but the certificate is only valid For my pc where I am hosting the site, if I try to enter with another device it ... | Valid SSL Certificate , Local Host |
The Nginx sources show that the file cache manager is a small function that is called by the cache manager process. It checks if the current cache size is larger than the max_size, and if it is, tries to delete the last cache node from both the internal queue and the disk. And unless you redefine it in the configurati... |
We're planning on updating our Nginx cache duration and I'm just going through the documentation to make sure nothing catches us out when I came across the following:
max_size sets the upper limit of the size of the cache (to 10 gigabytes in this example). It is optional; not specifying a value allows the cache to gr... | Will the Nginx cache manager clean out files when approaching the limit of the disk? |
Turns out the issue is because I used the~in myPATH. I foundthis issue and commentthat pointed me in the correct direction. Updating myPATHto below solved my issue:echo $PATH
/usr/local/sbin:/$HOME/work/helpers/bin:/$HOME/.rbenv/shims:...:/usr/bin:/bin:/usr/sbin:/sbin
# Where $HOME is expanded properlyI think it may be... | I'm getting the following warning when trying to run theawsclient with theaws-iam-authenticatorfor kubernetes:Warning: aws-iam-authenticator is not installed properly or is not in your path.However, theaws-iam-authenticatoris clearly in my path, since I can callaws-iam-authenticator helpand it returns results:$ aws-iam... | Improper installation warning when trying to run aws-iam-authenticator with aws client |
Yes, it was an upstream port of OpenShift's access control, with minor differences. Over the 3.6 and 3.7 releases, OpenShift is migrating to back its authorization objects with Kubernetes objects:In OpenShift 3.6, OpenShift authorization objects migrate to corresponding Kubernetes RBAC objects, overwriting any existing... | Since Kubernetes release 1.6 until RBAC's GA in 1.8 there has been a lot of background noise about how RBAC is now the default in Kubernetes and is a complete rehaul of the permissions framework. As an OpenShift Origin user/administrator, I haven't been following the Kubernetes side of the discussion, reasoning that I'... | Is Kubernernetes' RBAC the same as OpenShift's access control? |
so I think it might be better for each namespace running its own
'janitor' Cronjob. Now, I could create Cronjob manually with existing
namespaces, but I can't stop my colleagues to create other namespaces
for their tenants. So I start to think of if I could do similar thing
just like Istio auto sidecar injection.You ca... | This mainly for GKE cluster with preemptible nodes. Google Cloud would shutdown any node without warning, which leaves lots of pods with Terminated and / or NodeShutdown state. My current UAT environment is a GKE cluster with hundreds of tenants, where each tenant occupies one namespace. Delete all pods with Terminated... | Inject cronjob once namespace created |
He needs the Heroku gem ($ sudo gem install heroku). He needs a SSH key, and a Heroku account that takes the key ($ heroku keys:add (pathToKey)). He needs to have his account added to the Heroku project as a collaborator. And then it’s all fine, he could say $ heroku restart --app (appName).
|
I have a rails app up on heroku. Sometimes the server bombs out and I have to go to the console and execute heroku restart so that servers get restarted. This seems to fix the problem.
However, I am not on my machine all the time. I would like to have a team member have this capability as well.
For this to happen.... | how can I have a teammate restart heroku server from his machine |
1
(Optional) If you've some modifications locally, stash them first:
$ git stash
Because you've made some modifications at remote repo, you need to pull them down before pushing new commits (fix conflicts one by one if you got in this step):
$ git pull origin your_bra... |
I made modifications to my github repo on the actual website rather than the terminal. Now, I can't commit anything locally from my computer to my terminal because it says the files stored locally are not in sync with the github repo. How can I fix this so I can push my changes in terminal? Can I undo my previous comm... | Github Simple Commit Issue |
Use git clone [email protected]:myusername/mynewrepository.git to clone via ssh
|
I followed the official explanation on Github on how to register my SSH key, and according to their documentation, everything should work:
$ ssh -T [email protected]
Hi username! You've successfully authenticated, but GitHub does not
provide shell access.
Unfortunately, this does not tell how to clone / push / pull r... | I successfully authenticated on Github via my SSH key, but how do I clone / push / pull (private) repos? |
This usually happens when you are starting with a single project, and your .sln-file ends up inside a project folder. Easiest way out of this, is to move .sln-file one folder level up.
Additional resource for moving the .sln-file (credit to @Charles):
https://stackoverflow.com/a/626646/14072498
Just click on the solu... |
I add github action to my repo to test my branch and then merge it to the master but it gives me this error :
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
there are 4 projects in solution
so how can I solve this problem ?
na... | github action error Specify which project or solution file to use because this folder contains more than one project or solution file |
You can create a mapping between letter, orientation and number and then fetch number from there:values = {
("ABC", "south"): "1",
("ABC", "east"): "2",
("EDF", "south"): "3",
("EDF", "east"): "4",
("GHI", "south"): "5",
("GHI", "north"): "6",
("GHI", "east"): "7",
}
letter = "GHI"
orientat... | I try to increase the quality of this code, because Sonarqube doesn't like when there is too much if/elif.I tried to use "swich case"; but this function is too young for my production environment.
Can i use dictionnary method with 2 conditions ?This is my code :if letter == "ABC" and orientation == "south" :
numero... | Python - Reduce multiple elif who contains 2 conditions |
0
First go to localhost/phpmyadmin and create a database as before you have. Then import your database file through browse.
If your database name exmaple.sql then create database name will be example and import example.sql
Share
Improve this answer
... |
I would like to ask, if it is possible to get my database from an offline (not functioning) xampp ?
You see, I have backed up my database earlier but I am not sure whether there are all the data I need now and the DB is pretty big (like 50 tables). I wanted to go for a local implementation of apache, mysql and PHP for... | get database from xampp (not via phpmyadmin) |
Garbage collection is typically used periodically or on demand, like if the heap is close to full or above some threshold. It then looks for unused variables and frees their memory, depending on thealgorithm.Rust would know when the variable gets out of scope or its lifetime ends at compile time and thus insert the cor... | I understand Rust doesn't have a garbage collector and am wondering how memory is freed up when a binding goes out of scope.So in this example, I understand that Rust reclaims the memory allocated toawhen it goes out of scope.{
let a = 4
}The problem I am having with this, is firstly how this happens, and secondly ... | What does Rust have instead of a garbage collector? |
0
There is no straight-forward one-liner easy way to check for memory consumption.
Solutions:
You can use psutil (pip install psutil), for example:
def get_process_memory():
process = psutil.Process(os.getpid())
return process.memory_info().rss
def track(func):
... |
I am developing online judge using Django on Debian. All user scripts I call with subprocess.Popen. To check script time usage I use time module and to limit timeout I'm giving parameter timeout to communicate on process object and handling subprocess.TimeoutExpired exception. Is it possible to do something similar to... | Set limit and check memory usage of subprocess.Popen in Python |
hat error means you are using wrong credential or wrong repo:Username needs to be the user, not the email
Ensure you provide the proper password. If you have 2FA enabled on GitHub, you need to make sure you create an Access Token with proper access permissions and use the token as password instead.
Repo format is: http... | This question already has answers here:Pushing to Git returning Error Code 403 fatal: HTTP request failed(75 answers)Closed4 years ago.On MacBook Pro. Trying to push out recent changes to repo.$ git push origin master
remote: Permission to customer548repo/dbserver.git denied to krazyigor.
fatal: unable to access 'https... | On Mac : git push results in "requested URL returned error: 403" [duplicate] |
You can't, you should at least create a branch on the remote first.
After the mandatory introduction on what is a Pull Request in Git vs GitHub, I'll quote the following:
Pull requests let you tell others about changes you've pushed to a
branch in a repository on GitHub. Once a pull request is opened, you
can discuss... |
I am trying to figure out how to make a PR to my remote repository from a local branch (or even from local master/main branch). However, no matter what I do I get the following error:
Attempt from local main:
(master)$ gh pr create --title "Adding readme" --body "Testing pr from cli" --head armsp:feature
Creating pul... | How to make a Pull Request using the new github cli, to a remote repo without pushing a remote branch too? |
The code generation of GWT requires that the@UiFieldsare not private. The UIBinder code generator, that is run during compilation, will create a lot of Java code for you that is added dynamically to your project.This code will directly access the fields and bind the widgets to your variables. This generated code is not... | Sonar complains about the following line:@UiField
Button saveBtn;Variable 'saveBtn' must be private and have accessor methods.Howerver when I set the visibility modifier toprivate, IntelliJ IDEA complains:@UiField 'saveBtn' should not be' private'What is the best solution about this conflict (besides disabling this son... | How to make @UiField fields private |
It sounds like you're looking for https://github.com/issues/assigned.
The easiest way to get there is to click on the Issues link at the top right of the GitHub UI, and then the Assigned tab at the left side of the screen:
You can also use the assignee key in the search bar manually, e.g. assignee:panthro.
|
I've checked the GitHub docs but can't find this. I've also googled this but can't find an answer.
How can I see all issues for all my repositories that have been assigned to me on the GitHub website?
| View issues that are assigned to me? |
It is possible that the installation was not done successfully, could you show the result of nvidia-smi? , you should try to install cuda and nvidia-driver in a separate mode, like this:cuda 9.2 and nvidia-driver 396CUDAwgethttps://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda_9.2.148_396.37_linuxsu... | I am using nvidia/cuda:8.0-devel image and tried to run it. But I get the following error.sudaraka@RnDCompute:~$ docker run -it --runtime=nvidia nvidia/cuda:8.0-devel docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init ca... | nvidia-container-cli: initialization error: cuda error: no cuda-capable device is detected |
4
Can you can test your connection to a DB instance using common Linux or Windows tools first?
From a Linux or Unix terminal, you can test the connection by typing the following (replace with the endpoint and with the port of your DB instance):
$nc -zv DB-instance-endp... |
I am trying to connect AWS RDS PostgreSql from PgAdmin 3. I followed the below link
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html
In Security Group, I also added PostgreSQL and All traffic as below
The "publicly accessible" flag was enabled (updated after Mark B's comment... | PGAdmin III cannot connect AWS RDS |
You could create synthetic ^/http_auth location and rewrite the requests with http authorization to that location.
For example:...
if ($http_authorization) {
rewrite ^/(.*)$ /http_auth/$1 last;
}
location ~ ^/http_auth/(.*)$ {
proxy_pass http://backend;
}
location / {
mirro... | Here is my Nginx configuration:upstream backend {
server backend.local:10000;
}
upstream test_backend {
server test.local:20000;
}
server {
server_name proxy.local;
listen 8000;
location / {
if ($http_authorization != "") {
mirror /mirror;
}
proxy_pass http://b... | Use conditional mirror in Nginx |
Helm does not support setting non-existent array elements, you can assign values by passing the entire array or set the corresponding number of elements first, and then modify it by --set cmd[i]=xxx.First of all, in the deployment.yaml file, theValues.command.cmdfield should not be quoted directly, as an array needs to... | In deployment.yaml in:containers:
- name: {{ .Values.stand }}-container
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- if $.Values.command }}
c... | Helm chart. I cannot send a command to the container via --set |
Here is what I could do using the StaticPublishQueue module. In your NewsDataObject.php:
function onAfterWrite() {
parent::onAfterWrite();
$url = array();
$pages = $this->Pages(); //has_many link to pages that include this DataObject
foreach($pages as $page) {
$pagesAffected = $page->pagesAffe... |
is there a possibility to trigger an update of the cache if a DataObject is edited?
for example updating a News DataObject should update the cache of pages, that are displaying these NewsObjects.
many thanx,
Florian
| silverstripe static publisher - pages affected by DataObject Changes |
will this stay in the cache forever?This will depend on the particular cache provider you are using. For example if you are using the default in-memory cache it might expire if the server starts running low on memory or if the application pool is recycled. But if you are using some other cache provider, like for exampl... | i have the following code to cache some expensive code.private MyViewModel GetVM(Params myParams)
{
string cacheKey = myParams.runDate.ToString();
var cacheResults = HttpContext.Cache[cacheKey] as MyViewModel ;
if (cacheResults == null)
{
cacheResults = RunExpensiveCodeTo... | how long, by default does stuff stay in httpcache if i don't put an explicit expiration? |
This figure relates to JDK 6- 32-bit.JDK 6In pre-Java-7 world strings which were implemented as a pointer to a region of achar[]array:// "8 (4)" reads "8 bytes for x64, 4 bytes for x32"
class String{ //8 (4) house keeping + 8 (4) class pointer
char[] buf; //12 (8) bytes + 2 bytes per char -> 24 (16) aligne... | I have some slides from IBM named :"From Java Code to Java Heap: Understanding the Memory Usage of Your Application", that says, when we useStringinstead ofchar[], there isMaximum overhead would be 24:1 for a single character!but I am not able to understand what overhead is referred here. Can anybody please help?Sourc... | String vs char[] |
Probably you can find some way to automagiclly foreword ports from container host, but then you will have the same problems like in case of host networking (possible ports conflicts in case of multiple container instances).Probably in your scenario best approach will be exposing some port range i.e.:docker run --expose... | Assuming an application that dynamically opens UDP ports running inside docker container, how would one expose/bind such ports to the outside (host) ports?This is perhaps same as the question raisedhere, but, the answer (using--net=host) limits the scalability of running multiple container instances exposing same ports... | Exposing dynamically opened ports inside docker container |
As you're running this inside Docker you'll need to run themongod --repaircommand in a container. Make sure you have a back up of the data you're going to repair and then run something like:docker container run --rm -v /data/mongodb/db:/data/db mongo:3.6.0 mongod --repairThat's assuming that your local data is at/data/... | I have a dockerized service, It consists in a server with an API REST and a mongoDB storage system.First of all I have these two images of docker hub:mongo:3.6.0node:alpineI'm trying to create a backup with a snapshot from my server. When I performed the restoration and I started to wake up the services, mongoDB crashe... | Unable to start up mongod due to missing featureCompatibilityVersion document. Docker issue |
Kubernetes usesetcdfor state. Etcd usesRaftfor consensus to achieve high availability properties.When using a consensus protocol like Raft, you needmajorityin voting. Using 3 nodes you need 2 of 3 nodes to respond for availability. Using 2 nodes, you can not get majority with only 1 of 2 nodes, so you need both 2 nodes... | A default Google Kubernetes Engine (GKE) clustergcloud container clusters create [CLUSTER_NAME] \
--zone [COMPUTE_ZONE]starts with 3 nodes. What's the idea behind that? Shouldn't 2 nodes in the same zone be sufficient for high availability? | Why are there 3 nodes in a default Google Kubernetes Engine cluster? |
git statuswill only show changed or untracked files. YourPodsdirectory is probably already committed and therefore tracked.Trygit log --stat -- Pods. | I am trying to add one of my folder called as Pods - Its for iOS and not showing under Git tracking
I have used below command to checkGit statusTo check the current tracking status but not getting help
I have checked the current tracking files by using the commandgit ls-tree --full-tree -r HEADAnd the folder getting li... | Pods folder not showing under Git tracking |
Would set your command to something like[bash, -c, "mysql -hlocalhost -u1234 -p1234 --database=customer < script.sql"], since input redirection like that is actually a feature of your shell.ShareFollowansweredOct 28, 2019 at 22:39coderangercoderanger53.1k44 gold badges5454 silver badges7777 bronze badgesAdd a comment| | Here we have asample of the jobapiVersion: batch/v1
kind: Job
metadata:
# Unique key of the Job instance
name: example-job
spec:
template:
metadata:
name: example-job
spec:
containers:
- name: pi
image: perl
command: ["perl"]
args: ["-Mbignum=bpi", "-wle", "print ... | Piping a file to stdin in Kubernetes Job |
Typically, an Amazon RDS instance is running on one server in one subnet.However, when launching the database, you are asked to provide aSubnet Group, which identifies which subnets the databasecouldlaunch in. These are typically private subnets within the VPC.If you are using aMulti-AZdatabase, then it will usetwo sub... | I haven't changed my vpc/subnet settings since making an aws account, and I've recently found my rds instance is apparently in 3 subnets (subnet is listed as default with 3 subnet names underneath), one of which also has my application server. Is it necessary to have my rds in all 3 subnets? I want to move it to a sepa... | why is rds in 3 subnets in aws |
3
In my case this was being caused due to the fact that the head branch and base branch of my PR had conflicts. I figured this out thanks to this other answer and no thanks due to github actions output which gave no clue of this whatsoever.
Share
... |
I have the following github workflow definition:
name: Build
on:
pull_request:
types: [ opened, edited, synchronize ]
paths-ignore:
- '**.md'
push:
branches:
- main
jobs:
get-job:
name: My job
runs-on: ubuntu-latest
steps:
... | Github workflow event trigger synchronize not working? |
ashttps://www.weave.works/docs/net/latest/faq/statesQ: Which ports does Weave Net use (e.g. if I am configuring a
firewall) ?You must permit traffic to flow through TCP 6783 and UDP 6783/6784,
which are Weave’s control and data ports.The daemon also uses TCP 6781/6782 for metrics, but you would only
need to open ... | I'm getting repeatedNetworkPlugin cni failed to set up pod \"POD_NAME\" network: unable to allocate IP address: Posthttp://127.0.0.1:6784/ip/LONG_HEX_ID: dial tcp 127.0.0.1:6784: connect: connection refused"errors in the kubelet log.Lot's of questions on the internet with this error message, but I haven't found one whe... | What Kubernetes service/pod is supposed to be listening on port 6784? |
30
Android 2.3.3 has a new API called android.graphics.BitmapRegionDecoder that lets you do exactly what you want.
You would for instance do the following:
BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(myStream, false);
Bitmap region = decoder.decodeRegion... |
I'm working on an image processing application for Android that recognizes music notation from pictures taken of music sheets.
I tried to load the entire image into a Bitmap using the BitmapFactory.decodeFile(imgPath) method, but because my phone doesn't have enough memory I get a "VM heap size" error. To work around ... | Is it possible to chop a bitmap to small pieces without loading the entire thing into memory? |
You can't write a firewall in Java.ShareFollowansweredMar 19, 2012 at 2:41user207421user207421308k4444 gold badges315315 silver badges485485 bronze badges11@user1233315 Because Java doesn't provide the necessary support. You need not only raw sockets, which Java doesn't have, but the ability to suppress a packet altoge... | It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened,visit the help center.Closed11 years ago.I have an question:How i can intercept ... | Intercept and block connection whit Java like a firewall [closed] |
Generally speaking, theorg.sonarsource.*groups are indeed a direct continuation of theorg.codehaus.sonar*ones.This is true for almost any component you'll find out there:libraries - like the JaCoCo oneSonarQube pluginsSonarQube APISonarQube itself | I've been trying to get a legacy application to start working with code coverage tools and Sonarqube this week and I've been struggling. I noticed when comparing 2 sample 'apps' I've downloaded and modified to get the basics working that they are using different group Ids for similar components. Especially sonar-jac... | codehaus sonarqube component moved to sonarsource |
+50TheGitLens FAQmentions:Yes, all features are free to use on all repos, except for features:marked with a ✨ require a trial or paid plan for use on privately hosted reposmarked with a ☁️ require a GitKraken Account, with access level based on your plan, e.g. Free, Pro, etcTheCommit Graph featureis marked ✨.So this is... | I created a public fork of a public repository on GitHub. After cloning via SSH I can't use the Commit Graph feature of the GitLens VSCode plugin. It says:A trial or paid plan is required to use this on privately hosted repos.Why is that? Which repositories are considered public? | How to access GitLens+ features for a public fork? |
Finally I managed to do that. In IIS I selected Complete Certificate Request, installed the CRT certificate, and then used Export option to save it as PFX. | I'm new to the certificates, and this is a first time I bought it.I generated CSR file (in IIS) and bought certificate using GoDaddy web site. They sent me two files: P7B and CRT. Since I will use the certificate for Azure Web role, I need PFX. How can I create it using only CSR, P7B, and CRT? | Certificate issue: KEY or PFX from P7B and CRT |
If you do it like that, the whole POST must be buffered in memory. This is because it needs to send the Content-Length header first.
Instead, I think you want to use the Apache HTTP libraries, including FileEntity. That will let it figure out the length before reading the file. You can use this answer as a starting... |
I sometimes get an OutOfMemoryError when posting a large file in Android. This is the code I'm using. Am I doing something wrong?
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("POST");
con.setDoInput(true);
con.setDoOutput(true);
ostream = new DataOutputStream(con.getOutputStr... | Posting a large file in Android |
I worked with AWS Support. The answer is:Add at attribute mapping from ApplicationSubjectto AWS SSO${user:subject}with Formatunspecified.Just a note, currently there is no AWSdocumentedrequirement to map theSubjectfor a Custom SAML application; however, it seems to be required.Also, currently the globalAttribute Mappin... | I would like to configure AWS SSO as an Enterprise SAML Connection. I tried to cobble together the proper configuration by stealing bits ofAuth0's other SAML IdP examplesbut I have not been able to get it working yet.In AWS SSO:configured a new applicationset theApplication ACS URLtohttps://<AUTH0 TENANT>.auth0.com/log... | How to set up AWS SSO as an Auth0 Enterprise SAML Connection |
2
It technically is OK for you to check in .elasticbeanstalk, but let me give you a few caveats: You and your team need to be very very specific on the order of operations, or you will get your self in a bad situation. For example: ApplicationVersionName= is the last vers... |
I have a project deployed to Amazon Elastic Beanstalk but I need to have other team members deploy as well.
We are using AWS eb CLI, which is very handy. But, it adds all generated configuration directory to .gitignore, removing the directory from .gitignore isn't a good idea.
Any ideas or tools that would allow me to... | Sharing AWS Elastic Beanstalk configuration for git deployment to AWS |
I had the exact same error 20 minutes before you posted this question, but it now appears to be working for me. I would check it again now - you'll need to create another commit and push to the repository for the build to happen again.As for your other question - this is likely a problem on GitHub's (or more likely Jek... | I have a static plain HTML/CSS website on Github pages without Jekyll.Everything has been working just fine until recently the following build error started appearing:The page build failed for the `master` branch with the following error:
POSIX::Spawn::TimeoutExceededI am not sure why this occurs, as my commits were m... | POSIX Spawn time-out error for static site on Github Pages |
Play's default cache implementation uses EhCache, which is an in-memory cache. Everything that's cached (should be) serialized as bytes, and stored in memory somewhere. There is no encryption as far as I know. So no, there are no files you can access. And because it's an in-memory cache, its gone as soon as you shut d... |
I am building Java application which uses Play Framework and it is crucial for me to access cached files.
I am looking for a place where Play Framework's cache resides. Is that somewhere on disk, and if yes, where?
Can I access files from it (e.g. from windows explorer) somehow or it is deliberately hidden from users ... | Where is play framework cache stored? |
The variablesPOSTGRES_USERandPOSTGRES_PASSWORDare used in theentrypoint.shfilevisible here. | Official Postgres images for Docker uses two environment variables:
POSTGRES_USER and POSTGRES_PASSWORD to parametrize database creation:https://registry.hub.docker.com/_/postgres/I expected that the environment variables will be used in the image source:https://github.com/docker-library/postgres/blob/bfca9b8a92a99ccfc... | How does official Postgres image create user and database with env variables? |
In grafana there is a filed$__timeFrom()and$__timeTo()On the basis of this I rewrite my query:SELECT
(CASE
WHEN HOUR(TIMEDIFF($__timeFrom(), $__timeTo())) <= 24
THEN user.created_date
ELSE date(user.created_date) end) AS "time",
count(distinct user.id) as Users,
FROM user
WHERE
user.created_date >= $... | I wrote a sql query for getting number of users created in a period of time for plotting graph (grafana or chart js) , and my sql query isSELECT
date(user.created_date) as "time",
count(distinct user.id) as Number Of User,
status as status
FROM user
WHERE
created_date >= FROM_UNIXTIME(1649635200) AND
created... | MySQL Query Group By Date (12 hours Interval) |
Found the Solution. It required an intermediate CA Certificate.The Solution is$options = [
CURLOPT_HTTPHEADER => ['Content-type: application/json'],
CURLOPT_URL => 'https://address/to/service?param=value',
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_CAINFO => getcwd()."\cacert.pem",
URLOPT_SSLCERT => getcw... | I am trying to make a SOAP call to a server using CURL as belows.The Requirement isWe need to pass the ssl certificate and pass the Username and Password$ssl = "ssl_file_relative_address.pem";
$pub_ssl_password = 'mynameiskhan';
//Get the data
$data = the_data_xml.xml;
//Get the WSDL Address
$wsdl =... | unable to use client certificate(no key found or wrong pass phrase?) |
Supposedly the AWS .NET SDK includes support for CloudSearch now: http://aws.amazon.com/releasenotes/1600390926978863
|
What libraries are out there to perform searches in AWS' CloudSearch domains? The AWS SDK is virtually devoid of search capabilities.
I would like to use Amazon CloudSearch for a project to search in pre-existing databases for certain customer-related data for billing purposes.
We already have extensive experience wi... | Are there libraries to search Amazon CloudSearch from .NET? |
Try something like this:count by (username) (count_over_time({job="my-app"} | json | username != "" [$__range]))You can show this data using, for example, a pie chart on Grafana. See below how to configure this, using a different log file and a different label ("branch" instead of "username"): | I am using Grafana to visualize metrics from Prometheus and logs from Loki about an app. There are log statements such as:{"action": "action_a", "username": "user_1", "ts": 1012}
{"action": "action_a", "username": "user_2", "ts": 1008}
{"action": "action_a", "username": "user_1", "ts": 1005}
{"action": "action_a", "use... | Removing duplicate entries with Grafana and Loki |
In general, Git hooks are not a good tool for this case because the user can bypass them withgit commit --no-verify(along with a variety of other techniques). Anything on the user's system is not an effective control, since the user can modify or delete it.Typically, this behavior is done on the server side. In some ... | Good morning, everyone,
For a project in Java on github, I have to use github functions like "issues". For this purpose all "commits" must contain at least one exit. To prevent my team from making dead-end commits I must therefore check before each commits.
GitHooks is the perfect tool for this work. Only, to implement... | How to prohibit commits if they do not contain some Issue(s) |
I finally discovered that cwoc refers to AWS-OpenTelemetry Collector, which I think has been installed by default by amazon-cloudwatch-agent.deb that I used to install the CWAgent on my EC2.
I found it by doing the following grep
ubuntu@ip-address:/opt/aws/amazon-cloudwatch-agent$ grep -r cwoc
which found the string ... |
I have installed AWS CloudWatch agent on my EC2 instance and configured with the amazon-cloudwatch-agent-config-wizard. The AWS credentials are stored in .aws/credentials and picked up by the wizard during configuration.
Now I am checking the status of the agent, but I do not understand what "cwoc_status": "stopped" r... | AWS CloudWatch agent shows "cwoc_status": "stopped" |
I think what you want is
aws ssm describe-parameters
docs
|
How do I list all parameters in the AWS Systems Manager (SSM) Parameter Store? I am using the AWS CLI.
I can store them with aws ssm put-parameter. I can fetch them with aws ssm get-parameter. I can list all documents with aws ssm list-documents, but I do not see a corresponding list-parameters function.
| List all parameters in AWS SSM Parameter Store |
Very similar to this question:Programmatically add an application to Windows FirewallThat question is for C#, but since the languages are similar, the techniques should be the same. | Is there a way I can create Windows firewall exceptions in VB2005? I'm trying to deploy a small app that opens up a few ports so I can connect to them and convert them using VMWare Converter.Thanks in advance | How to create Windows firewall exception in Visual Basic 2005? |
Try this .htaccssRewriteEngine on
RewriteCond $1
!^(index\.php|images|robots\.txt|css|js|font|woff|ttf|svg|eot|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]ShareFollowansweredOct 20, 2015 at 8:31B.Nadesh kumarB.Nadesh kumar21611 silver badg... | I've created a subdomainblog.example.co.ukto point to a folder /blog in my root directory..
The folder blog has a subfolder /php which contain scripts that talk to my server eg login, logout.
This is my current structure;root --> /blog --> /phpThis is the rule that creates my subdomain### Blog subdomain
RewriteCond %{H... | htaccess access subdomain subfolders |
In your _layouts/post.html template you are printing {{ page.content }} which is the un-rendered content, the markdown.
From within a template, the rendered content is in the {{ content }} variable.
|
I set up a local repository customized with some jekyll template and then configured a git repository syncronized with a github account.
All works perfectly: running
jekyll serve --watch
on my pc, I can see a preview of the website.
After pushing all the changes to github, I can see my website running.
All is corre... | No html building from Markdown with jekyll - github pages |
We found the cause of the problem, a partial solution and a complete solution but involves buying hardware for the raspberry.The problemThe instant of the reboot, the system wrote the current timestamp as the last valid time. This is possible only when we set the write mode. After the reboot, the raspberry uses the las... | We have a raspberry-pi running a python WSGI. There is a daily reboot schedulled in cron:0 9 * * * rebootThe raspberry is configured for starting inread only mode.When the reboot happens while we are inwrite modefor updating software, the raspberry enters in a loop rebooting every minute. If we manage to connect before... | Raspberry-pi reboots constantly after programmed reboot |
Used wandb to log system metrics:
!pip install wandb
import wandb
wandb.init()
Which outputs a URL in which you can view various graphs of different system metrics.
|
I have a program running on Google Colab in which I need to monitor GPU usage while it is running. I am aware that usually you would use nvidia-smi in a command line to display GPU usage, but since Colab only allows one cell to run at once at any one time, this isn't an option. Currently, I am using GPUtil and monit... | Display GPU Usage While Code is Running in Colab |
I managed to achieve this by doing the following.To get javascript junit reports into sonarfind and downloadsonar-karma-test-report-plugin-1.0.0.4.jarwhich is not available via the update centerput jar file in/usr/local/Cellar/sonar/5.3/libexec/extensions/pluginsand restart sonarTell karma to omit the name of the brows... | Is there a karma reporter which can be used to generate aresults.xmlfile which is compatible with the sonar Generic Test Coverage plugin? Or alternatively a parser for the junit file which is output bykarma-junit-reporterand which will work with the generic plugin?I am using SonarQube 5.3 and Karma / JasmineI want to i... | How to get karma javascript junit xml reports into sonar |
0
I think this plugin is buggy when it comes to include and exclude regex. If you exclude .*xml it shouldn't backup any files ending in xml but some files (not all) are still backed up.
Share
Improve this answer
Follow
... |
I want to backup all .log* files under $JENKINS_HOME/logs via thinBackups Backup additional files Feature. Folder structure is as follows:
/var/lib/jenkins/logs/
|-- health-checker.log
|-- slaves
| |-- Slave\ 1
| | `-- slave.log
| |-- Slave\ 2
| | `-- slave.log
| `-- Slave\ 3
| `-- slave.log
`-- ta... | Backup Jenkins log folder via ThinBackup |
There is nothing wrong with your service, you should be able to access it using:32436.NodePort, as the name implies, opens a specific port on all the Nodes (the VMs), and any traffic that is sent to this port is forwarded to the service. So, On your node port 32436 is open and will receive all the external traffic on t... | Here is my service.yaml code :kind: Service
apiVersion: v1
metadata:
name: login
spec:
selector:
app: login
ports:
- protocol: TCP
name: http
port: 5555
targetPort: login-http
type: NodePortI wrote service type astype: NodePortbut when i hit command as below it does not show the external ip as... | Kubernetes cluster is not exposing external ip as <nodes> |
genkey creates both a key and a cert. selfcert replaces the cert for an existing key with a new self-cert. Do this when your old cert has expired. If you want to sign it with a different cert (maybe from a CA) use import. | Can somebody please explain me the difference between keytool command genkey and selfcert, where I googled and I got both will generate self signed certificate, whats the difference then ?How can I sign a CSR with a certificate using keytool command ?Thanks in advance. | Difference between genkey and selfcert |
To show the difference between two branches, do the first step of starting a pull request. You can either use the UI interface on GitHub.com, or adapt this URL:
https://github.com/<account_name>/<repo_name>/compare/<base-branch>...<compare-branch>
To see differences between two commits you can adapt this URL (I do not... |
Is it possible to show diff between 2 branches using GitHub web interface?
Is it possible to show diff between 2 commits using GitHub web interface?
| Show diff between branches using GitHub web interface |
You should use -u instead of u. You can try this command: git push -u origin hotfix
Note: origin is the default short name for remote. You can use git remote -v to check if your remote short name is origin or else.
|
I was migrating my hotfix branch from Mercurial to Git. I used the hg-git plugin to import my hotfix branch into a new branch on my forked repo of my git project. Is there a way to add the newly created branch to the upstream repo? The branch does not currently exist on the upstream repo.
I tried to run...
git push u ... | How to add a branch, created on a forked repo, to the upstream repo? |
MSDN has some extensive documentation on the Windows Firewall API here:http://msdn.microsoft.com/en-us/library/aa366449(v=vs.85).aspxYou'll want to start with instantiating the HNetCfg.FwMgr COM object -- this will give you access to query various existing rules via the HNetCfg.FwMgr.LocalPolicy.CurrentProfile.There ar... | So, I've got this script:function Add-FirewallRule {
param(
$name,
$tcpPorts,
$appName = $null,
$serviceName = $null
)
$fw = New-Object -ComObject hnetcfg.fwpolicy2
$rule = New-Object -ComObject HNetCfg.FWRule
$rule.Name = $name
if ($appName -ne $null) { $rule.Applicatio... | How can you check for existing firewall rules using Powershell |
Because I couldn't get this to work the way i wanted, I changed the URL structure from:http://localhost/ci/page/random/3tohttp://localhost/ci/page/3/randomNo 404 any more :-) | I am trying to get the following url entered into the address bar:http://localhost/ci/page/random/3randomcould be anything, but will be the page title and used only for SEO purposes.and3could be any numeric value, but is used to retrieve a db record.to be rewritten as thishttp://localhost/ci/page/index/3I tried the fol... | .htaccess mod_rewrite exchange random word for folder name |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.