Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
To get all the data (and also newly added branches) from remote repository which you don't have yet use the command git fetch.
|
I have cloned a Github repository with the "--recursive" qualifier. I then checked out the latest branch in that repository.
Later, the author of the repository added a new branch. When I attempted to checkout that new branch with git checkout branch-name, git reported that the branch-name was unknown.
Is there a wa... | How do I checkout a branch added after a Github clone? |
Primarily because Unicorn was not designed to solve the suite of problems involved in serving files to clients:
Unicorn is a server for fast clients and Unix. What is a fast client?
A fast client is another application or server that can interface with
the Rack server quickly, without much latency. Unicorn is not... |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog... | Why is Unicorn/Gunicorn slow to serve static content? [closed] |
Yeah, the config file format and the service constructors changed slightly in version 1.5. They mentioned this as a backwards-incompatible change in the release notes.http://aws.amazon.com/releasenotes/PHP/3719565440874916 | I am trying to use the latest SDK for PHP (v. 1.5.0). I am trying to send an email with AmazonSES. I have successully sent emails with the python scripts, so I know that my crendentials and other settings are okay.I have copied the sample code however, it does not work. When calling AmazonSES, I get an error saying:Cat... | How to set the credentials to send an email with AmazonSES using the PHP SDK from aws |
Processes take time to react. They may be no logs right after starting a process - it has not written anythingyet. Wait a bit.ShareFollowansweredDec 15, 2021 at 16:35KamilCukKamilCuk129k88 gold badges6464 silver badges119119 bronze badgesAdd a comment| | I'm experimenting a weird behaviour of Docker in a bash script.
Let's see these two examples:logs-are-showed() {
docker rm -f mybash &>/dev/null
docker run -it --rm -d --name mybash bash -c "echo hello; tail -f /dev/null"
docker logs mybash
}
# usage:
# $ localtunnel 8080
localtunnel() {
docker rm ... | docker logs within a bash script doesn't work |
Laravel does not support cache tags in the file driver.
It clearly states it in the docs:
Note: Cache tags are not supported when using the file or database cache drivers.
|
Will laravel 5 support cache tags on file drivers ?
I am trying to you cache tags but i am getting following error
call_user_func_array() expects parameter 1 to be a valid callback,
class 'Illuminate\Cache\FileStore' does not have a method 'tags'
I have tried in this way
Cache::tags('family')->put('wife','Umme M... | Laravel 5 cache tags on file drivers |
6
It depends. You could limit (e.g. with setrlimit(2) on Linux) a process to avoid using all the resources, and there are good reasons to put such limits (e.g. avoid a buggy program to eat all resources, to leave some to other more important processes).
Hence, a well behave... |
Assuming there are sufficient virtual memory address in the process.
Considering 64 bit system has almost infinite virtual address, and if there are still available phyiscal memory space in the OS memory pool, can we assume there is zero chance of failure of memory allocation?
| On modern 64bit system, what could cause memory allocation fails? |
So, at the end I figured out it's up to Jenkins pipeline, which was causing problems. At the end, I had to modify steps in my Jenkinsfile in order for SonarQube to detect my branches.steps {
script {
slackSend message:"Starting Project Name Full Test Build Version ${VERSION} - ${env.JOB_NAME} ${env.BUILD_NU... | I went through the following documentation:https://docs.sonarqube.org/latest/branches/overview/, but I am not able to make SonarQube detect other branches than master branch (I am using a developer edition). I've passed the following parameter as a variable to pom.xml properties:<sonar.branch.name>${git.branch}</sonar.... | How to make SonarQube detect non-master branches? |
In any case, I need to have SSL setup on another port / ip address which I presently do not have. So, for the time being, I can only have 1 certificate. | I have several virtualhosts configured on a single Jetty instance. I would like to also have unique SSL Certificates for each virtualhost.Can I do this?My understanding is that the call to add a connector can only be made inside a Server configuration meaning that there is only 1 SSL certificate that can be used.Walte... | Jetty 6 - VirtualHosts - SSL Certificates |
This is not possible. It would require Github to allow user-submitted scripts to run on their servers, which poses a considerable security risk.
If you want actions triggered upon push-to-Github, you will need to set up your own server which gets notified via a Webhook, and then (if necessary) pulls from Github and ex... |
I'd like to add a post receive server side hook to a private repo in github.com. I am aware of the "webhooks" feature but I'd like to add a powershell script as a part of the post receive hook. I don't see a way to do it on github's website.
| Adding a post receive hook in github |
I have achieved this using
saml2aws login --force
Found here
|
I have installed
saml2aws & awscli, to connect with one of the OKTA system.
I have made few changes in the config and want to reload new, but struggling with how to logout from session
| How to logout from Saml2aws cli session or do force login |
My testing shows that messages sent to an SQS queue which a Lambda function is using as a trigger will immediately trigger the Lambda function, even if a Delay setting is provided.
See: amazon sqs - How do I return a message back to SQS from lambda trigger - Stack Overflow
|
I'm trying send individual SQS messages with a delay. Using https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-send-message-with-timer.html to test message delays, I'm not seeing any delay.
If I set a delay on the queue, that delay is honoured, however not for individual messages. I'm doi... | SQS Message Delay Not Working As Expected |
There are multiple ways to do the things dynamically. It depends on your project environment that, which way you want to use.First is JRebel tool, which is used to change the config files without rebooting server.http://zeroturnaround.com/software/jrebel/You can manually implement the listeners which will listen for th... | I would like to know if it is possible to have a more dynamic way to handle with client certs than edit tomcat-users.xml ? and how to do it ?A database way would be much better in order add new certs or revoke since now i have to restart the server everytime I need to add a new one in tomcat-users.xml.best regards | Database based ssl client authentication in Tomcat |
For some odd reason my request is working now.Request i send:01 01 01 00 00 01 00 00 00 00 00 01". domain2dns($domainname) ."00 00 ff 00 01 00 00 29 10 00 00 00 00 00 00 00explanation of theEDNSpartName: 00Type: 00 29UDP Payload size: 10 00Higher bits in extended RCODE:00EDNS0 version: 00Z: 00 00Data Lenght: 00 00NAME ... | When I do a request to a nameserver which has dnssec the response is sometimes incompletei looked around on the web and found some information regarding the issue2.3.4 Size limitshttps://www.rfc-editor.org/rfc/rfc1035It saysUDP messages 512 octets or lessTo receive a bigger response I needEDNS0so i can receive a max of... | nameserver response not all data returned |
I thinkcachegrind, one of the tools in the valgrind suite, might be what you're looking for. I haven't used it myself, but from a glance at that page, it produces an output filecachegrind.out.<pid>with human-readable information about cache accesses. Not sure if it will be as detailed as you need (maybe it's just a s... | I wan`t to compare cache algorithms like LRU, SLRU, LFU etc on real data.That`s why I need some method to generate real-like data to compare cache algorithms or to get this data from some application. | Where get data to compare cache algorithms |
You probably want to add theQSAflag to your rewrite rules, which will append any addiitonal bits on the query string to the rewritten request, e.g.RewriteRule magic here [PT,QSA] | What's the easiest way to convert these requests:http://www.example.com/en/
http://www.example.com/en/index.phpTo:http://www.example.com/index.php?language_id=enThere's various PHP files, so the rule would also need to maphttp://www.example.com/en/anyfile.phpTo:http://www.example.com/anyfile.php?language_id=enThe langu... | Using mod_rewrite to convert folders to querystring |
If your goal is to give them access to clone a repository but not otherwise interact with it, then you can use read-only deploy keys to allow them to clone and fetch the repository via SSH.Otherwise, if you need more access, then each user will need to have their own GitHub account. It's intentional that users need th... | I want to know if there is a way to give access to aprivaterepository to people who don't have a GitHub account. Like a link, app or integrating the GH account to some platform like Teams or Slack. The people I intend to share code with share a Microsoft Teams team with me and a corporation mail[email protected]. Secur... | Give repository access to non github users |
21
EDIT : improved answer thanks to @chris-pollard and @adamkgray answers
This works for me, you can specify multiple SSL certificates for an HTTPS listener.
For HTTPS, you are not allowed to specify directly multiple certificates on the AWS::ElasticLoadBalancingV2::Liste... |
Hi I have problem setting multiple certificates for ALB listener.
Here is fragment of my CF template:
DiscoveryListenerHTTPS:
Type: AWS::ElasticLoadBalancingV2::Listener
DependsOn:
- DiscoveryLoadBalancer
- DiscoveryLoadBalancerTargetGroup
Properties:
Certificates:
- CertificateA... | How to set multiple certificates for AWS::ElasticLoadBalancingV2::Listener |
For this kind of job, you should use theLaravel Task Sheduling. This gives the option to execute a script every hour (or any other interval you choose).$schedule->call(function () {
// Your code
})->hourly();However, you need to be able to add a cron job on the server where your website is hosted. | I read here :https://laravel.com/docs/5.3/queues#running-the-queue-workerI wanted to create a cron job using the tutorial, but I am confused how to implement itMy case is like this :For example, I have table order. Table order has fields like this :The status, int (10)checkout_at, datetimecanceled_at, datetimeI only me... | How can I do cron job with Queue Worker? (laravel 5.3) |
Just add below lines to your build.gradle file.dexOptions {
javaMaxHeapSize "4g"
}I hope this will help you. | I'm using a very good desktop machine with very good configuration 8 GB ram and a lot of free space too.while running the app in my device android studio is giving me this error all the time,Error:java.lang.OutOfMemoryError: GC overhead limit exceeded
Error:Execution failed for task ':app:transformClassesWithDexForDeb... | Error:java.lang.OutOfMemoryError: GC overhead limit exceeded Android Studio |
I would probably use the same approach as Leakcanary did. You can read about ithere.In short, they are creating weak references between objects. After GC they are checking if the reference is being cleared. If not they are dumping heap, and analyzing dump. Analyzer computes the shortest strong reference path to the GC... | I know there are many discussions about memory leak/ handling memory leaks in android apps, but can it handled dynamically.I just got this question in one of my interview. The question wasHow to detect memory leak when application is running on user's device and save the data before crash(OutOfMemoryError) .I can guess... | Handle memory leak dynamically |
To kill nginx process.If you are sure nginx is actually running, You just need to killnginx.exeprocess and re-runapache.OpenRun(Window key + R) ORcommend prompt(cmd.exe) and Paste below command,taskkill /F /IM nginx.exeTo find which process is holding port 80.Here isnetstatcommand & output to find which process is hold... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionI've run nginx once and now I cannot get rid of it. when I run apache on my server localhost still point to that welcome to n... | Nginx wont leave! how to remove it [closed] |
1
Every online physical backup contains a text file backup_label that contains the log sequence number of the checkpoint at the start of the backup.
There is also a file with a name ending in .backup created in the WAL archive that contains this information.
Since 9.4 the v... |
In SQL Server, there is a msdb..backupset table which keep tracks of which backup it take. How to capture which archivelog is archived and what is the starting point of this backup?
| How to track postgres archive log files |
using (var locker = new PurchaseLocker(item.Id))
{
// order stuff like counting current amount of orders, buyer validity etc
}
// ...
public sealed class PurchaseLocker : IDisposable
{
private static readonly object _bigLock = new object();
private static readonly Dictionary<Guid, LockToken> _lockMap = n... |
I have a web based order system for items.
Items are very time limited, on sale for Y hours
Each item allow only X orders
To keep the orders per item <= X I'm using this locking mechanism.
private static Dictionary<Guid, Object> PurchaseLockDictionary = null;
private static object GetLock(Guid itemId)
{
... | Lock dictionary keeps growing, indeas on how to clean up? |
There is a resource nameddaemonsetthat spawn at least a pod per node, on a new node added the pod will be spawn on it automatically.About update, change the image in the resource daemonset and all pods will be updated. | I am new to Kubernetes and been looking at it as an option for a specific solution.We have a scenario where we have 100+ physical machines running RHEL distributed across different locations.There is a plan to deploy and manage docker based containers on each of these machines. Let's group these containers as Pod A.Now... | Using Kubernetes to manage deployment on specific and targeted nodes |
An alternative to specifying all mesh seed IP addresses is to use the asinfo tip command.
Please see:
http://www.aerospike.com/docs/reference/info/#tip
the tip command
asinfo -v 'tip:host=172.16.121.138;port=3002'
The above command could be added to a script or orchestration tool with correct ips.
You may also find a... |
I would like to run Aerospike cluster on Docker containers managed by Kubernetes on CoreOS on Google Compute Engine (GCE). But since GCE does not permit multicast, I have to use Mesh heartbeat as described here, which has to be set up by specifying all node's IP addresses and ports; it seems so inflexible to me.
Is th... | Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE? |
Guessing it's just a different, better implementation and, if the implementation is different, you shouldn't expect identical results.
In general, efficiently implementing an algorithm on a GPU is hard and getting maximum performance requires architecture-specific implementations. Therefore, it wouldn't be surprising ... |
I use this notebook from Kaggle to run LSTM neural network.
I had started training of neural network and I saw that it is too slow. It is almost three times slower than CPU training.
CPU perfomance: 8 min per epoch;
GPU perfomance: 26 min per epoch.
After this I decided to find answer in this question on Stackoverfl... | Why is Keras LSTM on CPU three times faster than GPU? |
Everytime you use a locking primitive such aslockorMonitor.Enterin the .NET platform, a sync block structure is initialized against the object instance to be locked. As stated in the definition, these blocks can hold more information such as the object's hash code and COM interop information.Since these blocks are limi... | We have a Windows Forms application that uses a (third party) ActiveX control, and are noticing in the .NET performance objects under ".NET CLR Memory" that the number of "Sync Blocks" in use is constantly increasing (along with increasing memory usage), even though our application is sitting there idle.The built-in ex... | What is a "Sync Block" and tips for reducing the count |
Finally, I got my correct alert message template.Pod CPU high alertsum(rate(container_cpu_user_seconds_total{container!="pod",namespace="default",container!=""}[5m])) by (pod) * 1024alert condition imageAdd Summary into anntationsThe host **{{ index $labels "pod" }}** has exceeded 500Mi CPU usage for the last 5 minutes... | I created the pod_down alert rule and this is my query:sum by(namespace,pod) (changes(kube_pod_status_ready{condition="true"}[5m]))1. alert rule query2. alert rule classic conditiion3. alert rule message templateI want to pass pod_name into the alert message template.pod= nginx-3yh536hs-kd pod was downenvironment= devn... | How to pass pod_name in pod_down grafana alert message |
6
I found out a way to do requests in AWS Lambda.
Courtesy of https://stackoverflow.com/a/58994120/129202 - this answer has a couple of other solutions too, that could be worth checking out. The below one worked for me.
import urllib.request
import json
res = urllib.requ... |
I want to use AWS lambda to make a cronjob-style HTTP request. Unfortunately I don't know Python.
I found they had a "Canary" function which seems to be similar to what I want. How do I simplify this to simply make the HTTP request? I just need to trigger a PHP file.
from __future__ import print_function
from datetim... | Lambda function to make simple HTTP request |
According to the documentation, you can create up to 30 databases per RDS instances.http://aws.amazon.com/rds/faqs/#2We would need more details to debug your particular issue. (Parameters used to create the RDS instance, exact error message etc ) | I created an AWS RDS MSSQL instance using Management Console but I cannot create a new database. Creating a table works fine though.Did I miss anything in the configuration? Do I need to execute a special schema? | Amazon AWS RDS Create database permission denied |
Your query returns how many alerts are firing now, not how many times each alert was fired.I've found this query to (mostly) work with Prometheus 2.4.0 and later:changes(ALERTS_FOR_STATE[24h])It will return the number of times each alert went from "pending" to "firing" during the last 24 hours, meaning it will only wor... | I have Prometheus with some alerting rules defined and I want to have statistic regarding the number of alerts fired by Prometheus.I tried to count how many time an alert is fired with grafana but it doesn't work:SUM(ALERTS{alertname="XXX", alertstate="firing"})There is a way to count how many times an alert is fired? | Count alerts fired by prometheus |
I did finally find the solution thanks to Cooshals kind help,
we have to ssh into the virtualbox-machine and make the file there, and then point it out right from the docker-compose.yml, in this case I did like this:
docker-machine ssh default
touch /var/acme.json
chmod 600 /var/acme.json
Then in my docker-compose:
v... |
Yes,
I get this when I try to run traefik with https. Problem is I mount the dir on my Win7 machine but I cant chmod the file.
The mount is working but file permissions are off.
looks like this:
volumes
- d:/docker/traefikcompose/acme/acme.json:/etc/traefik/acme/acme.json:rw
traefik | time="2018-09-04T12:57:11... | traefik permissions 777 for acme.json are too open, please use 600 |
1
You can use this API to list the builds.
https://cloud.docker.com/v2/repositories/{account}/{app}/buildhistory/
Then append the build_code of a build to see the full detail.
https://cloud.docker.com/v2/repositories/{account}/{app}/buildhistory/{build_code}
I'm not aware... |
I am trying to fetch data from DockerHub from this URL using the API:
https://cloud.docker.com/u/{account}/repository/docker/{account}/{app}/builds
However, the equivalent API URL is invalid. It returns 404:
https://cloud.docker.com/v2/repositories/{account}/{app}/builds/
On the other hand, the following URL is a va... | DockerHub API: List ongoing builds |
Kubernetes will schedule the new pods on any node with sufficient resources. So one of the newly created pods could end up on a node were one is already running, if the node has enough resources left.You can use an anti affinity to prevent pods from scheduling on the same node as a pod from the same deployment, e.g. by... | I tried to find a clear answer to this, and I'm sure it's in the kubernetes documentation somewhere but I couldn't find it.If I have 4 nodes in my cluster, and am running a compute intensive pod which presumably uses up all/most of the resources on a single node, and I scale that pod to 4 replicas- will Kubernetes put ... | When scaling a pod, will Kubernetes start new pods on more available nodes? |
You can try using theHttpResponse.Cache propertyif that would help:Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetValidUntilExpires(false);
Response.Cache.VaryByParams["Category"] = true;
if (Response.Cache.VaryByParams["Category"])
{
... | What's the best way to handle a user going back to a page that had cached items in an asp.net app? Is there a good way to capture the back button (event?) and handle the cache that way? | What's the best way to deal with cache and the browser back button? |
CreateEndpointsthat will forward traffic to your desire external IP address (your local machine). You can directly connect usingEndpointsbut according toGoole Cloud best practice(doc) is to access it through aServiceCreate yourEndpointskind: Endpoints
apiVersion: v1
metadata:
name: local-ip
subsets:
- addresses:
... | I have a service (/deployment/pod) running in my Minikube (installed on my Mac) that needs to call an external http service that runs directly on my Mac (i.e. outside Minikube). The domain name of that external service is defined into my Mac /etc/hosts file. Yet, my service within Minikube cannot call that external ser... | Calling an external service from within Minikube |
i've went ahead and just used regular expressions for this. some registrars don't even provide expiration dates in their whois. | Here is my current code:function get_cmd ()
{
if (file_exists('/usr/local/bin/whois'))
$cmd = '/usr/local/bin/whois';
elseif (file_exists('/usr/bin/whois'))
$cmd = '/usr/bin/whois';
elseif (file_exists('/bin/whois'))
$cmd = '/bin/whois';
else
die('whois shell command does... | Get domain name expiration date via PHP |
A patch can be reversed withgit revert.See alsoRe-doing a reverted merge in Git.ShareFolloweditedMay 23, 2017 at 12:28CommunityBot111 silver badgeansweredNov 8, 2012 at 19:16opqdonutopqdonut5,1592323 silver badges2525 bronze badges2I figured out that I can do that - my understanding of github was a little too rudimenta... | Situation: We have a couple of github pull requests that have been merged that have code that needs to be rolled back. Interspersed with these merges are others that need to be preserved. I know we can roll back to prior to the first bad merge and cherry pick changes after that, but I'm hoping we can avoid that hassl... | git/github create reverse patch from merged pull request |
DNS is only for associating domain names with an IP address. You cannot do aredirectionwith it.You will have to handle the redirection on the web server side. You just need to throw an HTTP301 Permanently movedto let your visitors know the new address whether with an.htaccessfile if you are using apache, or a simple PH... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed10 years ago.Improve this questionI am looking for a way to redirect a domain to its subdomain via DNS a / cname records.Is it possible to have these examples ... | DNS Redirect domain to subdomain [closed] |
Unfortunately, SQL Server has never supported this - and still doesn't :-(There isno wayyou can create a backup in a newer version and restore it in a previous version - and this goes from SQL Server 4.2 all the way through 2008 R2.All you can do is either create scripts and run them on the target server, or use tools ... | I have a sql server 2008 db, I want to restore its backup to a 2005 version. Is there any way for this work?Note: I can't make a script from my db and run it. | How can I get a SQL Server 2005 compatible backup from SQL Server 2008 database? |
From 5.3.4/7
When the value of the expression in a direct-new-declarator is zero, the allocation function is called to allocate an array with no elements.
From 3.7.3.1/2
The effect of dereferencing a pointer returned as a request for zero size is undefined.
Also
Even if the size of the space requested [by new] is... |
A simple test app:
cout << new int[0] << endl;
outputs:
0x876c0b8
So it looks like it works. What does the standard say about this? Is it always legal to "allocate" empty block of memory?
| Dynamically allocating an array of size 0 [duplicate] |
Heroku uses an ephemeral filesystem. Local filesystem is only accessible to a single dyno, and once the dyno is stopped, restarted, or moved, all files on the local filesystem are destroyed.In fact, I could not even see the uploads folder though heroku console even though I was able to download the file from the contro... | I deployed an app in Heroku using Github, and the code works fine.I have a piece of code which createsuploadsdirectory in the root and puts in all uploaded files. I was able to retrieve the files without any trouble after uploading. However after an hour or so (perhaps after the dyno sleeps and restarts) the files were... | Heroku syncing with Git automatically resulting in loss of files |
When it comes to things like shared preferences, they typically should be preserved between debugging sessions (assuming you are not manually deleting the app from the emulator/device).Check Visual Studio's setting to ensure that it istryingto preserve data/cache directories:Preserve data/cache between application depl... | I noticed that re-installing my application (building it again and again in debug mode) sometimes clears my SP and sometimes not.
I thought that adding android:allowBackup="true" in the application tab in the Manifest.xml file might restore it anytime I re-build the app.<application
android:allowBackup="true"
.
.
.
>... | Why re-installing an application sometimes clears SP although app backup is allowed? |
Can I still use STL containers and force them to use the heap I provide?
STL containers accept custom allocators:
http://en.wikipedia.org/wiki/Allocator_(C%2B%2B)#Custom_allocators
Here is a thread with links to samples:
Compelling examples of custom C++ allocators?
Is it beneficial in terms of performance ... ?
Y... |
Currently, I have all my objects managing their own memory, allocating with new in their constructors typically, and using delete in their destructors. This works for now, but the number of classes I have that use arbitrary amounts of memory is growing. The fact that new is essentially a "request" also bothers me, s... | Should I centralize all calls to new/delete to a single class? |
Just add anotherRewriteCondusing%{HTTP_HOST}variable:RewriteCond %{HTTP_HOST} !^subdomain\. [NC]
RewriteCond %{REQUEST_METHOD} =POST
RewriteCond %{HTTP:Content-Type} !^(application/x-www-form-urlencoded|multipart/form-data.*(boundary.*)?)$ [NC]
RewriteRule .* - [F,NS,L]ShareFollowansweredMar 11, 2015 at 10:31anubhavaan... | I have a .htaccess in my public_html folder which only allows specific content types, that part looks like this:# BAD Content Type ^
# Denies any POST request with a content type other than application/x-www-form-urlencoded|multipart/form-data
RewriteCond %{REQUEST_METHOD} =POST
RewriteCond %{HTTP:Content-Type} !^(appl... | .htaccess allow all sorts of content types |
The pre-commit hook should give you the opportunity to do what you want.
See http://www.git-scm.com/book/en/Customizing-Git-Git-Hook. The example scripts contain good documentation.
|
Is there a way to configure Git to give me an alert before or after I commit locally? For example, after I commit (ideally before), I get some kind of output like "Did you double check settings.py?". Alternatively, can I script this using bash? I've been looking around, but I haven't found much on the topic.. Thanks i... | Git Confirm Before Commit |
To change the metadata of an existing Amazon S3 object, you need to copy the object to itself and provide the desired new metadata on the fly, see copyObject():
By default, all object metadata for the source object are copied to
the new destination object, unless new object metadata in the
specified CopyObjectReq... |
I'm updating existing objects in an Amazon S3 bucket to set some metadata. I'd like to set the HTTP Expires header for each object to better handle HTTP/1.0 clients.
We're using the AWS Java SDK, which allows for metadata changes to an object without re-uploading the object content. We do this using CopyObjectReques... | Set Expires header for an existing S3 object using AWS Java SDK |
It depends whether the original and the fork are public or private, according toGitHub's documentation:Deleting a private repository will delete all of its forks.Deleting a public repository will not delete its forks.More detailon this page:Deleting a private repositoryWhen you delete a private repository, all of its p... | I want to know what happens if the original repository is deleted when there are different forks. Do the forks stay on GitHub, or are the forks also deleted? | What happens to the forks when deleting the original repository? |
You should appeal to GitHub to add one. Your argument is sound. Stack Overflow demonstrates editors can be functional, non-intrusive and tasteful.Meanwhile, there might be a browser extension that does some of this.https://chrome.google.com/webstore/detail/cpojebknccclkjabfngjlcknonpmhhol | I like the fact that the github issue tracker supports Markdown. However, I find it relatively unpleasant to actually write Markdown in the github editor. It lacks many of the features of the Markdown editor on StackOverflow.E.g., it lacks:a button to indent multiple lines of code by four spacesa button to add quote to... | How to efficiently edit Markdown in the github issue tracker? |
Since your question seems to be open ended, I'll answer it as best as I could. If you are thinking of a more specific kind of data, do add a concrete example.One way is to simple use git command line tool.github_repo = example_repo
file_to_sync = 'some_path/some_file'
!git clone https://github.com/user/$github_repo
!cp... | Is there a way to upload data from a local file storage in GoogleColab into GitHub or a Kaggle profile account? | Uploading data from GoogleColab into GitHub or Kaggle |
If you use thedotnetcommand to manage your solution you can use this piece of code:Copy the solution and all project files to theWORKDIRList projects in the solution withdotnet sln listIterate the list of projects and move the respective*projfiles into newly created directories.COPY *.sln ./
COPY */*/*.*proj ./
RUN dot... | Given a file structure like this:project root
|-- X.sln
|-- src
| |-- Foo
| | |-- Foo.fsproj
| | |-- Foo.fs
| |-- Bar
| |-- Bar.fsproj
| |-- Bar.fs
|-- test
|-- Baz
|-- Baz.fsprojI'd like to first add all.fsprojfiles to my Docker image, then run a command, then add the r... | Docker COPY with folder wildcards |
It is intended to prevent client-side (or reverse proxy) caching.
Since the cache will be keyed on the exact request, by adding a random element to the request, the exact request URL should never be seen twice; so it won't be used more than once, and an intelligent cache won't bother keeping around something that's ne... |
How exactly does adding a random number to the end of an AJAX server call prevent the database server or browser (not entirely sure which one is intended) from caching? why does this work?
| How does adding a random number to the end of an AJAX server request prevent caching? |
The Kubernetes API supports multiple forms ofauthentication: http basic auth, bearer token, client certificates. When launching the apiserver, you can enable / disable each of these authentication methods with command line flags.You should also be running the apiserver where the insecure port is only accessible to loca... | I'm a bit disturbed on how to secure the kubernetes API for call and access, also Kube-ui is available to everybody.
How can I set credential to secure all the services ?Thank you | Secure Kubernetes API |
Just have multiple error_log and access_log entries inside your blockerror_log syslog:server=localhost:5447,facility=local7,tag=nginx_client,severity=error;
access_log syslog:server=localhost:5447,facility=local7,tag=nginx_client,severity=info;
error_log stderr;
access_log /dev/stdout;Should do the trick | By default, mynginxserver is plotting logs tostdoutandstderr.I want to forward logs to my syslog server, and I'm doing so successfully, fromnginx.conf:server {
...
error_log syslog:server=localhost:5447,facility=local7,tag=nginx_client,severity=error;
access_log syslog:server=localhost:5447,facility=local7,tag=ng... | Send nginx logs to both syslog and stdout/stderr |
While github is perfect for collaborating on the sources, it is not for managing the build and its artifacts. You may eventually want to look at companies like Cloudbees, which provide hosted build and integration environments, that target exactly the workflow parts beyond the source management. But those are mostly t... |
My code is compiled by multiple people (multiple machines) multiple times per day. I would like to have each compile automatically uploaded to our Github account each time someone completes a compile. Basically, these compiled zips get sent to actual hardware via either flash drive or email or dropbox (any number of w... | Automatically store each compile on github? |
To show all files in your home folder, usels -la.To copy files form local workstation to instance, yourscpcommand ismissing a destination folder. The following should overcome the issue (note:.at the end):scp -i "[pem]" -r /[directory] ec2-user@ec2-[ip].amazonaws.com:.Also since you have/[directory]this will look for t... | I am connected to my ec2 instance and I am trying to see all of the files/directories on the instance. I am usinglsbut nothing is showing up.How do I see files and directories in an EC2 instance? | How do I see files and directories in an EC2 instance? |
1
The easiest way would be to keep the commits as-is, but register all your used email addresses to your new account (https://github.com/settings/emails)
This way, all your old commits will be linked to your new account.
Actually changing the old commits is not so easy. You... |
I have multiple GitHub accounts including one that is tied to my real name. I'd like to consolidate them into a single github account and transfer all my repos to this new account while keeping their histories intact, except replacing the commit author (and all info tied to my old account) with the new account's infor... | How to transfer git repo to a different account while keeping commits history but changing the private information? |
You can't run a plain python script like yourscraper.pydirectly from the GAE cron, at least not with its current content.You need a basic GAE app skeleton in there, with a handler for the cron job's URL. Remember that the GAE cron job is simply a GET request for that URL, which your app needs to handle. That handler is... | I'm trying to use Google cloud's cron to run my Python script at a time interval. I followed instructions fromhttps://cloud.google.com/appengine/docs/standard/python/config/cronto set up everything and the task shows up in my Task Queue for cron jobs, but when I click run the status says failed. Nothing shows up in the... | Google cloud app.yaml cron.yaml for python script not working but no log |
Vainilla Spark is not able to do this (at the time of writing - Spark is evolving fast) .
There's a Spark-JobServer contributed by Ooyala that exactly fulfills your needs. It keeps a register with the jars for sequential job submission and provides additional facilities to cache RDDs by name. Note that on a Spark Clu... |
I've got an Apache Spark MLlib Java application that should be run on a cluster a lot of times with different input values. Is it possible to cache the application jar on the cluster and reuse it to reduce startup time, network load and coupling of components?
Does the used cluster manager make any difference?
If the ... | Is it possible to cache the application jar when running Apache Spark applications on a cluster? |
Can you trystop your website (not iis)try deleting the temporary filessecond option could be (risky)
1. kill asp.net worker process (this is the criminal locking out the files in temp folder)
2. try deleting the temp files.its difficult to recognize what process is actually locking out the files, if its running in a no... | I moved some code OUT of the App_Code folder and now I'm getting the classic conflict issue between the code I'm compiling in my project and the EXISTING temporary compiled assemblies in the temporary cache. I know I can just delete the temporary assemblies, but I this requires stopping IIS. I will need to do this in m... | Clear ASP.NET Temporary Assemblies Without Restarting IIS |
You can use thedatecommand to control whether or not to execute another script or command:# Tested using GNU coreutils date 8.30
/bin/sh -c "[ $(date -d +1day +%d) -eq 1 ] && echo 'It is the last day of the month!'"
# It is the last day of the month!You can use this logic and yourCronJobto run on the 28th-31st of each... | We have a requirement where we have to run our job automatically on the last day of the month using the cron scheduler in Kubernetes. For example, for March, it should run on March 31st at 6pm. For April, it should run on April 30th at 6pm. Any help is appreciated. Thanks. | Schedule CronJob for last day of the month using Kubernetes |
This will happen if you created your SSL Certificate on a different Region to your Elastic Beanstalk instance. An easy gotcha! | I am new to AWS and need help to select the AWS Certificate Manager provisioned Certificate from Elastic Beanstalk Loadbalancer usingAWS Console.Deployed my Java application on Linux instance using Elastic
Beanstalk and that worked fine with Http.Provisioned a new wildcard certificate using AWS Certificate Manager.Unde... | AWS Certificate Manager Certificate is not visible to AWS Beanstalk from Console |
You release it with autorelease
[NSString stringWithFormat:@"Data received: %@", [[[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding] autorelease]]
|
-(IBAction)registerUpdate:(id)sender {
HTTPRequest* request = [[HTTPRequest alloc] initWithUrl:@"http://www.yahoo.com" delegate:self];
[request doRequest];
}
The HTTPRequest makes an asynchronous request and calls the onHTTPResponse method in the current class.
My question is do I have to release request? My ... | Objective-c when to release objects |
2
For this version they didn't provide an executable for windows. If you check one minor version lower you find a .zip with an executable in it. If you need v12.8.4 you could write the people of the repository or just compile the code by yourself.
Share
Improve t... |
How to get the exe from https://github.com/tsenart/vegeta/releases in order to test in windows?
This says I could find the .exe in this link but I don't.
I am trying to load test the apis in windows, as a start.
I do no know Golang and this project is developed using Go.
I would appreciate any directions on how to go ... | How to get the executable from Github |
GpuMat is allocated in GPU memory. You can't modify it from CPU code. You can
Set all matrix pixels to the same value (setTo method).
Fill data on CPU using cv::Mat and then upload it to GpuMat.
Implement your own CUDA kernel and fill GpuMat in it.
|
I would like to know how can I modify a gpu::GpuMat. In fact I would like to know if it is possible to use a gpu::GpuMat like a cv::Mat.
I would like to do something like that:
cv::namedWindow("Result");
cv::Mat src_host = cv::imread("lena.jpg", CV_LOAD_IMAGE_GRAYSCALE);
cv::gpu::GpuMat dst, src;
src.u... | Using gpu::GpuMat in OpenCV C++ |
Generally this is symptom is always timeouts on the Enterprise NAT or stateful firewall translation table.Depending on the precise configuration of the Airtel Xstream or any Cisco hardware and the method you wish to resolve this:Increasing timeouts on the firewall to more reasonable amount of time is easy, but may not ... | The issue occurs only on the WiFi network. I am using Airtel Xstream router.The issue is when i connect using cisco anyconnect then the connection is successful and I am able to access my organization server.But after few minutes of inactivity(3-5 minutes), the VPN connection shows that it is connected but I am not abl... | Not able to connect to remote server even though Cisco Anyconnect shows connected |
I believe you are experiencing that because you have no EC2 user-data attachedI conducted an experiment in my AWS Console. I launched two identical EC2 instances based an Ubuntu 18.04 image. However with one of the instances I attached user-data, the other I didn'tInstance WITH user-data$ curl http://169.254.169.254/la... | Trying to fetch EC2 userdata from win EC2 instancehttp://169.254.169.254/latest/user-dataI get 404 - Not Found error | EC2 http://169.254.169.254/latest/user-data returns 404 |
The main use case is when your application needs to support multiple subdomains.Take for example these production subdomains:www.example.comadmin.example.commembers.example.comOr you can consider a multi-tenant application where each account gets its own custom subdomain:mycompany.example.comanotherguy.example.comSo it... | xip.io welcome screens says this :10.0.0.1.xip.io resolves to 10.0.0.1Why do we need to go through xip io when I can directly use the IP?Is it used to access servers by domain name instead of IP? | Why is xip io needed when I can access the IP directly? |
Since develop has a merge commit that does not exist on the feature branch and the feature branch has commits that do not exist on the develop branch, you cannot do a fast forward merge here.On solution is to rebase your feature branch onto the develop branch:git checkout feature
git rebase developThis will create a se... | In bitbucket/git, how to do fast forward merge after doing a merge-commit?I have branched from develop in to a feature branch.After few commits on feature branch, i have merged feature branch in to develop - using merge-commit merge strategy of bitbucket pull request.In the process of development on feature branch I ha... | In bitbucket/git, how to do fast forward merge after doing a merge-commit? |
The Kubernetes ecosystem includes two complementary add-ons for aggregating and reporting valuable monitoring data from your cluster: Metrics Server and kube-state-metrics.Metrics Servercollects resource usage statistics from the kubelet on each node and provides aggregated metrics through theMetrics API. Metrics Serve... | I'm trying to find the sutiable expression to set alert that can calculate the Pods utlization that are reaching 80% for both memory and CPU on all the pods that are exisiting on namespace so i appreciate if can someone help me to achieve that | Calculate the memory and CPU utilization for pods by Prometheus |
1
I have seen this issue before while trying to run react app container using 'node' image. I believe the conatiner starts and stops when we try to ru docker-compose.
Please try adding "stdin_open: true" to the 'cloud-react-front' service in docker-compose.yml. This worked ... |
I use docker-compose to build my flask and react images, but when I run the docker-compose command, my flask container is up but my react container is not activated, and to activate it I ran the command run image, I don't have idea why this happens, I hope you can explain why.
My docker-compose.yml
version: '3'
servi... | Docker-Compose for react and flask execute the containers with docker-compose up |
I saw a nice answer in sonarQube site:You can get the list of changed files from the github api and then
plug it into sonar.inclusions . Simple.In context to jenkins,create a sonar.properties file (using shell)make a github api
call and fetch the list of files changed with their api.insert
the above fetched value insid... | Is there anyway in sonarqube where we can run analysis on the files which have been changed by commit and get the code smells before publishing the code smells to sonar dashboard. Currently we have integrated the sonarqube analysis with Jenkins as a Job to run on a daily basis. | Sonarqube analysis per commit(only the changes) before publishing the results to sonarqube dashboard. |
16
Your tags dont match. Your local image tag is "local" but its looking for "latest" because you didn't specify a tag. To run it you should append the tag of "local".
docker run --name capcompute elucidbio/capcompute:local
Share
Improve this answer
... |
I have a docker image:
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
elucidbio/capcompute local a5ed348be9f8 About a minute ago 2.27GB
But when I try and start it, it fails:
$docker run --name capcompute elucidbio/capcompute
Unable ... | Unable to find image locally |
4
I am surprised no one has answered this question correctly. Here is code that uses boto3 that addresses the OP's question directly:
import boto3
session = boto3.Session('us-east-1')
for service in session.get_available_services ():
service_client = session.client (... |
I want to programatically get all the actions a user is allowed to do across aws services.
I've tried to fiddle with simulate_principal_policy but it seems this method expects a list of all actions, and I don't want to maintain a hard-coded list.
I also tried to call it with iam:* for example and got a generic 'implic... | boto3 get available actions per service |
If you have onlyfourentries, you could do itstaticallyOptions -MultiViews
RewriteEngine On
# condensated way to redirect /first.php?id=[1-4] to /first /second /third or /fourth
RewriteCond %{THE_REQUEST}::first \s/first\.php\?id=1\s.+::(first)$ [OR,NC]
RewriteCond %{THE_REQUEST}::second \s/first\.php\?id=2\s.+::(secon... | Actually I have a site but I don't know how exactly one can resolve this kind of issue.So, my site is qapaper.com and there are some links which redirect on one single page with PHP GET methods which are:https://qapaper.com/first.php?id=1
https://qapaper.com/first.php?id=2
https://qapaper.com/first.php?id=3
https://... | Rewrite old format with dynamic query string to new dynamic equivalent format |
I'd look into something likeSupervisor.Very useful tutorial can be found herehttps://www.codingforentrepreneurs.com/blog/hello-linux-setup-gunicorn-and-supervisor/ | I want to make a Flask+Nginx+Gunicorn deployment. I have Nginx setup and running and I run gunicorn as described in the docs:gunicorn app:appBut when I logout of the server the gunicorn process exits? What is the correct way to make sure it stay running for Nginx to connect to, and restarts if it crashes? | What is the correct way to leave gunicorn running? |
The file permissions in your zipped folder may be too restrictive for AWS Lambda:Permissions Policies on Lambda Deployment PackagesRunningchmod -R 755 <directory>modifies read, write, and execute permissions recursively on all subdirectories and files. | I am trying to create aAWS Lambda LayerinAWS CloudFormationbut happens an error:Layer conversion failed: Some directories do not have execute permissions; (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: eff63297-bf71-4578-a665-c493a9fbdb40)Lambda Layer definition i... | Conversion failed: Some directories do not have execute permissions |
+25There is no certain API inRetrofitto implement this behavior because Retrofit usesOkHttpto handle network operations. But you could achieve this by implementing theAuthenticatorinterface of theOkHttpclient that you pass to the Retrofit builder.OkHttpcallAuthenticatorforcredentialswhen the response code is401unauthor... | Currently my login API is done using lambda and the response also contains one token along with it's expiring time. Is there any way like O'Auth token refresh in retrofit for lambda generated token?
Thanks in advance. Any help appreciated. | How to refresh the token generated by lambda API using retrofit? |
9
Seems to not work with a Buffer, but JSON.stringify(); Here's my working code:
var
hmac,
calculatedSignature,
payload = req.body;
hmac = crypto.createHmac('sha1', config.github.secret);
hmac.update(JSON.stringify(payload));
calculatedSignature = 'sha1=' + hmac.dige... |
I'm using a GitHub webhook to pipe events to an application of mine (an instance of GitHub's Hubot) and it is secured with an sha1 secret.
I'm using the following code to validate hashes on incoming webhooks
crypto = require('crypto')
signature = "sha1=" + crypto.createHmac('sha1', process.env.HUBOT_GITHUB_SECRET).... | GitHub Webhook Secret Never Validates |
No, the AppEngine blacklist functionality (which is documentedhereserves more to prevent denial of service attacks and so on. So, the file containing blacklisted IPs can, at most, contain 100 IPs. Thus, the blacklist isn't really intended for industrial strength access control.Given this, it seems your only option is t... | AppEngine allows the definition of blacklists, to disallow access from certain IP Ranges (http://code.google.com/appengine/docs/python/config/dos.html).What I would like to do is the inverse: A whitelist, that only allows access from certain IP Ranges.I am not much of a network specialist, so I would appreciate some he... | Turn an AppEngine Blacklist into a Whitelist |
Ok after many days and hours breaking my head I came to this solution:On GoDaddy's DNS I added these records:A: test24.company.io -> A: sub1.test24.company.io -> A: sub2.test24.company.io -> note:All 3 records point to the same elastic IP, there is no need to set an individual elastic IP for each subdomain.The ngi... | I'm trying to configuredefault.confin/etc/nginx/conf.dto show a simple landing page located at/home/ubuntu/project-source/company/entry/index.html.The domains are set up correctly as far as I know to point to the serverA: test24.company.io -> default.conf:server {
listen 80;
server_name localhost;
i... | How to configure nginx's default.conf |
Pull request analysis is only going to make comments fornew issuesin the codechanged in the PR | I am using sonar-cube 5.2 with sonar-runner-2.4. I have configured a bitbucket (using mibexsoftware/sonar-bitbucket-plugin) repo, and set this property: sonar.bitbucket.minSeverity=INFO in my local git repo directory.I can run the analysis, and I do see a Pull Request comment, but the comment is a generic: "SonarQube A... | How Do I Get Sonarqube to Create Pull Request Comments |
You cannot do this. You cannot make updates to a Git repository without first reading (cloning) the repository. Git deals in commits, and for a user to create a new commit, they need to have the previous commit and its commit ID.
Git is not the right tool for this job.
|
I am looking to create a GitHub repository to collect Python scripts from around 30 people. However, I want these people to be able to push to the repository without seeing its contents, i.e. have write-only access. In other words, I am looking for the following access-controls:
Public : write
Owner : read + write
... | How to setup GitHub write-only access |
0
Depending on the expected size of the new additions, you could write a script which includes: tail -500 filename > save_new_entries.out. This will print the last 500 lines to a file which you can then save as a partial backup. This could all be done in a script.
... |
I have a file that is constantly growing by appending to the file. Every once in a while I want to back it up. The file is too large so copying it every time is not an option.
What I want is that each time I back it up, only the new appended data will be copied. Is there an existing tool that does what I need?
I could... | How to backup growing file? |
8
You have Configure the nodejs cron job for parse-server job schedule.
install "CRON" module - npm install cron,(reference:https://www.npmjs.com/package/cron).
Change the parse server job Schedule function declaration. Parse.Cloud.job("jobScheduleName", function(){ })
... |
I have spent an entire day trying to get some kind of scheduler working with my Parse Server (running on AWS Beanstalk Node.js)
I was able to get some code inside the js file but it did not seem like it was working.
Is there any way I can set up some kind of scheduler so I don't have to manually run my jobs through th... | Parse Server - How to use a scheduler to run 'jobs' over and over |
You get the error becauseRUNcommands run in/bin/sh, which has nohistorycommand available.To make this work, you need to run an interactive bash shell during the build, so it will store your history entry.RUN bash -ic 'history -s foobar'That should leave behind a history file withfoobaras its most recent (and probably o... | I'm running the docker container locally to troubleshoot its state. I don't always want to execute theRUN/ENTRYPOINT, I often want to get into the running container, do some things, and then run theRUN/ENTRYPOINT.It would be super convenient to have theRUN/ENTRYPOINTavailable after Idocker run bashby just pressing the... | How to set the command history in a Dockerfile |
Check out http://www.sqlservervideos.com/series/sqlserver-backups/
|
I am using SQL Server 2008 Enterprise. I am looking for a database backup tutorial for a newbie. There are some good documents on MSDN which are about backup theories (e.g. different types of backup). What I am looking for and asking here is a step-by-step tutorial which is more practical (e.g. describe which option i... | SQL Server 2008 backup tutorial |
3
After some more testing, the problem seemed to be the incorrect use of the Process.Start() method. This time arguments were used.
This is how it worked:
Process process;
string outputStream;
string errorStream;
t... |
I have created a docker container with a ASP.net Core Service. This service, however, should start another service inside the docker container. The problem I am facing right now is that Process.Start() doesn't seem to work in this Linux container.
This is what I tried so far:
Process process;
... | Start.Process() .net Core doesn't work in Linux Docker |
4
In your .env file, change:
CACHE_DRIVER=file
TO
CACHE_DRIVER=array
After this change you might have to execute the following commands in the command line:
php artisan config:clear
php artisan config:cache
Share
Improve this answer
F... |
After searching all possible answers, I still dont know how to solve this problem. I'm using zizaco/entrust package for laravel, and everytime I save data into the database it returns an error:
BadMethodCallException in Repository.php line 294:
This cache store does not support tagging.
They said, I just have to... | Entrust - This cache store does not support tagging in Laravel 5.1 |
By default, theHTTP(S) Load Balancerwill create two default rules: One that matches all the hosts and paths and another matching your current hostingress-test.wpspeedmatters.comand all paths.Then, your custom path defined in theIngressYAML (/*) will be added. In this case, it just happens that is the same as the second... | Every time I add a new rule to the ingress, it creates multiple rules in the load balancer. The rules are basically the same, pointing to the same backendHere is my ingress file:apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: ingress-test.wpspeedmatters.com
spec:
domains:
- ingres... | Duplicate rules created in GKE Ingress load balancer |
Fixed with help from Puppet IRCrm -rf $ssldir ON THE AGENT; puppet cert clean $certname on the master
then puppet agent -t on the agent and get new certsDue to corruption from power loss. | Previously, I had the agent working properly, but after a recent power outage, I keep getting this issue.I run puppet agent -t and get this error:Error: Could not request certificate: Neither PUB key nor PRIV key: header too longI've googled the issue, and it sounded like a clock issue (also suspected due to power outa... | Puppet agent couldn't request certificate: Header too long |
How is the 7GB of data layout? How many files? Which kind of files (DB, pictures, text, docx, doc)? What is the average/smaller/bigger file size? How do the files change: new files added, files completely changed, some bytes changed/appended to some existing files?
Those are meaningful information to pick up to right ... |
There is a folder - 7 Gb with a big amount of binary files. An average size of the binary file is around 100 Kb. These files are compressed in ZIP archives. An average size of that ZIP archive is around 2 Mb. Therefore I need to make the backup of the ZIP archives.
And I need to make the backup of the whole folder. I... | Delphi: own files' Backup |
I do not know what mistake I made. It worked fine after couple of reinstalls of helm charts.
Changes I made, Added a new user to docker fileRUN useradd -u 8877 <user_name>(ram)
USER ramShareFollowansweredMar 28, 2022 at 17:55ratnaratna2122 bronze badgesAdd a comment| | I share a part of the manifest where I added security context added. If I remove the security context, it works fine. I try to use non-root user to up the container. Not sure, what I did wrong belowcontainers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
... | Secret mount on Kubernetes container fails with security context (run as non-root user) added |
You will actually need to get a class 3 Certificate (EV) Code Signing Certificate, this will allow the software to be recognized and verified.Don't get sucked into "Code Signing Certifcates" that are class 2 from sites that say they will meet this requirement not to mention anynames like "Godaddy". These are SSL certif... | I have somewindows installershosted on Github for an open-source project that I curate. When downloading them, the "this file is not commonly downlaoded" warning appears, and if you run the installer in spite of that, you get a "windows smartscreen prevented an unauthorized app from starting" message (all this before U... | Windows 10 - signed installers get "this file is not commonly downloaded" when downloaded from Github |
Solving with Amplify Redirects
To solve this using Amplify Redirects, go to the "Rewrites and redirects" section in the Amplify UI. Add a rule to redirect everything from /troubleshoot/* to /*. Here is an example of the rule in JSON format:
[
{
"source": "/troubleshooting/<*>",
"target": "/<*>",
... |
I have a React app, which I want to be accessed at /troubleshoot
I have setup in my React app
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import App from "App";
// Material Dashboard 2 React Context Provider
import { MaterialUIControllerProvider } fr... | How to deploy at subpath using AWS Amplify |
1
Are you looking for something like mysqldump?
Or u can just use export functionality in phpMyAdmin or smth like.
Lol, then just
mysqldump -uUSER_NAME -hHOST -p -B database1 database2 database3 > databases.sql
Then just enter the password and that's it. The dump is in d... |
This question already has answers here:
mysqldump on remote server
(5 answers)
Closed 9 years ago.
I want to get the databse backup using mysql query.
If there is any query to get ... | backuping Database Using Mysql query [duplicate] |
Your 2080Ti would do just fine for your task. The GPU memory for DL tasks are dependent on many factors such as number of trainable parameters in the network, size of the images you are feeding, batch size, floating point type (FP16 or FP32) and number of activations and etc. I think you get confused about loading all... |
We are trying to train our model for object recognition using tensorflow. Since there are too many images (100GB), I guess our current GPU server (1*2080Ti) could not work. We may need to purchase a more powerful one, but I do not sure how to estimate how much GPU memory we need. Is there some approach to estimate the... | How to estimate how much GPU memory required for deep learning? |
I tried this on kubeadm, and was able to suceed.
@Aman Juneja was right, you have to add the API flags as described in the documentation.You can do that by creating the serviceaccount and then adding this flags to the kubeapi:sudo vim /etc/kubernetes/manifests/kube-apiserver.yaml- --service-account-issuer=api
- --serv... | I am trying to project the serviceAccount token into my pod as described in this k8s doc -https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#service-account-token-volume-projection.I create a service account using below commandkubectl create sa acctThen I create the podkind: Pod
apiVers... | k8s - how to project service account token into pod |
Based on the comments, I thought I'd be more formal & a more complete answer. When using Docker, if you want something included inside the container you need to make sure that you don't have a .dockerignore file, in hindsight it's obvious, like any other ignore file, you're choosing to exclude things from whatever it ... |
Consider the docker-compose :
employee_app:
container_name: EmployeeContainer
build:
context: .
dockerfile: Dockerfile
ports:
- "9999:3000"
depends_on:
- elastic
... more services
And the Dockerfile of employee app :
FROM node:14
COPY . /app
WORKDIR /app/
RUN... | Docker-compose doesn't copy Test files from local folder into Container , but copies everything else |
If you want to support every 2, 3, 4, 6 month as stated, including single month such as* * * 3 *, and odd month such as* * * 3,7,11 *you can use this regex (regex is for month portion only) :/^(\*\/[2346]|(0?[1-9]|1[012])(,(0?[1-9]|1[012])){0,5})$/Explanation:^- anchor at start(- group start\*\/[2346]- fraction format,... | I'm trying to write some javascript regex to validate the monthly portion of a cron job is valid.
(For those who aren't familiar, check outhttps://crontab.guru)The cron job monthly portion can specify a job that is
bi-monthly,
every 3 months,
4 months,
or 6 months.A job that occurs every 4 months could be specified wit... | Regex to match a bi-monthly, quarterly, etc., cron job |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.