Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
1 When you start the container docker run splitter \ split_csv.py -i test_data.csv -o test_data.csv -r 100 it tries to look up the command split_csv.py in the $PATH environment variable, following the normal Unix rules. You've copied your script into the /docker_task2 d...
My dockerfile FROM python:latest #ENTRYPOINT [ "python split_csv.py -i test_data.csv -o test_data.csv -r 100" ] WORKDIR /docker_task2 ENV PORT 80 COPY split_csv.py ./docker_task2 ADD test_data.csv ./docker_task2 COPY . /docker_task2// CMD ["python", "split_csv.py", "test_data.csv"] My code docker run splitter...
OCI runtime create failed: runc create failed: unable to start container process: exec: "split_csv.py": executable file not found in $PATH: unknown
If your application is in the same namespace as the service you wish to consume, you can use the servicename:subway-explorer-gmaps-proxy-serviceas the DNS name. Kube dns will resolve to the service IP.If your application is not in the same namespace as that service, services get a DNS name of$service.$namespace.svc.clu...
According to the Kubernetes documentation, services of theClusterIPtype will populate aDNSAtype record with the following schema:pod-ip-address.my-namespace.pod.cluster.localI am having difficultly parsing this schema into a resolvable address for my application.For example, suppose I have the following service:subway-...
How to interpret the A records created by Kubernetes
I got this working! I was having the same issue with you when you see Reading json config file path: /opt/aws/amazon-cloudwatch-agent/bin/default_linux_config.json ... Cannot access /etc/cwagentconfig: lstat /etc/cwagentconfig: no such file or directoryValid Json input schema. What you need to do is put your config fi...
From the docker hub there is an image which is maintained by amazon. Any one know how to configure and start the container as I cannot find any documentation
How to start the cloudwatch agent in container?
This tutorial's code supposes that build triggers when there are actual changes to the source code, and it looks like you are trying to trigger it manually from console. When there are no changes step 5 of cloudbuild.yaml exits with error status due to empty git commit, which by default exits with error status when the...
I am working on setting up CI CD pipeline for Spring boot application on GKE. While doing the CI using Cloud Build on GCP, Build fail while pushing the updated manifest to candidate branch. "Failed at Step 5" I could see below logs in the cloud buildFinished Step #4 - "Generate manifest" Starting Step #5 - "Push manife...
CI CD Pipeline on GKE - Push Manifest Fail (Finished Step #5 - "Push manifest" ERROR)
3 git clone <gist-link> <dir-name> will place the gist in 'dir-name' Share Improve this answer Follow answered Jun 12, 2019 at 13:03 rickgeorgesrickgeorges 3122 bronze badges ...
When cloning a Github Gist, a local repository named after the gist uuid is created, and this repository contains the gist file: +---myLocalRepo | \---uuid | \---file.md Is there a way to skip the uuid and clone directly the gist (file.md)? It would be easier to find and edit local files when ...
How to clone Gists with their real names and not uuid?
You have to openSonarQubeport.If you have not changed thedefaultsettings insonar.properties:sonar.web.port=9000Then the default port is9000So SonarQube user port 9000 to access external content through the update page and not only internally, is that correct?Yes. This will tell firewall that connections coming from t...
I have a local SonarQube installation behind a firewall. Because of this the Update Center does not work wit availible updates. I need to know what I need to open in my firewall to make this work.Regards Magnus
SonarQube UpdateCenter behind firewall
Now, they want me to make some changes, and I am not sure how to do that in the existing PR?Simply commit your new changes to the branch which the PR is pointing to and you will see the updates in the BR automatically.This is the concept of the PR. Update your code as many times as you need and commit them. All your ch...
I am working on a open source project. I forke it, downloaded it, used it, found some issues, modified and sent a PR to upstream code. Now, they want me to make some changes, and I am not sure how to do that in the existing PR?Can anyone please help me do that? TIA.
How to make changes in an existing github PR?
0 No (unless GitHub support has some internal logs about this). The event types exposed through the GitHub API would include: Download event Fork event Pull Request event But nothing regarding a pull/fetch/clone. Share Improve this answer ...
Is there a way to check a github repo whether someone has pulled from it or not after adding that person as a collaborator? The repo is private if it matters.
Github check for pull done on github repository
I cannot find any brief explanation, documentation and technical reports that describe what the memory model that GCC selects Read the code. It's open source, and it's included with the compiler as plain text. If you're not sure where your standard headers are, you can do one of two things: learn how to ask the com...
I am not familiar with tracking down the source codes to figure out the GCC STL implementation (libstdc++) of the C++ standard allocator, and I cannot find any brief explanation, documentation and technical reports that describe what the memory model that GCC selects. I guess that GCC uses several fixed-size buckets f...
How does GCC implement the C++ standard allocator?
What I did in the end was this:First, I duplicated all the data from the wrongly named nonmaster branch to a new, rightly named nonmaster branch, and committed. I double checked that data was committed successfully and indeed there.Second, after making sure the data was backed up, I navigated to:https://github.com/user...
I have a repository in Github with two branches,masteranddd. I gave the nameddby mistake and I want to change this name to something else from the Github GUI.I didn't find a way to do so in the branch webpage:https://github.com/user/repo/tree/ddnor in the branches option page (I do have an option to change what will be...
Change Github branch name
From first glance this could be related to DMARC requiring your Mail From (return-path) and From address domains to match. When you use an Email Service Provider they will usually have their own email address to capture bounces, which causes DMARC to fail with SPF.We built a free labs project to track DMARC results. It...
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.Closed2 years ago.Improve this questionI have the following SPF record under the pixelark.com domain:v=spf1 ip4:70.164.0.71 include:amazonses.com in...
DMARC says SPF fail even with SPF record [closed]
Your mistake is use 5 fields & the right is 6 fields .* 0 * * * *--> For each hour at the 0 minute of that hour.To start after 5 minutes , you could calculate the minute of hour after 5 minutes :var schedule = require('node-schedule'); var AFTER_5_MIN=new Date(new Date(new Date().getTime() + 5*600...
I'm working on a project on Node.js. I want to execute some conditional code portion after waiting for five minutes since the last code does. I only need it to run once that way (not everyday or ...). The rest of the code will take over but when it ticks five minute, that will execute. Can I accomplish this?EDIT: The c...
Node.js scheduling function in conditional statement
git reset --hard HEAD~1/ git reset --hard #commit_shaNremove your last commit and also remove change of last commit.If you want to undo last commit or unstage last commit use soft instead of hardgit reset --soft HEAD~1/ git reset --soft #commit_shaNThen add new changes and them rename commit(new commit) or commit again...
I am new togit. I don't actually use it for any project but just as a storage for all my dotfiles.I did agit commitand just after that, I realised that was just unnecessary because it was an incomplete change. So, instead of doing another edit,commitandpush, I reset the last good commit usinggit reset --hard #commit_sh...
Git locally not synced with remote after a "git reset --hard #commit"
Normally you would want both queue mangers to have certs and to validate and match the DN of each other's cert.The TLS server end (RCVR) must have a cert, while the TLS client end (SDR) optionally needs a cert depending on theSSLCAUTHsetting of the RCVR.In all cases if the SDR queue manger (TLS client) has a cert the R...
I am trying to make an SSL connection between two MQ servers. In both of them I am using self signed certificates, I created one cert for QM_A(sender) and another for QM_V(receiver). Since the connection will be 'one-way message' I am not sure if I have to extract the public key from QM_A and import it in the keystore ...
exchanging SSL certificates in MQ keystores
If your SQL file pg-setup.sql is no problem, you can just change your Dockerfile like this:FROM postgres:latest COPY pg-setup.sql /docker-entrypoint-initdb.d/Take a look at anothercase. It will be helpful.
When I use the postgres docker image, I rundocker run --name mydb -e POSTGRES_PASSWORD=password -d postgresAnd I see a container running.CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a36b98h8982a postgres "doc...
Start postgres in Dockerfile
Are you using antivirus software (e.g. Avast) and is it inspecting your HTTPS traffic?It does this by acting like a MITM so you connect it it and it connects to the real website. And if they only support http/1 (which as far as I know they only do) then that would explain this. Though oddly not for for Medium unless yo...
I have a site, that runs on a Nginx 1.10.0 on Ubuntu 16.04 server (OpenSSL 1.0.2h). I want to serve this site over HTTP/2, so I configured Nginx accordingly:listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_serverAnd it works fine in FF 47 and Chrome 51 on my office Ubuntu 15.10 desktop and in the ...
Why HTTP/2 on a specific site works in FF, but doesn't work in Chrome, IE and Edge on the same Windows 10 computer?
3 You can look at the example in the question here for how to use tensor cores in CUDA code. The only thing to add is that matrix C doesn't have to be set to 0 and doesn't need to be reused as matrix D. So you write normal CUDA code and insert warp-level instructions like m...
I have RTX2060 Nvidia graphic card which has tensor cores on it. I want to run my codel utilizing tensor cores and cuda cores in a mixed way.The idea is to have a part of the code executed by tensor cores and another part by the cuda cores, in order to get a performance speedup. My question is: is possible to do somet...
Is possible to use tensor cores and cuda cores in a mixed way?
The demoTester user does not have the create_index privilege for the demo-2022.10.27 index.The easy way is to add the role superuser to the demoTester user but use that is only for demo purposes.The secure way is to create a role with create_index privilege for the demo* indices and assign that role to your demoTester ...
I created a userdemoTesterwith the following roles:/usr/share/elasticsearch/bin/elasticsearch-users useradd demoTester -p demoTester -r kibana_admin,logstash_admin,beats_admin,logstash_system,monitoring_user,watcher_admin,editor,machine_learning_adminWhen I run my deployment script, I can see that Logstash is listening...
Logstash can't index into ES: `action [indices:admin/auto_create] is unauthorized for user`
If you're using Windows task manager to try to work out the memory used, it's likely to be deceiving you. Memory used by the CLR isn't generally returned to the operating system as far as I'm aware... so you'll potentially still see a high working set, even though most of that memory is then still available to be reus...
I have a windows service written in C#.Net. When the service is started, I spawn a new thread as shown below new Thread(new ThreadStart(Function1)).Start(); This thread loops infinitely and performs the duties expected of my service. Once a day, I need to simultaneously perform a different operation for which my thre...
C# Thread not releasing memory
A custom resourcedefinitiondoesn't manage anything. It is just a definition for some specific API group, version, and kind (as you see at the top of a Kubernetes manifest) that is not part of the standard Kubernetes API. If you've installed a CRD then you cankubectl get customtypenameand run similar commands, but not...
Worked withCRDsa bit so far. Recently a colleague of mine claimed that custom resources only ever manage pods in the end. Is this true? Can you do CRDs for services or config maps as well?
Do CRDs only ever manage pods?
We need to pass an valid access tokenTo query Users :https://api.github.com/user/orgsTo query members in an organization. were {organization} is the organization name case sensitivehttps://api.github.com/orgs/{organization}/membersShareFollowansweredJun 10, 2020 at 5:25Abhishek RenduchintalaAbhishek Renduchintala6911 s...
I would like to know how do we connect to enterprise version of github and access multiple data like , organization settings, users, repositories etc.,I can find in google that we can access open github details using endpointhttps://api.github.com/how about access my Enterprise version ? considering enterprise name "t...
How to query Github enterprise using REST
0 First, the idea behind adding User git in your ~/ssh/config file is to avoid using git@ in the SSH URL. Second, check what config file is actually read with: ssh -Tv github.com-work As you can see here, it can depend on your OS, or the current user executing the ssh comm...
I have an ssh configuration file as follows: Host github User git Hostname github.com IdentityFile ~/.ssh/id_rsa Host github.com-work User git Hostname github.com IdentityFile ~/.ssh/work I have access to all the (private) github repos and have added public keys already. But when I tried ssh -T [e...
ssh custom host/hostname not working on Mac
Currently Amazon MSK doesn't support the scaling down through the APIs. It is one of the known limitation as of now.You will have to do it manually but that itself is an hassle as you will have to manage all the replicas to make sure those are in sync.Another option could be you spin up another smaller MSK service and ...
Quick question for those who have used Amazon's MSK (Managed Streaming for Kafka):Thedocs/FAQmake it clear that you can easily scale up the number of brokers in an MSK cluster. Can you just as easily scale the number back down? I'm not talking about auto-scaling, but manual scaling.
Can you scale DOWN the number of Kafka brokers in an Amazon MSK cluster?
You can try filtering all GitHub repositories with a package.json file with a keyword like this: next-mdx-enhanced filename:package.json. Here is an example
I want to search for public GitHub repos (and hopefully sort them by a star) that have certain package.json dependencies like next-mdx-enhanced, @tailwindcss/typography, and typescript. I can get all repos which use next-mdx-enhanced by visiting next-mdx-enhanced repo and clicking on Used by xxx i.e. dependency graph....
Search for GitHub repos which have certain package.json dependencies
Try to have this in your script instead.#!/bin/bash exec bash -l -c '/bin/sleep 60 && /usr/bin/python /home/pi/foo.py'Or as a crontab command:/bin/bash -l -c '/bin/sleep 60 && /usr/bin/python /home/pi/foo.py'
having a problem getting the following to work. I've added a cron job on reboot as follows@reboot /home/pi/bash_scriptto execute a bash script containing the following#!/bin/bash /bin/sleep 60 && /usr/bin/python /home/pi/foo.pyI've also done a chmod x to the file to make it executable.But it doesn't seem to be workin...
(linux) bash script to run script after delay
Here you are using http basic authentication option, after a successful feedback given by nginx server, browser sends a base64 ofusername:password. just use python base64 module to get username & password,>>> from base64 import b64decode >>> authorization_header = "dXNlcm5hbWU6cGFzc3dvcmQ=" # value from flask request h...
I have an nginx http server which authenticates users and passes the authenticated request to a Flask app via wsgi. When I print the entire header from the flask app no user information is available.Is it possible to get nginx to include the username in the request header?Here is the server block with the authenticatio...
How to configure nginx to pass user info to wsgi/flask
1) Use an asynchronous NSUrlConnection object to download the video. 2) create a file to save the video beforehand, get the file descriptor, and set the F_NOCACHE flag on the open file so as to not consume memory in the disk cache. 3) as you get small chunks of data as NSData objects in the delegate call, append them ...
Need your suggestions/advice on a scenario I am stuck into. I am developing an iPhone Application which has 12-15 videos. User can download any video and then play it on his iPhone. The problem is that I am writing the videos to the documents directory. It works well for small videos(~50 mb) but when the bigger ones a...
iPhone Downloading large size videos to Documents Directory(~300 mb)
Being able to use two server certificates on the same IP address and port is possible via theServer Name Indication (SNI) extension, which must be supported by the client and the server.Java supports this on the client sidesince Java 7.Unfortunately, this is not supported on the server side yet. This isplanned for Java...
I have a situation and not sure if it has possible solution.I have a Java Server with SSL Socket and certificates "A" & "B". I also have 2 types of clients - one with certificate "A" and another with certificate "B". However only one certificate is loaded on a server side and therefore either clients with cert. "A" can...
Java Server with Multiple SSL Certificate
AWS have fixed this now. It works as per my original posted example.
I successfully deployed a Cognito User Pool and used it to authenticate against a Method that I set up to proxy to my API in API gateway, and now I'm creating a Cloudformation template of the same stack. Using Cloudformation, I set up my API Gateway and the Authorizer that uses my User Pool. Works fine. when I try to ...
Cognito User Pool AuthorizerId cannot be set in API Gateway Cloudformation
0 Your first example is correct. public class MyBackupAgentHelper extends BackupAgentHelper { static final String DEFAULT_PREFS = "packagename_preferences"; static final String OTHER_PREFS = "packagename_other_preference"; // A key to uniquely identify the s...
I have trouble unterstanding the keyPrefix of the addHelper() method. Does it need to be unique for each BackupAgentHelper Class Instance or for each SharedPreferencesBackupHelper ? I want to backup two or more sets of SharedPreferences: Example: public class PrefsBackupAgent extends BackupAgentHelper { // Alloca...
BackupAgentHelper with multiple sets of SharedPreferences
Try adding thie right below your first rule (that 301 redirects):RewriteRule ^analyze/http:/+([^/]+)/? /analyze/$1 [L,R=301]This will redirect requests likehttp://www.mysite.com/analyze/http://www.yourdomain.com/this-is-a-testtohttp://www.mysite.com/analyze/yourdomain.com.
I'm not even sure if this is possible but have been looking everywhere for a solution. My site generates dynamic info about domain names and people can view their info in the following format:http://www.mysite.com/analyze/yourdomain.comThe problem is that sometimes people will enter http:// or www or even the full URL...
Using htaccess to strip domain name from URL
1 Updated solution: The problem is the initial Repositories is made with a different name then I rename to "HAKO411" --> not working So I did: - Delete that repositories - Create a new repositories with exact name of my id-user - Upload again --> it works. Share ...
I want to change a default page of my Profile on github. I create a folder with the same name with my id-user (https://github.com/HAKO411/HAKO411) and It appears a line as: "HAKO411/HAKO411 is now a special repository: its README.md will appear on your profile!". However, my profile didn't change. Do you know how to f...
"is now a special repository: its README.md will appear on your profile!" but it doesn't work
Two rails applications were running on both a domain and a subdomain and the browser had conflicts with the session cookie set in the file session_store.rb that had the same key and would not allow users to login if they had the cookie from sample-domain.com first or shop.sample-domain.com respectively.
We are currently having a very strange issue that is occurring with a Spree install running on NGINX. Users are reporting issues recovering passwords and once recovered having issues of logging into the site. We have not been able to reproduce this error but know it is certainly happening due to all of the reports f...
Strange Spree Login Issue - Possibly cookie, browser, NGINX related
Sounds like a fine (and normal) approach. What you can do is to have multiple development branches, for each feature or bug fix your are working on. This allows you to switch between the branches depending on what you want to work on today. But if you are a lone developer on your project, that may just be overkill.Just...
Is there a preferred way to set up projects or branches on github, so there's always a stable branch available for people to download? How do you guys set up your projects?Here's an example: right now I have a "stable" branch(master) and then an "edge" branch(for development only). When I am ready to release a new vers...
Github: What's the best way to maintain a stable project?
Building outside the canonical build-container is definitely supported (although not recommended); I usually use a one-liner like AUTO_GOPATH=1 ./hack/make.sh dynbinary to accomplish this (especially useful for bootstrapping a machine that doesn't have Docker yet). This is also how distribution packages compile Docker...
I want to implement a Docker Storage Driver that uses a custom storage system. However, from what I have seen so far Docker can only be built inside a container. Is it possible to build it natively in my host system?
Build Docker in VM
I reproduced your issue and it worked fine for me. This is what I did:Create 2 networks (one of them (demo) on 172.16.0.0/16, the other one is my default network, set on 10.132.0.0/20).Set up VPC peering.Created a VM in demo network. It got assigned 172.16.0.2Created the service as you described (with the endpoint poin...
We have a requirement to connect from a POD in GKE to service running on a VM on it's internal IP address.The K8s cluster and the VM are on different network so we setup VPC Peering between these nets:As how to point to an external IP, we applied a service without a selector as discussed here:https://kubernetes.io/docs...
Connecting from K8S pod in GKE to a VM internal IP on Google Cloud Platform
This have happened to me sometime. I think i got it solved by using another apple id(since my company had another one). But that may not be necessary. Try doing it after sometime, clearing all your browser cache. It should work, if what you are doing is correct
I'm trying to generate an Apple Push Notification service SSL Certificate - here's a screen-grab:(source:818kimball.com)(blurred certificate name for privacy purposes)but after hanging at that screen for 2 minutes, I then keep getting this error:(source:818kimball.com)I'm doing everything right, I checked and re-did al...
Issues generating Push Notification SSL Certificate
The error you're getting suggests you aren't using a Node.js project and don't have apackage.jsonfile.If this is an existing browser-based project and you want to add the library, you can downloadjquery.csv.min.jsfrom here:https://github.com/typeiii/jquery-csv/tree/master/src, and add a client-side (browser) reference ...
I'm trying to install jquery-csv librarywith visual studio in ubuntu for the first timetheinstructionsays that to install package I should run:npm i jquery-csvhowever whenever I tried it npm warns me that it can't findpackage.son:is this something i'm expected to see in a normal package installation?if not, please help...
why does npm gives me warning when i try to install jquery-csv library using VS in ubuntu
As best as I can tell, the Allocation widget is inaccurate for total memory usage and it was best to just use the Real Memory + Virtual Memory numbers from the Memory Monitor widget. This is pretty much the only option when developing Cordova apps since the UIWebView is a black box and difficult to profile.
I'm getting out of memory crashes with a Cordova app on an iPhone 4S running iOS 7. I am try to implement an infinite scrolling list and I start seeing memory pressure and hiccups when prepending to the list (appending seems fine). When I run the Allocations widget in Instruments, I see a crash when there are 20 MB of...
Inconsistent results when memory profiling Cordova app on iOS vs native app
Discussion here seems to indicate /LARGEADDRESSAWARE has no efefct on DLLs and depends totally on the hosting executable.
Suppose I have a DLL which is built with LARGEADDRESSAWARE linker flag set. Now I have an application dynamically linking to this DLL. Does this make my application LARGEADDRESSAWARE? If not then, does it make sense to have this flag set for any DLL?
Linking to a Large address aware DLL
I'll answer myself, as I found the solution, but still do not understand what's wrong. Looks like pip library requests>=2.25.0 does not work, but all the earlier version works, so changing code to: ᐅ docker run -v $(pwd):/app python:3.9 sh -c 'pip install requests==2.25.0 && openssl version && python -VV && python /ap...
the python code I tried to work with, simplified the most I could is: import requests params = { 'Email': '[email protected]', 'EncryptedPasswd': 'longEncryptedPassword' } response = requests.post('https://android.clients.google.com/auth', data=params) print(response.status_code) print(response.content) N...
POST request - works on local (200), but not on docker (403) - Python3
17 I also ended up with the error after deleting btrfs subvolumes myself (the bug that subvolumes are not freed by docker system prune still exists). To recover, you have to delete /var/lib/docker as well: systemctl stop docker rm -rf /var/lib/docker systemctl start docker ...
I manually deleted a docker managed subvolumes btrfs subvolume delete /var/lib/docker/btrfs/subvolumes/<subvolume id> but when I try to recreate it gives me this error that I'm not able to solve without nuclearize the docker installation Error response from daemon: stat /var/lib/docker/btrfs/subvolumes/<subvolume id>...
Error response from daemon: stat /var/lib/docker/btrfs/subvolumes/[...]: no such file or directory
The answer to your question is heavily dependent on your workload.There are very specific scenarios (machine learning, big data, GPU intensive tasks) where you might have a one pod per node configuration due to an IO or hardware requirement for a singular pod. However, this is normally not a efficient use of resources ...
What is usually preferred in Kubernetes - having a one pod per node configuration, or multiple pods per node?From a performance standpoint, what are the benefits of having multiple pods per node, if there is an overhead in having multiple pods living on the same node?From a performance standpoint, wouldn't it be better...
Kubernetes - Multiple pods per node vs one pod per node
If you are usingcreate-react-appnpm startwill trigger hot-reload server atlocalhost:3000and your currently opened terminal window will be running this process in the background mode. To stop it usecmd/ctrl + cor just simply open another terminal window to be able to install packages or do other tasks in the same folder...
I'm hoping others have had this issue before.. I used npm start in the terminal to run my react project which opens through localhost:3000 fine, but then any following commands I write in the terminal don't execute! I want to be able to use initialise my project through npm start, make changes in my text editor then co...
After running npm start command line doesn't work
linking ... doubles the number of calls back to the server: every Article requires a second (serial) fetch of an Author.REST includes cache constraints for precisely this reason, that the "second fetch" doesn't have to be madeat allif the data is already sitting in your local cache (or can be a request that only uses p...
I have a REST system with Article and Author resources. Generally, when accessing an Article, I'll also want to know the Author's name. I can craft the Articles in a couple of ways to accomplish this : A) embed a copy of the author's name directly into the Article; or B) include a URI in the Article that points to the ...
REST resource design : Embedding related data VS linking to it?
In order to connect to your instance with "EC2 Instance Connect (browser-based SSH connection)" you need to install ec2-instance-connect to your AMI. Try connecting to your instance via "A standalone SSH client" (eg. putty) and installing it with a command: sudo yum install ec2-instance-connect or (for Ubuntu): sudo ...
I launched a new Amazon Linux 2 instance. I tried connecting to the instance via the EC2 instance connect option under the Connect -> EC2 Instance Connect (browser-based SSH connection) option in the Management Console. I get the error: There was a problem setting up the instance connection An internal error has occur...
EC2 instance connect : There was a problem setting up the instance connection
Try adding this condition:RewriteCond %{REQUEST_FILENAME} !-fThis should allow any files that actually exist (there are other options for other types of files). This assumes it wouldn't mess up anything else for other files that already exist.
My site is set up with htaccess directing all pages from html to php as below:RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^website.com RewriteRule (.*) http://www.website.com/$1 [R=301,L] RewriteRule ^(.+)\.html$ http://www.website.com/$1.php [R=301,L]I am trying to set up Yahoo Site Explorer and to verif...
htaccess redirect all but one page from html to php
You definitely want to have a look atrdiff-backup. And Server Fault. ;)
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
alternatives to rsync? [closed]
You can get your current IP address as shownhere:ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}'Then you can use the--add-hostflag withdocker run:docker run --add-host localnode:$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print \$2}') ...In yourproxypassuselocalnodeinstead oflocalhost.
I'm trying to use a dockerized version of nginx as a proxy server for my node (ExpressJS) application. Without any configuration to nginx and publishing port 80 for the container, I am able to see the default nginx landing page. So I know that much is working.Now I can mount my sites-enabled directory that contains the...
How do I access a server on localhost with nginx docker container?
3 After you've read from the file you can just overwrite the file with > filename This overwrites the file with nothing. It is also equivalent to cat /dev/null > filename. similar solutions referenced here Share Improve this answer Foll...
I have a log file which i need to take a backup, Then empty the file instead of deleting it, Deleting the file will cause someother script to get triggered, Hence i should only empty it. Please suggest me a way?
Log File Backup and empty the file instead of deleting in linux
This means that your docker state is corrupted and you need clear the complete statesudo service docker stop sudo rm -rf /var/lib/docker sudo service docker startThis will start docker fresh without any existing data. Try pulling deleting the image after this and see if all works. If it doesn't then there is some issue...
In some reasons I can't delete docker image. Here is outputOS version:Linux localhost.localdomain 4.12.13-300.fc26.x86_64 #1 SMP Thu Sep 14 16:00:38 UTC 2017 x86_64 x86_64 x86_64 GNU/Linuxdocker versionClient: Version: 17.06.2-ce API version: 1.30 Go version: go1.8.3 Git commit: cec0b72 Built: Tue...
"docker images" shows image, "docker rmi" says "no such image" or "reference does not exist"
Your outbound NACL rules are blocking all traffic except those destined to have a final destination of 2 private IP ranges. Whilst the NAT might be in these subnets, the target is not, you should allow any IP ranges you want to be able to speak out to.
I have two public subnet which has one NAT EC2 instance and one bastion host one private subnet which has one EC2 instance I am able to ping google.com from my bastion host but I am unable to do so from my private EC2 instnace.I have checked all steps mentioned here:- https://aws.amazon.com/premiumsupport/knowledge-...
NAT instance and NACL configurations
You need to add a condition to excludeindex.phpand then remove the last\sfrom the check against%{THE_REQUEST}:RewriteCond %{REQUEST_URI} !index\.php RewriteCond %{THE_REQUEST} ^[A-Z]+\s([^\s]+)\.php RewriteRule .* %1.html [R=301,L] RewriteRule ^(.*)\.html$ $1.phpShareFollowansweredOct 20, 2012 at 6:15Jon LinJon Lin143...
I need an .htaccess rewrite rule that will redirect links like this:www.mydomain.com/viewpressrelease.phpwww.mydomain.com/viewpressrelease.php?id=17 (or any text follwing .php)www.mydomain.com/employment.phpto links with the same name replacing .php to .html like this:www.mydomain.com/viewpressrelease.htmlwww.mydomain....
I need my .htaccess file to redirect all <any_name>.php to <same_name>.html except for index.php
There's a bundled installer for that purpose. Install aws command to $HOME/bin $ wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip $ unzip awscli-bundle.zip $ ./awscli-bundle/install -b ~/bin/aws Set $PATH environment variable $ echo $PATH | grep ~/bin // See if $PATH contains ~/bin (output will be empty if...
As title suggested, I haven't been able to find a good way to install aws-cli (https://github.com/aws/aws-cli/) without having the root access (or equivalent of sudo privileges). The way Homebrew setup on Mac is hinting at it may be possible, provided that a few directories and permissions are set in a way to facilit...
Is it possible to install aws-cli package without root permission?
Even if you call System.gc() right before checking how much memory you have, there is no guarantee that a garbage collection will actually have occurred. Myself I really wouldn't bother, I'd set a fixed chunk size (preferably configured through a property or similar) and always use that. If the rest of your program is ...
I have some data processing code which uses the following recipe:Read in as much data as will fit in memory (call this a 'chunk')Perform processing on the chunkWrite out processed chunk to diskRepeat...Merge all the processed chunks to get the final answer.This last stage is most efficient when there are as few chunks ...
How can I estimate amount of memory left with calling System.gc()?
email signupIf is possible GitHub querieden.gravatar.com, which could have a picture associated to this URL.Any service using that URL, and aware of gravatar, would then display the same picture.ShareFollowansweredJun 11, 2020 at 6:03VonCVonC1.3m539539 gold badges4.6k4.6k silver badges5.4k5.4k bronze badgesAdd a commen...
I just created a new account on GitHub to practice using the API. Somehow my profile now has a very relevant profile picture, which I never uploaded. How did this happen? Was is from the email address I used maybe? If so, again, how?
GitHub found my profile picture without me uploading one. How is that?
If your data is used on every pages, and is the same for all users, I wouldn't cache it in $_SESSION (which means having a different copy of that data for each user), but with another mecanism, like :fileIn memory, with APC for instance (if only 1 server)In memory, with memcached, for instance (if you have several serv...
Is it "better" (more efficient, faster, more secure, etc) to (A) cache data that is used on every page load in the $_SESSION array (but still querying a table for a flag to reload the data fresh), or (B) to load it from the database each time?I'm using the cache method (A), but I'm worried that with hundreds of users, ...
Cache data in PHP SESSION, or query from db each time?
Ah, the good old poor-mans'-profiler technique. I'd be lying if I said I haven't used it from time to time, but it's indeed very problematic and will probably be biased toward finding heisenbugs and not necessarily reflect the real behavior. Another issue is that instructions are overlapped on modern out-of-order CPUs...
When you're debugging performance-critical code and looking at the disassembly, it's not too hard to spot bottlenecks due to data cache misses: Load/store instructions tend to be the usual bottlenecks, which means that if you stop the program, chances are that it will stop close to a load/store instruction loading fr...
What are the signs of non-data cache misses (instruction, TLB, etc.)?
The answer has been provided by @Ryan Dawson.The best way to mount a single file in container (in Kubernetes) would be to use ConfigMap:ConfigMaps allow you to decouple configuration artifacts from image content to keep containerized applications portable.ConfigMap can be used in this case to create a resource which ...
I have a single file which I want to mount in the container. The file is present inconffolder which also contains other file but the file I only want to mount ishelper.conf. Doing this in docker:docker run -it -v /path/to/dir/:/path/inside/container --name mycontainer dockerimageDoing this throws below error:Are you tr...
How to mount a single file in container in kubernetes/docker
The GKE master today is not highly available and if a zone goes down, your cluster's Kubernetes API will go down with it. However you should note that GKE master is managed service with a 99.5% SLA.https://cloud.google.com/container-engine/slaIn the future, GKE may offer high-availability solutions for the master (API ...
GKE seems to create a cluster using one availability zone for the master although it provides an option to deploy nodes to multiple availability zones. I am concerned that if master AZ goes down, I cannot manage my cluster anymore. I understand my apps will continue to run but it is a big concern that I cannot scale up...
How highly available is the master zone of my GKE cluster?
You must use a proper hostname to reach the route defined in the Ingress object. Either update your /etc/hosts file or use curl -H "hello-world.info" localhost type command. Alternatively, you can delete the host mapping and redirect all traffic to one default service. apiVersion: networking.k8s.io/v1beta1 kind: Ingre...
I am trying to create an ingress controller that points to a service that I have exposed via NodePort. Here is the yaml file for the ingress controller (taken from https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/): apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: examp...
Nginx Ingress Controller Returns 404 Kubernetes
Problem is in this rule:#Force from http to https RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} !^bbb.example.co.uk/$ RewriteRule ^(.*)$ https://bbb.example.co.uk/$1 [R=301]Change this rule to:#Force from http to https RewriteCond %{HTTPS} !on RewriteCond %{HTTP_HOST} =bbb.example.co.uk RewriteRule ^(.*)$ ht...
I am trying to force a subfolder (/bbb/) of my root domain to show always as https. Also my.htaccessfile take care of the extensions of the pages.I have put the.htaccessfile inside my/bbb/folder but I get "Too many redirects" when I try to force to connect to https, without it everything works fine.Whats wrong in my co...
.htaccess - "Too many redirects" when trying to force https
You can't mount a VOLUME in a Dockerfile specifying both source (host) and destination (container) paths.This is because this idea does not fit the basic concept that Docker image is portable and independent of host.
I want to mount aVOLUMEin aDockerfilespecifying bothsource(host) anddestination(container) paths.This operation can be done withdocker-compose.ymlin this way:volumes: - /path/source/on/host:/path/destination/on/containerHow can I do the same thing with a Dockerfile?
How to specify source and target for a VOLUME in Dockerfile?
If you want to push directly from the remote container, you would to have access to your SSH key from within said container.See for example "Using SSH keys inside docker container" which does mount your local SSH folderdocker run --rm \ -v ~/.ssh:/root/.ssh \ ...
I'm developing an Angular app in a docker container set up with the extension.Is there a way to use my local id_rsa to fetch and push code to my gitlab repository? (it has been cloned via SSH on my host machine)
Remote Containers - Can't use Git with SSH key
Try to use image hash instead of tag in your Pod Definition.Generally: there is no way to automatically restart pods when the new image is ready. It is generally advisable not to use image:latest (or just image_name) in Kubernetes as it can cause difficulties with rollback of your deployment. Also you need to make sure...
I'm using K8s on GCP.Here is my deployment fileapiVersion: apps/v1 kind: Deployment metadata: name: simpleapp-direct labels: app: simpleapp-direct role: backend stage: test spec: replicas: 1 selector: matchLabels: app: simpleapp-direct version: v0.0.1 template: metadata: ...
How to automatically restart pods when a new image ready
It is so valuable question for the AWS beginners. I was also confused with this question but get clear after a while.I know you used the EB CLI for handling the EB. With the EB CLI you don't need the .pem file for normal use. Because the EB CLI has 'eb ssh' for connecting the EC2 instance of your EB. Please check out :...
I'm 100% new to AWS and I'm working on deploying my personal site. I've spun up an EB environment via the AWS EB CLI and but I would also like to be able to SSH into the EC2 instance that gets created however I can't locate the private key (.pem) file that is associated with it which I need tochmodfor permit SSH'ing i...
Where can I find private key file for EC2 instance I create through Elastic Beanstalk CLI?
Because you never actually committed the deletion portion of the move.http://www.kernel.org/pub/software/scm/git/docs/git-commit.htmlThe content to be added can be specified in several ways:...3) by listing files as arguments to the commit command, in which case the commit will ignore changes staged in the index, and i...
I ran this:$ git mv README README.mdThen:$ git commit -m "renamed" README.md $ git push origin masterBut over at github, the old README file still exists in the repository. Why ?
git mv does not delete old file
result.getToken()might return null. So when you callresult.getToken().getToken()you are callinggetToken()on a null reference. Thus a NullPointerException will be thrown.So you could do something likeYourClass token = result.getToken(); if(token != null) { String vaultToken = token.getToken(); // whatever you want t...
Small question regarding a SonarQube flagged issue I do not understand please.My snippet is very simple.VaultTokenResponse result = getWebClient().mutate().baseUrl(vaultUrl).build().post().retrieve().bodyToMono(VaultTokenResponse.class).block(); String vaultToken = result.getToken().getToken();Howev...
Possible null pointer dereference in [...] due to return value of called method
0 The only files tracked are in my ..\Program Files\Git That could only happen if you have environment variable like GIT_WORK_TREE which would "trick" git into considering the folder referenced by those environment variable as its working tree (instead of the current fol...
I've been having issues with adding files to my commits. In short, whenever I do git add , the files added to the unstaged commit are from the Git folder in my Program files dir (to clarify, I'm using an x64 version of windows 8). Regardless of what I do (git init, git clone...etc.), I have the same issue across all o...
Git commit dumps random files
UINavigationController maintains a stack of view controllers. You start with one element, a LoginViewController, on that stack. When you push a ProfileViewController, you now have two elements on the stack. The LoginViewController can't be deallocated until it is removed from the stack. If you want the ProfileViewC...
I have a LoginViewController (UIViewController) that when all the criteria is met and the user hits the Login button, a storyboard segue is run that pushes the ProfileViewController (UIViewController). When this happens, I have a log statement in my LoginViewController's dealloc method to see if it is called and to my...
Should a UIViewController be deallocated when it performs a Push Segue
If you really want to use htaccess rather than php:RewriteEngine On RewriteCond %{QUERY_STRING} ".*t202kw=\[zone\].*" RewriteRule ^ http://example.com/newpage.php [R=301,L,QSD]
I want to redirect this URL:http://example.com/main2.php?t202id=2483&mnin=pubd&t202kw=[zone]toexample.com/newpage.phpbut only if the visitor hit the URL with[zone]at the end of the URL and in case he visits a URL like this:example.com/main2.php?t202id=2483&mnin=pubd&t202kw=XXXXXXXXhe must NOT be redirected.
Using .htaccess, how to redirect a URL with Square Brackets [ ]
Try doing agit checkout developmenton local repo. Then trygit rebase {the branch you cleaned up}. See if that resolves the issue on local repo. If it does you can push from the development branch to the remote development branch.ShareFollowansweredSep 21, 2017 at 5:25Isuranga PereraIsuranga Perera51255 silver badges171...
I accidentally merged conflict notes (<<<<<<< HEAD) into a development branch.I didn't think that was such an issue, as I thought I could just tidy them up on my local and merge them again. But that didn't work - though my branch is clean, the development branch still has the erroneous code.I then thought I couldchecko...
Git: Accidentally merged conlfict notes into branch. How do I remove them?
Use option "filterFile"Every file has modified timestamp and you can use this timestamp to filter file that are older than 1 week. Underfile component, there exist an optionfilterFilefilterFile=${date:file:yyyyMMdd}<${date:now-7d:yyyyMMdd}Above evaluation comes fromfile language,${date:file:yyyyMMdd}denote modified tim...
I am using the file component with an argument quartz scheduler in order to pull some files from a given directory on every hour. Then i transform the data from the files and move the content to other files in other directory. After that I am moving the input files to an archive directory. When a file is moved to this ...
Quartz Scheduling to delete files
Your negative lookahead syntax is incorrect and it is placed wrongly also.Try this:RedirectMatch 301 ^/categorie/boulangerie-et-patisserie/(?!page/)(.+)$ /produit/boulangerie-et-patisserie/$1 RedirectMatch 301 ^/produit/boulangerie-et-patisserie/page/(.*)$ /categorie/boulangerie-et-patisserie/page/$1Correct negative l...
I need help with a RedirectMatch Regex directive.I need the following URL to be redirected as follow :RedirectMatch 301 ^/category/category-title/(.+)(!?/page/)$ http://example.com/product/category-title/$1The result I want is to redirect to specified product title except if word page is found :http://example.com/categ...
.htaccess RedirectMatch. Match for string except one word
After many checks, it is found out that issue is not due to any codes. It is purely because of I am opening and closing a shared workbook. This type of issues are common when use shared workbooks. So it is best to avoid usage of shared workbooks.During these process some items I did to clear memory issue areClear out v...
ScenarioI have a userform, and when a button is pressed, it opens an Excel file as read-only, gets some values, and closes that file. Following are the codes I am using to open and close the file.To open:Set planbook = Workbooks.Open(planFilePath, ReadOnly:=True)To close:planbook.Close FalseProblemAfter closing the fil...
Why do files remain in project window even after files closed?
Where is the python code running? On localhost? If yes then you either need to changerabbithostto127.0.0.1or make a host entry in/etc/hostsfor127.0.0.1 rabbithost
I am trying to send a message from a python server hosted on localhost:5000 to a RabbitMQ server( using a docker image for RabbitMQ) , but I am getting the following error :socket.gaierror gaierror: [Errno -2] Name or service not knownI am running the docker image for RabbitMQ using the command where 'rabbithost' is th...
socket.gaierror gaierror: [Errno -2] Name or service not known - pika rabbitMQ
Object result(node1->content + node2->content); Node->content = &result; // will this object be erased when the function ends? Yes, if result is created inside the function body with the syntax shown above, it will be destroyed when the function ends. This is the reason why you should use new and dynamic allocation...
I had to implement a function that looked like this: MyList * sum (MyList * l1, MyList * l2) { MyList * newlist = new MyList(); //Adds two objects and place the result in a third new list return newlist; } The function took two lists and placed the sum of each object into a new list. The MyList class had ...
How to deal with dynamic allocation when implementing list of objects?
Resolved, vault was running as init container and before start of pod it is mounting the secret. I was pointing to wrong file.
I want to read certificates from vault and install it in the kubernetes pod. I stored the certificates in the vault along with other secret. To filter out the certificate from the vault written an entry point script. So in the script before start up of pod trying to install the certificate.But found while entry point s...
Kubernetes annotation for vault not mounting secret file to pod when entry point script is used
Memory allocation depends on how much load their currently is. You cannot pick a number and hope you will be able to allocate that much space always. You should pick a safe number that has low chance of failure. Streams usually use 1-8MB buffers I suppose.HDD load would be more or less same when reading 1Gb at once and...
I need this to determine if I can load file fully to RAM with File.ReadAllBytes (fast) or process file with parts via FileStream, by reading the amount of bytes close to OutOfMemoryException, but enough to avoid it.I do this to reduce HDD load. I think is better to read 1gb at once, than do read cycles like: read 4 byt...
Is there anyway to determine how much more ram my prog can allocate till OutOfMemoryException?
Yust publish your own PR, which means: you create a fork of the original repo make your own branch push to your fork and publish your PR, and reference in the comment the number of the previous PR yours is supposed to replaced. If your changes are based on the old PR itself, you even can: add a second remote 'secon...
I.m trying to follow up on other person bug on github. There is an existing PR with his rough work on that bug, I have more updated solution and want to add commits to that PR (actually, want to rebase his commit and squash them). What will be the way to do it? Thanks.
Add commit to other pull request in order to follow up on that bug (github cli)
>>> import socket >>> def get_ips_for_host(host): try: ips = socket.gethostbyname_ex(host) except socket.gaierror: ips=[] return ips >>> ips = get_ips_for_host('www.google.com') >>> print(repr(ips)) ('www.l.google.com', [], ['74.125.77.104', '74.125.77.147', '74.125.77....
I have a string representing a domain name. How can I get the corresponding IP address using Python 3.x? Something like this:>>> get_ip('http://www.stackoverflow.com') '64.34.119.12'
How do I get a website's IP address using Python 3.x?
Yes, it's possible. Here's a blog post detailing a simple way:https://nedbatchelder.com/blog/202209/making_a_coverage_badge.html
I've set up coverage.py in my GitHub actions to generate a code coverage report. It displays the report if I go to each action, how do I store the report on my repository and display the code coverage percentage as a badge as well.This is my build.yml file with the code coverage:name: Build on: push: branches: [...
GitHub, how to add store python code coverage report(using coverage.py) in actions and add badge to repo?
At the moment, jekyll-sitemap always encode the URLs and is not smart enough to detect that the URL already contains encoded text, which is causing it to encode the % character (hence the %25). You can open an issue on the jekyll-sitemap repository, and see if there are any plans to improve this story. However, if tha...
One of the urls for my page is: http://blog.theofekfoundation.org/general%20computer%20programming/2015/12/30/2d-array-copy-speeds.html (note the %20s) While the jekyll sitemap entry is: <loc> http://blog.theofekfoundation.org/general%2520computer%2520programming/2015/12/30/2d-array-copy-speeds.html </loc> # N...
Github's jekyll sitemap generator giving wrong urls for spaces
You can reload the client browser ignoring the cache:window.location.reload(true)
Pretty new, and not sure how to phrase this. But when anyone accesses my website (basically a testing ground for crimes against JS, CSS, and HTML) the page stays the same even if they come back after I've updated it. This goes for design and files (.pdf, .py). I was wondering if there was a way to get a computer access...
Refreshing My Visitor's Cache
Found an easy way to load all the environment variables while perusing the Elastic Beanstalk support forums:. /opt/python/current/envTo view a variable:echo ${VAR_NAME}orprintenv VAR_NAME, which doesn't work before using the above command. (UNIX, get environment variable)Bonus:To simply view a list of the variables:pri...
I'm using a custom AMI for Elastic Beanstalk because of some large package requirements.When I SSH into the EC2 instance none of my environment variables (specified in the Elastic Beanstalk web console settings) are available to my app.My app in production can access the variables just fine, but I cannot do so in the c...
Elastic Beanstalk custom AMI can't see environment variables
You can replacenamewithgenerateName, which adds a random suffix. Your template will look like this:apiVersion: v1 kind: Pod metadata: generateName: utilitypod- namespace: blah-dev labels: purpose: utility-pod spec: containers: - name: utilitypod image: blahblah/utilitypod:latest command: [ "...
I have a template that is basically an utility container for running kubectl inside a pod.What I want to do, is to be able to have multiple deployments of that same template, with different names, as in "utilitypod-randomID".Is there a way to do that, via kubectl and some shell scripting, or something similar?The curre...
Add random string on Kubernetes pod deployment name
2 The error is in the stacktrace: TabError: inconsistent use of tabs and spaces in indentation This happens when someone uses tabs and spaces interchangeably for indentation in a script. Quite frustrating I'd suggest opening that file in the text editor of your choice and ...
Hi I downloaded a cool github to run in jupyter notebook. however I need to import this "non standard library" by the author downloaded the files I put the file in the same folder, made sure that my notebook is pointing there. type "import indicators" in the notebook (by the way its a file called indicators.py in h...
python import a non standard library
The problem in your code is that you can't store the memory address of a local variable (local to a function, for example) in a globlar variable:RectInvoice rect(vect,im,x, y, w ,h); this->rectInvoiceVector.push_back(&rect);There,&rectis a temporary address (stored in the function's activation registry) and will be des...
I use below code on eclipse and I get an error terminate "called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc".I have RectInvoice class and Invoice class.class Invoice { public: //...... other functions..... private: string name; Mat im; int width; int height; vector<RectI...
C++ error : terminate called after throwing an instance of 'std::bad_alloc'
You don't need any special kernel code in order to accomplish this. All you need is for user-space to call munmap() system call on the page that you want to unmap. Another option is to call do_munmap() directly from kernel. Look at the implementation of munmap() system call.
I use vm_insert_page to insert a page to a userspace VMA, now I want to remove that page from that VMA. But I don't want the whole VMA got unmapped, just that exact page range only. Which kernel function should I call?
How to un-insert pages inserted into a vma with vm_insert_page?
You are right there is alongdicussion whyincludeis not supported by github.You can achieve your goal with doctoolChain and pandoc(https://pandoc.org/). Following steps are required:configure yourdocDir/Config.groovyinputFiles should have docbook definedinputFiles = [[file: 'yourfile', formats['docbook']]]run the doctoo...
GitHub supports asciidoc readme files, but it looks like "include" is not supported. I want to use doctoolchain which can render and export to html and pdf (and maybe into other formats). This tool works great.I could use raw.githack.com to show the generated html file from the GitHub repository.But I think it would be...
asciidoc, doctoolchain, target github readme.adoc - how to export asciidoc file containing includes into ONE file without include?
The only way you could create a repository on github directly from your computer, without having to create it with their website first, would be to create a remote branch directly from git on your system. This is possible on some git installation, but not on Github. However, Github provides an API that allows to creat...
I love github and RStudio for workflow. Recently, I've created a project template that makes directories and scripts etc. and would like to create locally and push to github. In the past I created a repo for a project via https://github.com/ used version control in RStudio to create the local repo and then dump all ...
Repo from RStudio to Github
A Representation Valid As Both YAMLand JSONConsider the following, which any valid YAML parser will accept:{"phases": {"install": ["bash build.sh", "cd $DIR"]}}Updating This Withjqdir=/foo/bar/baz ## this can be anything jq --arg dir "$dir" ' .phases.install = [ (.phases.install | map(sub("[$]DIR"; ($dir | @sh))))] ' ...
I am trying to run shell script from yml file and insert variables generated from shell script onto yml file ..which I am not able to . here is yml file version: 0.2phases: install: - bash build.sh - cd $DIRthis is what build script has#!/bin/bash directory=$(git log -1 --pretty=%B | awk '{print $1;}') ...
sending variables from .sh file to .yml
According to thedocumentation:The WORKDIR instruction sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile. If the WORKDIR doesn’t exist, it will be created even if it’s not used in any subsequent Dockerfile instruction.Also, in theDocker best practicesit r...
I'm learning Docker. For many times I've seen thatDockerfilehasWORKDIRcommand:FROM node:latest RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY package.json /usr/src/app/ RUN npm install COPY . /usr/src/app EXPOSE 3000 CMD [ “npm”, “start” ]Can't I just omitWORKDIRandCopyand just have myDockerfileat the root of my p...
What is the point of WORKDIR on Dockerfile?
You can use a pre-commit hook to prevent large commits. E.g. to check the diff's number of lines, save the following as [REPO PATH]/.git/hooks/pre-commit and make it executable (e.g. chmod +x on linux): #!/usr/bin/env bash [[ $(git diff --cached | wc -l) > 300 ]] && { echo "Commit too long"; exit 1; } or check file s...
At our company code reviews are done in Github compare view by adding comments. Of course you can use difftool or someting. But I'd like to know if there is a way to automatically warn / split a commit when it exceeds the Github limits?
Is it possible to automatically split a commit for Github compare view?
There are five different ways you can express the chart you want to install:By chart reference:helm install stable/mariadbBy path to a packaged chart:helm install ./nginx-1.2.3.tgzBy path to an unpacked chart directory:helm install ./nginxBy absolute URL:helm install https://example.com/charts/nginx-1.2.3.tgzBy chart r...
I am trying to deploy service using helm chart on kubernetes cluster. It is throwing error as"Error: Non-absolute URLs should be in form of repo_name/path_to_chart, got: guestbook"Here is the guestbook service that i am deployinghttps://github.com/phcollignon/helm/tree/master/lab5_helm_chart_version1/provider.helm v2...
Unable to deploy services using helm chart on Kubernetes cluster
To me, the best practice when dealing with a project with more than one developer, is to use gitflow branching model. First, the master branch will now only be used to keep track of the releases of your app, major, minor or patch versions, following the Semantic Versionning. The develop branch will be the core of you...
I'm looking for the best practice, forking vs branching on GitHub. I've read this Forking vs. Branching in GitHub, but it's not relevant. Our team of 5 people are working on the same repository, and we would like to avoid merging problems, conflicts or regression in the code. The goal is for the 5 persons to work on ...
Best practices on GitHub repos, to Fork or create a New Branch
-1 UDP connections from clients often use well defined destination port numbers on the server while client's side port numbers are usually ephemeral and that's perfectly fine. It is the sender/initiating side who specifies destination port on the destination machine. If the...
I am having Nginx server set up as a UDP load balancer. I have a couple of backend servers that are handling the UDP traffic and for each packet the backend server receives, it replies with ACK. I am able to test it and get the response back when sending the request to the backend server directly, but when sending the...
How to handle return traffic from backend servers using nginx as UDP loadbalancer
use thiswget -q -O - http://example.com/backup >/dev/null 2>&1instead ofwget -q -O /dev/null "http://example.com/backup" > /dev/null 2>&1ShareFollowansweredJan 4, 2018 at 7:31Saeed AwanSaeed Awan43666 silver badges88 bronze badges2can we also use likeGET https://example.com/billing/?ng=console/0982995697/??–user2561540...
i need to create cron job to run URL from Cpanel every minutewhen i open the link from browser it's auto generate backup for databasei choose the common setting ( once per minute ) * * * * *and this is the command i use but no one workedGET http://example.com/backup > /dev/nullwget http://example.com/backupcurl -s http...
cron job to run url cpanel
GLUT is just a library which manages platform-specific window and GL context creation. The function you pass toglutDisplayFuncis just called by GLUT at the appropriate time and context for the platform you're running on; it is not executed on the GPU.It is not possible to have code that you've compiled in the normal fa...
I've got a pretty old ATI HD 3400 video card , which have no support of OpenCL , so i'm wondering if i can actually play around with OpenGL libraries provided by ATI catalyst driver ?If my algorithm is running inglutDisplayFunc ( displayFunc ), that is indisplayFun (), is it actually costing CPU power or GPU power ?
Will i use the power of GPU when using a OpenGL program?
The RFCs are definitive on what behavior is appropriate. If the RFC says that aDateheader can be used withIf-Modified-Since, then it can be.Consider persuading GitHub to invalidate caches when a scope is expanded. If a response was served on 2017-03-01, and a token’s scope was expanded on 2017-04-01, then the resource ...
I am using a Jenkins plugin that uses the OkHttp library for handling integration with Github API.Github's /repos/:owner/:repo endpoint returns error 404 when the OkHttp tries to requesting the resource with a token that is not allowed to access the resource. When the token's scope is expanded to allow it to access the...
Why does OkHttp treat the Date header the same as it treats the Last-Modified header when setting the If-Modified-Since header?