Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
0 The performance counters in modern x86_64 CPUs are perfect for determining what code is executing when there's events like cache misses, branch mispredictions, instruction/data TLB misses, prefetches, etc. On linux, there's tools like perf and oprofile. AMD and Intel bot...
I am looking for a way how to analyze the main memory access times. Such method should give me a distribution of RAM and Cache accesses to analyze CPU stalls in time. I wonder if it's possible entirely in software (a kernel module?) or maybe a Virtual Machine may provide a feedback?
How to analyze the main memory and the cache access patterns?
Check: NSWorkspace Class Reference Refresh the Finder like this: [[NSWorkspace sharedWorkspace] noteFileSystemChanged:path];
I have a process that modifies icons on files with an overlay. The Finder, though, seems to be caching the images it generates, which sometimes happens after I generate the overlay (in the case of the icon being a preview of the file instead of a plain icon). Is there a programatic way I can tell the Finder to dump it...
How to programatically tell the Mac Finder to redraw a folder or file icon?
You can increase the HTTP client's timeout by using a custom HTTP client for Arango. The default is set here to 60 seconds. from arango.http import HTTPClient class MyCustomHTTPClient(HTTPClient): REQUEST_TIMEOUT = 1000 # Set the timeout you want in seconds here # Pass an instance of your custom HTTP client to...
I have a problem. I am using ArangoDB enterprise:3.8.6 via Docker. But unfortunately my query takes longer than 30s. When it fails, the error is arangodb HTTPConnectionPool(host='127.0.0.1', port=8529): Read timed out. (read timeout=60). My collection is aroung 4GB huge and ~ 1.2 mio - 900k documents inside the colle...
ArangoDB Read timed out (read timeout=60)
Converting a user into an organizationwill invalidate user-specific information, including OAuth tokens.Warning: Before converting a user into an organization, keep these points in mind:The SSH keys, OAuth tokens, job profile, and associated user information, will not be transferred to the organization. This is only tr...
What happens to Personal Access Tokens when GitHub user converted to organization? We have a few applications where private repos are installed directly from GitHub using Personal Access Tokens. Thepackage.jsonlooks like this..."dependencies": { "async": "^2.1.5", "my-repo": "git+https://<PERSONAL ACCESS TOK...
What happens to Personal Access Tokens when GitHub user converted to organization?
To get this working I had to drop the 'istio' prefix, the 'bucket' suffix and add an additional set of single quotes around the value e.g.values: telemetry: enabled: true v2: enabled: true prometheus: configOverride: inboundSidecar: stat_prefix: istio ...
I would like to overwrite the source_workload tag in the request_bytes_bucket metric due to high cardinality issues generated by a specific workload - I do not want to drop the source_workload tag as that will break Kiali functionality and affect other workloads that do not have this issue - I've tried using the follow...
Overwrite source_workload metric using istio operator
You can add the docker group inside the container. Do this in its bash:groupadd -g <docker-group-id> dockerFind out the<docker-group-id>running this in the host:ls -ln /var/run/docker.sockThen add the jenkins user to the docker group:gpasswd -a jenkins dockerTake into account any security issue that this could produce:...
I'm facing the following problem: I created a Jenkins docker container, and linked the docker socket on the host, with the container. Like this:docker run -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 -p 50000:50000 -d --name jenkins --restart unless-stopped jenkinsThen when I try to create some jobs on jen...
How to use docker from inside Jenkins docker container
Controlling the windows filewall can easily be done through COM:http://www.shafqatahmed.com/2008/01/controlling-win.htmlHowever that isnt going to get you to redirect to a certain page.If you want to redirect to a page you would have to intercept all traffic. I assume HTTP. So you can either put an application that lis...
I have a school project with a friend of mine and we are developing a software product (in C#) that reads a value from a hardware sensor through serial com (from arduino). Depending on that value we want to be able to blacklist certain ips and domains and re-route them to a htmlfile that informs the user that that webp...
Making a webpage-blocking application in C#
Something like this maybe:trigger.cronExpression = params.cronexpression quartzScheduler.rescheduleJob(new TriggerKey(params.triggerName, params.triggerGroup), trigger)For more context seethis controller in Quartz Monitor pluginor just use theplugin itself.
I want to get a cron expression from a user through .gsp and want to set it as new cron expression of Dynamic Job from controller. Intially my cron expression was like "0 1 0 * * ?" but now want to change it to.. sayString cronExpression="0 2 0 * * ?" // in the controller // creates cron trigger; DynamicJob.schedule...
How to set a cron expression of cron job from controller in Grails
environment variables are not available to the build step. See this proposal for making that more obvious in compose and this feature request to support the new build args added to docker 1.9. The build args will do what you need.
This is a snippet of my docker-compose.yml file which I'm running with docker-compose build percona_dev. percona_dev: build: docker/percona dockerfile: percona-dev env_file: docker.env I've specified environment variables in docker.env like this: USERNAME=xxx PASSWORD=xxx DESKTOP_IP=192.168.1.1 PLAYBOOK_LOCATIO...
Docker compose environment variables specified with env_file parameter not working inside the dockerfile
You need to configure a logger.Here's a simple example. The difference is that you can uselogging.StreamHandleras a handler's class to have a specific logger print to stdout. This will print every log into the console:LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { ...
I'm using Django, which I run in a Docker container. There is something happening in my view that I can not understand. There are someforstatements and conditional statements and I'd like to see exactly where things go awry. The easiest way for me to do this, is if I can output some variables to the console. Is this po...
Django and docker: outputting information to console
I figured out that I need to add the artifacts to the build spec file as well. This wasn't added to the Buildspec by default when I created the Buildspec.yaml file on codebuild.version: 0.2 phases: build: commands: - npm install nodemon - echo "Entering build" - npm install - echo "Fi...
I've been playing around with CodeBuild and CodePipeline recently and ran across this problem.Once the CodeBuild finishes successfully, it should upload the build artifact to an S3 bucket. But I noticed that when I click on the View Artifacts button it just tells me that an error occured, and my S3 bucket does not have...
CodeBuild does not upload Build Artifact to S3
Startup probeThis runs first.When it succeeds, the Readiness Probe and Liveness Probe are run continuously. If this fails, the container is killed.Use this for "slow staring apps", you can use the same command as Liveness if you want.The kubelet uses startup probes to know when a container application has started. If s...
looking to understand the order in which kubenetes examine the pods using the 3 type of probes- startup, readiness and live.How to understand or design these 3 probes correctly for normal applications? What is the chance of getting conflict or breaking the application if the startup probe has wrong entries
Kubernetes Probes - What is the order in which they examine the pod?
24 When running containers, CPU allocation is typically done using CPU units as described in the ECS documentation: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size 1024 CPU units corresponds to 1 vCPU. In the task defi...
I'm trying to understand meaning of vCPU and CPU units and connection of these concepts to physical CPU. I have ECS cluster with one cluster instance, which is m5ad.large EC2 instance. Here is output of lscpu command on this instance: CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): ...
Understanding of CPU units in AWS ECS
You can reconfigure your Jenkins container to publish its log files to a host directory (use docker run -v to provide some host directory for the /var/jenkins_home/jobs tree; this is probably a good idea regardless since you don't want to lose all of your job history if you ever need to update the underlying Jenkins c...
I'm trying to gather logs from all my running docker containers and send them into the ELK stack. I'd like to use filebeat to do this so I'm following a similar approach to what is described in https://logz.io/blog/docker-logging/. My filebeat.yml filebeat: inputs: - paths: - /var/jenkins_home/jobs/*/branches/...
Get docker logs into filebeat without root
You could use themongoose-data-fakerpackage to generate random data based on your Mongoose schema.Another alternative is to use thefakerpackage to generate data.ShareFollowansweredJul 26, 2022 at 11:42Nurul SundaraniNurul Sundarani6,45833 gold badges2929 silver badges5555 bronze badgesAdd a comment|
const dummy = require('mongoose-dummy');I want replace this package to its similar one in my code, its dependent module mpath and uuid creating issue. Is there any alternative package.
which package can be an alternative for mongooes dummy
For AIX I found that the following work fine in my applications: #include <unistd.h> #include <sys/types.h> #include <sys/resource.h> // total physical memory (in bytes) size_t total_memory = sysconf(_SC_AIX_REALMEM) * 1024; // maximum resident set of the process struct rusage usage; getrusage(RUSAGE_SELF, &usage); ...
Can anyone advise of AIX system calls that can be used to programatically check memory usage? I'm working with a large multithreaded C++ app which is currently running out of memory (using 32 bit, large memory model on AIX 6.1) due to a large unlimited series of in-memory caches. I can certainly limit the caches' grow...
Programatic memory monitoring in AIX
Is there a way to specify that I want to select those users with the most non-forked repos and with non-null/empty email fields?No, not possible currently using the Search API.
I'm trying to search for the top GitHub users by # of non-forked repos, that have a public email address. When using the /search/users endpoint, it seems you must pass a query (q=parameter) and when I tried the following, it returned one result:https://api.github.com/search/users?q=%40&in:email&sort=repositories&order=...
GitHub API search query for non-null parameters?
I assume you want to keep commitB4but removeB2andB3. I also assume you want to keepM6onmaster. One way to do this is first editbranch. Start by movingbranchback toB4:git checkout branch git reset --hard B4(Note that in all of the commands in my answer, you should replace commit references such asB4with an actual SHA1 h...
Recently I merged a branch into master through a pull request and then found out some of the files in some of the commits of that branch are not needed on remote, so I was thinking deleting those files only in those commits. But it wasn't that easy so I decided to just simply delete those commits as I thought pull requ...
Deleting specific remote commits after pull request
See the Caching Tutorial for Web Authors and Webmasters which explains about all the different cache control headers (especially the part the explains that those meta tags are largely useless and real HTTP headers are the way forwards).
What is the difference between below 3 meta tags? <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="Expires" CONTENT="-1"> Do I need to use all those tags to avoid browser caching?
HTML Cache control
According to docsyou should setyii\data\Pagination::forcePageParamto false by passing it in Pagination constructor$pages = new Pagination([ 'totalCount' => $books['booksCount'], 'pageParam' => 'start', 'defaultPageSize' => 10, 'forcePageParam' => false, ]);
For SEO purposes I need to remove the first page number from the URL. i.e I have the following:example.com/pages/view/1andexample.com/pages/viewthe two URLs points to the same contents of the view action. I want to make the pagination free from1in the URL. i.e first Page link and Page Number 1 should be linked topages/...
Removing the number of first page in Yii2 Pagination from the URL
Kafka automatically registers its own MBeans with those names.If you add the actuator starter, Boot will configure Micrometer to scrape those MBeans.However, Micrometer has deprecated the JMX scraper and has new KafkaMetrics Objects.Spring Boot 2.3 now uses those classes to configure Micrometer instead of JMX.
I have a springboot app from which i would like to expose thekafka.consumermetrics to Prometheus via JMX. I can see the metricsherebut i just don't know where to set those mBeans(i.e. kafka.consumer:type=consumer-metrics,client-id=([-.\w]+)). I understood reading the spring bootdocumentationthat i need to activate JMX ...
How to expose Kafka metrics from SpringBoot application through JMX to Prometheus?
0 You could put a merge driver which would always keep your local version for those two files (deploy.rb and database.yml). See as an example "How do I tell git to always select my local version for conflicted merges on a specific file?". You can declare that merger drive...
Hello I am having Two Branches on Github for the Rails Application. One is Test and Other is Live. Problem is Live branch is having the latest changes on it and Test is not having the lates changes. so I want to transfer the code from Live to test on github. Both the environment having different Database name and hav...
git repository move rails application code to live to test repositories
You are inserting multiple rows with a single INSERT statement.You didn't specify how many rows.If that figure is more than a thousand or so, you want to break it up into multiple INSERT statements, each one inserting a bunch of rows.Youcanissue a great many INSERTs as a single atomic BEGIN; INSERT ...; INSERT ...; COM...
I wrote a python code to create a random 4gb sql file and created my 4gb file, then I was going to add it to the postgresql database with the following code:psql -h localhost -U postgres -d test -f C:\file.sqlbut it gave me an error like:error: out of memory postgresql DETAIL: Line buffer 0 bytes long cannot be ext...
PostgreSQL import .sql file eror
I finally figured out the problem! My system's GPU cannot/is not supported bycudNN, unfortunately. :(
I am on a Linux 3.16.0-30-generic #40~14.04.1-Ubuntu x86_64 GNU/Linux machine with NVIDIA Corporation GF108 [GeForce GT 430] [10de:0de1] (rev a1) graphic card.I am trying to runlasagnepackage with GPU enabled, however by runningimport lasagne.layers.dnn, I get an ImportError:Traceback (most recent call last): File "<...
Running Python lasagne with CUDNN in Ubuntu 14.04 Linux
I have the same issue, I'm using a php app and trying to use CLI to assure it's working before adding code modifications.I found this way but I still get 'Access Denied', maybe it works for you:$ mysql -u iam_user -h iamtest.xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com \ --password=`aws rds generate-db-auth-token --ho...
I'm followinghttp://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.htmlin order to authenticate from an EC2 to RDS. I am able to run thegenerate-db-auth-tokencommand to retrieve a token, but I'm not sure what to do with it after that (the instructions inexplicably end).I've tried simply passing t...
IAM Database Authentication - How to use CLI generated Token
You can reset master:cd /path/to/your/repo git checkout master git fetch upstream git reset --hard upstream/master(with 'upstream' being the name of the remote referencing the url of the original repo that you have forked)
I made my fork from outsourcing project. Then I made a mistake - I commit some changes to it. Now I would like to make a branch with this changes, but I would like to have master all the time the same as original project I forked from. I created branch from master, so I already have my changes in branch. But how can I ...
github fork management - branches
If it is even a slightly popular library, it should have a PyPi page. Check the documentation or the README for any mention of pip install <package_name> If the above is not an option, then try this The repository link is probably something like: https://github.com/<username>/<repo>.git For this, open a terminal and...
This question already has answers here: pip install from git repo branch (9 answers) Closed 4 years ago. I am just learning how to use GitHub, I want to download a python library t...
How to install python libraries from GitHub onto PyCharm? [duplicate]
Usually, logrotate is run as a daily cron job. You could addsize 5Manddailyto the logrotate config for the logs you're interested in.There would be the potential for the log to grow past 5M between daily logrotate runs. This could be tuned by lowering the size value and/or running logrotate more often.Checkman logrotat...
I have configured my own logrotate(app logs) and for editing(nginx logs), all created in a recipes(chef). My question is: logrotate it runs automatically?I ask because I have configurations in which the logs can not EXCEED 5MB in size, and have logs with sizes of 100MB.show crontabs for root:crontab -l no crontab for r...
AWS Opsworks: logrotate it runs automatically?
Sicnegh pr list, likegh pr view, does inherit from the same option--json <fields>(Output JSON with the specified fields), you can use:gh pr list --json number,body | grep "helllo"That would grep for your specific message, and still give you an ID that you can use withgh pr view.
I’m using the Github CLI tool, which includes a commandgh pr listthat allows you to see all the open pull requests.The issue is that I only see a list of their titles and there’s a separate commandgh pr view [extra info]that actually allows you to see thebody.I’m searching for pull requests that have a certain phrase i...
Github CLI - Grep for filtering by phrase in pull request body?
Okay, after testing one million things I finally found out.I didn't convert the bundle.crt into PEM. I have pasted the certificate file directly in the bundle.crt (at the beginning of the file)I have removed this line on my code :SSL_CTX_use_certificate_file(SSL_ctx, _certificate, SSL_FILETYPE_PEM);So here's the final ...
I just purchased a SSL certificate from Go Daddy. Great price, but it seems that it has a draw back.It seems to need the bundle.crt in order to work correctly on must browser. I'm not yet really sure what it is, from what I have understand it is an intermediate certificate from Certificate Authority. Correct me if I'm ...
Openssl need to use CA bundle file (Intermediate cert)
After talking to AWS cloud watch team I found out that the rule limit can be increased as per your need.
what is the maximum number of rules for cloud watch I can create on my AWS account. I might have a lot of different rules that will invoke lambda function on schedule. Is it unlimited?
CloudWatch Events rule Limits
I'm the developer/maintainer of dnspython-clientsubnet. It is designed to be used in your code as an additive to dnspython. I've just released version 2.0.0 (after trying to do what you wanted) which makes everything much easierpip install clientsubnetoption(works for both Python2 & Python3)Importclientsubnetoptionan...
I'm looking for an implementation in Python that would allow me to resolve a DNS address using an extension of DNS (EDNS) "client sub options" . This option allows better DNS-resolution for content delivery systems - and ultimately, faster internet routing. The motivation is better explained here:http://www.afasterinte...
Resolve dns (edns) with client subnet option in Python
So i searched for a few things online and i found out that there is one solution that if i mention to install chocolatey on powershell inside my docker file. This reference, I have received from the this post by anothony chu: so i used: # Install Chocolatey RUN @powershell -NoProfile -ExecutionPolicy Bypass -Command "...
I'm new to .Net Environment, I'm trying to implement docker here for my firm. They were using 4.5 earlier so I used the following statement in my dockerfile: RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \ Install-WindowsFeature Web-Asp-Net45 Now, I want to do the same for framework 4.7.2 - I thought it will w...
install .net framework 4.7.2 in docker
InfluxQL is not SQL, so you can't do that with your current data structure. See InfluxDB doc -https://docs.influxdata.com/influxdb/v1.8/guides/calculate_percentages/where are also example data.
Okay, not the greatest title, but hopefully it covers enough. I will try to explain as best I can...I have data going to InfluxDB that tracks how long that a specific action takes to respond and I want to add a Grafana chart that shows me the percent of actions that take over 1000ms but I'm struggling to figure that ou...
How to find the percentage of records that are over X in InfluxDB/Grafana?
Asked 3 years ago, but I had this month (Oct 2018) the same problem. Yes, it is a mess with hard-coded paths. Simple PassProxy/ProxyPassReverse is not working. I am no computer expert, not at all. I found this configuration somewhere on internet, among many, many other propositions, and as a miracle it was the only one...
I currently have nginx serving as a reverse proxy on my router with a single server block and multiple locations mapping to specific ports on my NAS. Everything seems to be working fine except for one item -- Synology DSM. Right now, the only way that I have WAN access to DSM in my setup is with the following configura...
nginx reverse proxy - synology dsm issue
Presuming that your goal here is to run a set of containers over a number of different Raspberry Pi based nodes:Minikube isn't really appropriate. This starts a single virtual machine on a Windows, MacOS or Linux and installs a Kubernetes cluster into it. It's generally used by developers to quickly start-up a cluster ...
I am new to cluster container management, and this question is the basis for all the freshers over here.I read some documentation, but still, my understanding is not too clear, so any leads.. helping to understand?Somewhere it is mentioned, Minikube is used to run Kubernetes locally. So if we want to maintain cluster m...
Difference between Minikube, Kubernetes, Docker Compose, Docker Swarm, etc
There's quite a bit to unpack in your question. First off, let's focus on your immediate question: The branch names don't matter -- the ordering you're seeing is alphabetical. However, there's a couple of small misconceptions that come up here, that we can walk through: First the small one: git doesn't track empty dir...
I'm learning basic Git. Created a basic directory (1 empty folder), initialized Git, created remote repo and pushed the empty folder to have the local + remote repos synced up. Now I'm exploring branches; I want to create a new branch under master and make basic changes (e.g. adding more sub-folders, empty .txt files)...
Branch hierarchy in local Git
Go to the project directory (Or use Android Studio terminal) to check the global settings using:git config --global user.name git config --global user.emailAfter that check the local configuration for the project to see if matches the GitHub account you want to use:git config user.name git config user.emailIf it's not ...
I have two github accounts and now I don't know how to switch on the previous one.It seems like I'm switched to the GreeenGoo account but when I do commits I anyway see the VladSparkco user.What can be the problem?
To change a git user in AndroidStudio
Fixed the issue thanks to another source. I was not using the sendmail's full path. I was just stating "| sendmail -v email" and not sendmails full path which was "/usr/sbin/sendmail" for me. Not sure if links are allowed here but below is where I found the answer.https://www.unix.com/red-hat/271632-bash-sendmail-comma...
I'm trying to run a sendmail command in a Red-hat Linux environment on a bash shell script through a cronjob. I can run this script successfully when it is ran manually and every other job within the shell runs correctly other than the mailing part.I have never used sendmail and am not sure if I need to restructure how...
Linux sendmail command not sending mail while in a cron
At this point in time, there's no way to do agit-resetthrough the GitHub Web UI.However, it's fairly easy to do on the command-line:# 1. Add the Original repo as a remote to your local repository git remote add upstream https://github.com/original/repo # 2. Fetch all the objects from the Original repo git fetch upstre...
I have forked a repo (Original) into my github account. The Original repo changed and also I have some comits behind the Original repo. I did a merge from Original into my workspace but I still see my intermediary commits.I need to have a clean forked repo (identical as the Origial). How can I do that from the web in...
Update a forked repo in github web to be reset to the original one
A.gitmodulesfile is a file in the repository created by thegit submodulecommand (most commonlygit submodule add) when usingsubmodules.It stores information about which directories certain external repositories should be mapped into, so that thegit submodule initandgit submodule updatecommands can know where to place th...
I am just wondering what exactly gitmodules are. I heard that it is a file in your git folder but I can't find it. Does it have to exist? I already searched in various forums but I couldn't find a good explanation.Can somebody help me?
What are gitmodules in Git?
Yes you can, link to specific lines in a Markdown file, by going to the Blame view of the file. Then, press y to get a permalink to the version of the file that you see now. This will ensure the link persists if the file changes, is moved, renamed or deleted. At this point, you can click a link, or Shift+click a rang...
How can I create a permalink to specific lines in a .md or .Rmd file like README.md? These files are rendered differently in github, so when I click on them I don't see the usual line-number editor where I can click on a line and ask it to give me the permalink to the selected lines, as described here.
How can I create a github permalink to a line in a markdown .md or .Rmd file?
Ingress exposes HTTP and HTTPS routes from outside the cluster toserviceswithin the cluster.It means that it'll use default ports for HTTP and HTTPS ports.From the documentation we can read:An Ingress does not expose arbitrary ports or protocols. Exposing services other than HTTP and HTTPS to the internet typically use...
It seems to listen on 80 by default - sensible - but if I wanted it to listen for requests on (for example) 8000, how would I specify this?For clarity, this is via the nginx controller enabled viaminikube addons enable ingress)
How do you specify a custom port for the ingress controller on Minikube?
github wiki / gollum-wiki doesn't inherently provide anything explicit for organizing pages into sub-directories. Any page can be linked from any other page irrespective of where it logically belongs. This is a powerful feature that makes wikis very flexible. One way to implement a sub-directories structure would be...
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 years ago. The community reviewed whether to reopen this quest...
How can you use subdirectories in a GitHub wiki checkout? [closed]
I made a small lib for node to help with signing aws requests. hope you find this usefulhttps://github.com/theRemix/aws_signature_utils_js
There appears to beno node.js SDK librariesfor Amazon FPS (Flexible Payment Services).Does anyone know of anything? It's brutally tedious to create from scratch.I'm hoping the answer is here:https://github.com/awssum/awssum-amazon-fps/But compared to what you get, say withAmazon's PHP SDK, it doesn't look like it does ...
Amazon FPS SDK ports for node.js
Hey for this purpose you should use aKubernetes Secretthat you mount into your redis container. It can be also mounted into different containers.This would be my approach:First, you'll need to enable authentication on your Redis servers. This can be done by modifying theredis.conf. you can provide a password in the con...
need some recommendations. I have the redis servers deployed in K8s and they are without the password/authentication. I need to work on adding the passwords to the redis servers and at the same time make sure that to the clients/services using that redis servers also get it. Has anyone come across this use case? #redis
Add password on redis server/clients
Unsure from which image your are pulling. I used slim,Dockerfile.from debian:buster-slim ENV DEBIAN_FRONTEND=noninteractive RUN mkdir -p /usr/share/man/man1 /usr/share/man/man2 RUN apt-get update && \ apt-get install -y --no-install-recommends \ openjdk-11-jre # Prints installed java version, just for check...
I am trying to install the java runtime in a Debian based docker image (mcr.microsoft.com/dotnet/core/sdk:3.1-buster). According to various howtos this should be possible by runningRUN apt update RUN apt-get install openjdk-11-jreThe latter command comes back withE: Unable to locate package openjdk-11-jreHowever accord...
Install Java runtime in Debian based docker image
To a first order approximation, the size of an object is the sum of the sizes of its constituent data members. You can be sure it will never be smaller than this.More precisely, the compiler is entitled to insert padding space between data members to ensure that each data member meets the alignment requirements of the...
For example, say I have a class Temp:class Temp { public: int function1(int foo) { return 1; } void function2(int bar) { foobar = bar; } private: int foobar; };When I create an object of class Temp, how would I calculate how much space it needs, and how is it represented in memory (e.g....
How do you determine the size of an object in C++?
You can either not release them, which is fine since the app is shutting down anyway. Cocoa on the iPhone already does this, it doesn't completely delete everything, it just lets the app get blown away.Or you can delete it from appWillTerminate or some other shutdown function.
I have a static method that creates an instance of the class and puts it in the static variable. I am wondering what the proper way of memory management is in this situation.You can't put it in the dealloc-method, because although it can access the static variable any instance method that is created that get's released...
Objective-C/iPhone Memory Management Static Variables
We all know that "int" data type will be store in stack and Object type will be store in heap like as below snap. Since that is completely false, we do not all know that. Think about it: int[] M() { return new int[] { 1 }; } Is the 1 on the stack? If so, then how can it be accessed from M's caller after M returns?...
I have below mention property class with name as "Employee". public class Employee { public int EmpID { get; set; } public int DeptId { get; set; } } We all know that "int" data type will be store in stack and Object type will be store in heap like as below snap. Here my question is, When I am going to creat...
How memory allocation has been done for below scenario? I have managed to muddle it
The performance impact would in most cases be minimal. A quick scan of thesourceshows that the values of those variables are calculated internally regardless of whether they used in the logging so the only overhead is the additional time to append those values onto the log entry and write to output - usually a disk bas...
I have my nginx logs set to default:$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent" 'However, I need to change it to add upstream time and response time, so I did the following:log_format with_response_time '$remote_addr - $remote_user [$time_local]...
Is there a performance impact for capturing additional data in nginx logs?
1 I'm not sure I have 100% understood what your problem is, and I don't know any function named BackupFile(). If what you want is reusing handles from NTCreateFile() with BackupRead(), it should be perfectly fine to do so, provided the file handle was opened with the right...
I'd like to open up a file by ID and then use the resulting handle in the Win32 API BackupRead() Is this possible? I'm not certain if its 'okay' to use handles that come from NtCreateFile() in other Win32 APIs? For example, may I do this NtCreateFile(&handle, ..., FILE_OPEN_BY_FILE_ID, ....) BackupFile(handle, ....) ...
how to open a file by fileID and then use BackupRead API?
It turns out to be not mysterious at all.I tried valgrind to profile cache misses, here is the result:$ valgrind --tool=cachegrind --cachegrind-out-file=profile ./a.out .... $ cg_annotate profile --auto=yes --show=D1mr --context=1 .... -- line 63 ---------------------------------------- . void* foo(void* ptr) ...
I just wrote a program to test the impact of CPU cache on speed performance.void* foo(void* ptr) { int* r = (int*) ptr; for (int i = (r - s); i < N; i += NUM_THREADS) *r += num[i]; return NULL; } void* bar(void* ptr) { int* r = (int*) ptr; int idx = r - s; int block = N/NUM_THR...
Impacts of CPU cache on speed
You can check usingkubectl get deployment <name, eg. hiroir> --namespace <namespace if not default> -o wide. Look at the "AVAILABLE" column and check the count if it aligns to last scaled replicas count, "IMAGES" column for the image that you have updated.
I want to update k8s deployment image from 22.41.70 to 22.41.73,as follow:NewReplicaSet: hiroir-deployment-5b9f574565 (3/3 replicas created) Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal ScalingReplicaSet 13m ...
how to ensure Scaled down pod replica is success
Just use the command below:git commit --amend
ChangingI formatted some code and typed on Github the messageformattingand clickedcommit changes.Is there a way to rename this commit fromformattingtofmtg?committed- in the sense of not pushing the repo with git but editing code from Github 'level' and commit changesCreate new & delete second to last commitOr there is ...
How to change the name of committed commit message on Github?
You can useJBOD storage typein your CR definition. This is one approach to providing increased data storage for Kafka brokers. It can also improve performance. Note that this is supported only for Kafka, not for Zookeeper.spec: kafka: storage: type: jbod volumes: - id: 0 type: persistent...
I have currently 3 brokers and 3 zookeepers that were created using the strimzi k8s operator but i need 3 volumes seperated for each broker, how can i achieve this?
Add volume for each strimzi kafka broker
No, the pointer did not get copied. The copy constructor of std::string creates a new buffer and copies the data from the buffer of the other string. Edit: the C++ standard used to allow copy-on-write semantics, which would share the pointer (and would require reference counting to go along with it), but this was disa...
I have a class: class A { public: string B; }; and then a code: A a1; a1.B = "abc"; printf("%p.\n", a1.B.c_str()); A a2(a1); printf("%p.\n", a2.B.c_str()); c_str's of both instances refer to same place (this I understand, copy constructor copied A bit-by-bit, and string internally stores data in char*, and po...
std string should crash but doesn't
0 Unfortunately, using GitHub templates is not useful if u want to have different templates. You can move to another folder, but u have to add to request parameter &template=my_template.md But u can use bash script which will create PR with your own template. https://github...
I have a github single repo (mono repo) that looks like the following: / - .github - docs - web - mobile Question: I want to create a pull request template only for web but not for other folders. Is it possible to achieve it on github? My pull_request_template.md: <!--- Provide a general summary of your chan...
Multiple Pull Request Templates in Mono repo
Looks like there is nothing special about ECS that you should not be able to do via cloudformation. here is a ECS quick stack cf template: https://s3.amazonaws.com/amazon-ecs-cloudformation/Amazon_ECS_Quickstart.template Checkout: http://www.cloudtp.com/2015/02/04/getting-started-ec2-container-service-ecs/ The key i...
I would like to use a cloudformation template to create my ecs cluster instead of spinning it up by hand, but I have yet to find a way. Is this simply not implemented yet, where you can create an ecs cluster as a resource in your cloudformation template, seems a bit odd they did not include that.
How to use cloudformation to create an ecs cluster?
Just change your regex to use.+instead of.*:RewriteRule ^(articles-bebe/.+)$ /cat/$1 [R=301,L]ShareFollowansweredOct 14, 2014 at 14:20anubhavaanubhava771k6666 gold badges582582 silver badges649649 bronze badges0Add a comment|
I’d like to redirect the content of a section of a website without redirecting the landing page of this section.Its a wordpress site by the way and we are talking about moving the categories that were under this «directory».Here’s a exemple of the categories and the redirect :/articles-bebe/alimentation-bebe/ --> /...
RewriteRule to move directory folder without moving landing page
If your company has an origanisation, then the owner of that organization canreview the audit log.If the fork was created in the past 90 days, anoperation:createentry, which lists all events where a resource was created, will be there.
I am in situation that, We had company project repositories, which was used by multiple member. One of our member has forked demo example repo in to our repositories. Is there any way to find who has forked github demo example project into company project repo and date or time.Please it would be helpful.
Git Fork how to find who has forked into our repositories
0 new MaxSizeConfig(20, MaxSizePolicy.USED_HEAP_SIZE); think you need to make that higher Share Improve this answer Follow answered Nov 27, 2015 at 7:17 digitebsdigitebs 84288 silver badg...
Hazelcast 3.3 does not respect the JVM size of a Map (MaxSizePolicy.USED_HEAP_SIZE). MaxSize 20 MB and LRU eviction policy is used in our example. mapCfg.setEvictionPolicy(MapConfig.EvictionPolicy.LRU); mapCfg.setEvictionPercentage(20); MaxSizeConfig maxSizeCfg = new MaxSizeConfig(20, MaxSizePolicy.USED_HEAP_SIZE); ...
Hazelcast max size of distributed map not respected
Looks like you have some syntax errors in the rules. Try this in the root htaccess to redirect towwwincluding subfolders.RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
I would like to redirectmydomain.com/subfoldertowww.mydomain.com/subfolderusing .htaccessThis is what I have tried.Root .htaccess:RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .? http://www.%{HTTP_HOST}/{REQUEST_URI} [R=301,L]Subfolder .htaccess:RewriteEngin...
htaccess rewrite non-www subfolder to www subfolder redirects to www root
In a kernel launch, the total number of threads that will be spun up on the GPU is equal to the product of the grid size and block size specified for the launch.Both of these values must be positive integers, therefore the only possible combination of these is 1,1 to create a launch of a single thread.CUDA kernels are ...
I'm currently programming some numerical methods on a gpu via pycuda/cuda and am writing my own kernels. At some point, i need to estimate error for at least 1000 coupled ODE's. I don't want to have to copy a couple of vectors with over 1000 entries, so i created a kernel (at the bottom of the post) that is a basic m...
GPU Kernel Blocksize/Gridsize without Threads
The problem was the nginx configuration. I replaced my long configuration files with the simplest config possible:server { listen 80; server_name domain.com www.domain.com git.domain.com; root /var/www/domain/; }Then I was able to issue new certificates.The problem with my long configuration files was (as f...
I had working Let's encrypt certificates some months ago (with the old letsencrypt client). The server I am using is nginx.Certbot is creating the .well-known folder, but not the acme-challenge folderNow I tried to create new certificates via~/certbot-auto certonly --webroot -w /var/www/webroot -d domain.com -d www.dom...
Certbot not creating acme-challenge folder
If this is about .css and .js changes, one way is to to "cache busting" is by appending something like "_versionNo" to the file name for each release. For example: script_1.0.css // This is the URL for release 1.0 script_1.1.css // This is the URL for release 1.1 script_1.2.css // etc. Or alternatively do it after th...
I've recently made changes to a clients website but the browser is showing a cached version. It's a static website with .html files. If I delete the cache on my browser it works but what i really want is to force every visitors browser to show the latest version without them having to manually delete their cache. I u...
How to force a browser to clear the cache on my website .html files
14 There is a way to do that. Please check here - name: view the secrets context shell: bash run: echo "$SECRETS_CONTEXT" env: SECRETS_CONTEXT: ${{ toJson(secrets) }} In that way you will expose all secrets without knowing names: And know what you need is go t...
I read some similar posts but none seem to answer this question. I can set individual GitHub secrets into environment variables in an Action if I know the name of the secret: env: PW_ID0007: "${{secrets.PW_ID0007}}" How can I expose all secrets as environment variables without knowing their names (either in bulk or s...
How do I get all GitHub secrets into env variables for Actions to access (powershell in my case)?
As @bradley-grainger says, in the 3rd-party MySqlConnector library, there is an Connection String argument called "CACertificateFile", which allows you trust an CA certificate which is not located in system trust zone.Unfortunately, this option is not available in the official Connector/NET. And for some reasons, i can...
As you know, there is aSystem.Net.Security.RemoteCertificateValidationCallbackin .NET that allows you to decide whether to trust the certificate sent by the server. You can use this in SslStream and ServicePointManager.Now im trying to use the same pattern during MySql Connector/NET. In MySql server-side, i set a self-...
How to add a custom SSL verification to MySql Connector/NET
Since there is no gemspec you can not point to it directly from github. You could clone the repo and build a local gem then use that. If for some reason you really want to point to github then you would need to build and then push the gemspec to the github repo.
I'm trying to use a forked version of the ebay api gem (https://github.com/codyfauser/ebay/) gem "ebayapi", :git => 'git://github.com/AutoRevo/ebay.git' However when I run bundle install, I get the error. Could not find gem 'ebayapi (>= 0) ruby' in git://github.com/AutoRevo/ebay.git (at master). Source does not conta...
'Could not find gem' error when specifying a forked version of a gem from Github
I've been using this solution for a few months without issues. It runs inside your cluster and keeps your secret refreshed.https://github.com/upmc-enterprises/registry-creds
We are pulling images from a private ECR (AWS) running Kubernetes that ships with Docker for Mac (minikube). We have a secret calledaws-cred. I created it using:kubectl create secret docker-registry aws-creds --docker-server=OUR-ACCOUNT.ecr.eu-central-1.amazonaws.com --docker-username=AWS --docker-password=SUPER_LONG_T...
Does Kubernetes cache docker-registry secrets?
Use the?regex symbol.RewriteRule client/(_([&/]*))? redirect.php [L]
I have a directory with a lot of php files. But now I'm not using them anymore, so I want to redirect to my new url.When the file exist I'm doing this:RewriteRule client/z_([^/]*) redirect.php [L]But how can I redirect when there's no file?ie:the file client/z_123.php exists and it works.but the file client/z_321 doesn...
htaccess redirect when there's no files
DNS cannot redirect your www site to non-www. The only purpose of DNS is to point both www and non-www to your server's IP address usingA,AAAAorCNAMErecords (it makes little difference). Thenginxconfiguration is responsible for performing the redirect from www to non-www.Your second server block is intended to redirect...
I'm usingNamecheapDomains andVultrHosting.I'm trying to redirect DNS www to non-www.www.example.com to example.comI contacted Vultr and asked how to do this with their DNS Manager, they said they would not help as it is self-managed. So I contacted Namecheap, they said they would not help becuase they don't have access...
DNS Records Redirect www to non-www
Install S3 (http://s3tools.org/download) Configure it: s3cmd --configure Create a bucket: s3cmd mb s3://my-bucket (alternatively, you can do this via a tool like S3Fox) Sync your local directory with S3: s3cmd sync /path/to/local/dir/ s3://my-bucket
I want my directory, and all its sub directories and files, to go straight to S3. Clone it. Is there an easy script/program to do that? I'm on Ubuntu linux.
How do I upload an entire directory to S3?
With that configuration the first action asks that the pod be annotated withprometheus.io/scrape=true. Have you set that annotation on the pods in question?
I am trying to scrape pod level info using prometheus kubernetes. Here is the config i am using:- job_name: 'kubernetes-pods' kubernetes_sd_configs: - api_servers: - 'https://kubernetes.default' role: pod relabel_configs: - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape] acti...
How to scrape pod level info using prometheus kubernetes?
We cannot achieve that.The changeset will be submitted when check in the changes, and CI build will be automatically triggered with the latest changeset version but not the Shelveset. And the changes with Shelveset are not really checked in, it will not trigger the CI build.Besides, For TFVC the services (including web...
We use TFS shelvesets to perform code reviews in our team. Now we plan to run SonarQube to analyze our code and simplify code review.I need to configure webhook of something else to run SonarQube. But TFS allows this for changesets but not for shelvesets. We use TFSC for version control and can't migrate to GIT to use ...
How to config webhook for TFS shelveset
The reference count is too low, and you can fix it by adding a ptr->reference() after ptr->show_all(). I have an explanation, but take it with a grain of salt: Glib::RefPtr doesn't increment the reference count of its object initially. The GtkWindow will have a reference count initially of 1. When your window is clo...
The guys from Gtkmm are comparing Glib::RefPtr with std::auto_ptr<>: Glib::RefPtr is a smartpointer. Specifically, it is a reference-counting smartpointer. You might be familiar with std::auto_ptr<>, which is also a smartpointer, but Glib::RefPtr<> is much simpler, and more useful. But for some strange reason, I can...
Destructing Glib::RefPtr causes failed assertions in the GTK 3 core
You should be mocking out your converter, rather than using a real one. Once you do that, you simply have your mocking library throw a new OOME when the convert() method is called. For example, with JMock you would do this: allowing(mockConverter).convert(with(any(int.class))); will(throwException(new OutOfMemoryError...
I have a method which tries to call an in-memory image converter, and if that fails, then tries to do the image conversion on disk. (The in-memory image converter will try to allocate a second copy of the image, so if the original is very large, we might not have sufficient memory for it.) public BufferedImage convert...
Can JUnit simulate OutOfMemoryErrors?
In such cases I would usually start to troubleshoot cluster by checking the state of pods in kube-system namespace using the command:$ kubectl get pods --all-namespaces -o wideThere should be several pods related to networking, running on each node, e.g:NAMESPACE NAME READY STATUS RESTARTS...
I was successfully able to setup the Kubernetes master . I created the Kubernetes slave node by installing Docker and kubelet (using kubeadm) . After running the join command the slave node is joined to the cluster . I am able to verify that from master node . But the pods that are getting deployed in slave node is al...
Pods running in Kubernetes slave node are in ContainerCreating state
You candefine the image to use per job.For instance:before_script: - apt-get install --yes cmake libmatio-dev libblas-dev libsqlite3-dev libcurl4-openssl-dev - apt-get install --yes libarchive-dev liblzma-dev build:precise: image: precise:base script: - mkdir build/ - cd build - cmake -D CMAKE_BU...
Here is my problem setup with GitLab and its integrated CI service. I have a current GitLab 8.1. and a gitlabci-multi-runner (0.6.2) with Docker support. After extending the ubuntu:precise image to includegitandbuild-essentials(now namedprecise:base) I got the following.gitlab-ci.ymlrunning:image: precise:base before_s...
Multiple Docker images in .gitlab-ci.yml
It turns out I had two versions of Postgres installed simultaneously, so I was able to backup with a simple 'pg_dumpall' before upgrading the clusters. This manpage and this blogpost were both helpful in sorting things out. Because I had a lot of onboard storage free I let pg_upgradecluster populate the default data f...
So, I was careless and upgraded Ubuntu from 18 to 20 -- thus postgresql from 10 to 12 -- WITHOUT making backups of my postgresql-10 cluster. Now that I'm looking into upgrading the cluster to work with 12, I'm realizing that was a mistake. Is there a way to back them up before attempting to upgrade them, now that post...
Backing up old clusters AFTER upgrading Postgresql
0 Make sure you have done the following steps during the process of integration of AWS Lambda with PostgreSQL: Create an IAM role with required permissions for the Lambda function. Create a Lambda function to handle email sending. As AWS Lambda Extension for RDS won't ...
I am working on one use case where I have to trigger lambda to send email if some event occurs, here event is postgresql trigger that will be attached to one table. AWS provide AWS lambda extension with AWS RDS for easy connection to Lambda. But in my case I am running postgresql in docker container, do we have any wa...
How we can install aws lambda extesnsion to access aws lambda from postgres trigger if we are running postgres on docker container?
You can do:git branch --contains tag1.0
Git tag commands provide information about all the tags on that repository. For example, when I rungit tagon my repository, it displaystag1.0 tag1.1 tag1.2Let's say my repository has two branches. How would I know which branch thetag1.0tag was related to?Yes, I know that if I dogit show tag1.0, I can tell whether this ...
Git tag information - Which branch am I on?
You do not want to delete your Gemfile.lock. What you should do is reset the lock file and then bundle again.git checkout Gemfile.lock bundleIf you delete the lock file and bundle, you are most likely going to upgrade a lot of gems in your app. Even if you have done a good job ofpessimistic versioning, you'll still upg...
I have a merge conflict and know the conflict but confuse as to how to fix it.<<<<<<< HEAD orm_adapter (0.5.0) ======= arser (2.3.1.4) ast (~> 2.2) >>>>>>> master <<<<<<< HEAD warden (1.2.6) rack (>= 1.0) ======= unicode-display_width (1.1.1) >>>>>>> masterDo I just add the conflict gem into gem file?
Merge conflict Gemfile.lock
Well, all of today's modern operating systems use something called virtual memory. Every address generated by CPU is virtual. There are page tables that map such virtual addresses to physical addressed. And a TLB is just a cache of page table entries. On the other hand L1, L2, L3 caches cache main memory contents. A T...
Could someone please explain the difference between a TLB (Translation lookaside buffer) miss and a cache miss? I believe I found out TLB refers to some sort of virtual memory address but I wasn't overly clear what this actually meant? I understand cache misses result when a block of memory (the size of a cache line)...
TLB misses vs cache misses?
First of all, I imagine you are planning on adding code to your python script and that that is why you use python. I assume you used the crontab of the user that can run the command.When you execute a command incronyou must specify the full path to the command. To find the full path tokubectl, you issue the following i...
I have below small python scriptimport os os.system('kubectl get pods --context students-cmn')when i run this command manually from terminal it is working , no issue , so i configured it to run as a cron job , but when cron job triggered getting below errorsh: kubectl: command not foundwhy , when the cronjob triggered ...
kubectl terminal command not working from crontab , how to fix?
As everything is being redirected tohttp://mydomain.com.uk, there is no need to remove thewwwfromhttp://www.mydomain.comwhen present.You may try this at the .htaccess file at root directory ofmydomain.com:Options +FollowSymlinks -MultiViews RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com [NC] RewriteR...
I need to redirect the domain name:http://mydomain.comtohttp://mydomain.co.ukIn such a way that anytime a visitor visits the .com he will get redirected to the .co.uk version. Both domain names direct to the same hosting provider.In addition to that, I need to rewrite the rules to render the sites without thewww.. As ...
How to redirect a .com domain name to .co.uk domain using the htaccess?
For your purpose can be used function F_CRON_NEXT_DATE from githubhttps://github.com/frankiechapson/CRON-Next-Date
I want to make a oracle DB job which will run every minute and will call a stored procedure, the procedure will pick a cron expression from a configuration table and then check whether current systimestamp matches the cron or not, if it matches the cron then another stored procedure will be called which will do some db...
How can I use cron expression to schedule DB jobs in oracle?
yes, you'd need to modify the azure-pipelines.yml for that. no. one for all or one for each dockerfile is okay not necessary, you could use a .sh script, but probably easier to just have docker tasks in the azure-pipelines.yml it is. you would need to do something like this: steps: - task: Docker@2 dis...
I'm attempting to learn Azure DevOps Pipelines and AKS. The ultimate goal would to Build and deploy to Azure Kubernetes Service, but I'm breaking this into smaller parts so understand what is going on at each stage. Thus, my current goal is to Build and push to Azure Container Registry. I'm working with a pretty basi...
Building multiple images from a monorepo where each service has its own Dockerfile
Normally with GitHub, all of what you have described works perfectly, I have not had any kind of similar problems. One thing about git, a commit is a bit different than a commit in SVN. With git, you use push and pull to interact with your remote repository. I am not sure what you mean when you say: If the other guy ...
This may be a stupid question, but after several times trying to get this right I'm getting frustrated. I want to use github to host my project, we are 2 people working on the project and the aim was to share the work. And help each other. I managed to create the resepetory, and committing to master branch. If the oth...
Egit / Github - Get files from partner
8 If you're doing this on your chromebook, you should have developer mode enabled so that you can enter the console and execute Linux commands. Once developer mode is enabled, enter the console with ctrl+alt+t and then type in shell. First you'll want to change the permis...
I am trying to connect to my ec2 instance from my chromebook using the secure shell extension but I keep getting the following error: Loading NaCl plugin... done. ssh: connect to host (public DNS) port 22: Connection refused NaCl plugin exited with status code 255. I have been following the steps on this site but with...
How do I connect to aws ec2 server from chromebook using the secure shell extension?
Once you call mapExpSessData.erase(tmp_sessionId);, the node in the map that itr_del points to has been deleted. Calling delete itr_del->second; is then Undefined Behavior because you try to access deallocated memory. You need to delete the value in the map first, then delete the node in the map: delete itr_del->sec...
I have a class "DMRecSessionObj" whose objects are dynamically allocated using new and stored in a map. static std::map<string,DMRecSessionObj*> mapExpSessData; DMRecSessionObj* dmRecSessObj = new DMRecSessionObj(atoi(p_callNum),atoi(p_totCalls), sessionKey); mapExpSessData.insert(std::pair<string,DMRecSessionObj*>(s...
How is iterator different from a pointer during the deallocation of memory in C++
This should work regardless of whether it's raised from a fork or not.${{ github.event.pull_request.base.ref }}By the way, you can add a step in your workflow to dump thegithubcontext object to see all available properties.- name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} ...
I'm trying to test a PR handling action on Github.For that I'm creating a PR in my own repo and trying to use${{ github.base_ref }}, but it is empty. Thishelp pagesays thatGITHUB_BASE_REFis only available for PRs from forks.Is there a way to get the target branch for a PR event, regardless of whether it is from a forke...
Get target branch ref in Github Actions for PR that is [not] from a fork
You're waiting for the response of an async call, and it's likely that you aren't getting one. Check theSES API logs in CloudTrailto make sure that the request is actually being made. It sounds like your lamdba function can't access SES, which would happen if you are running it in a VPC. You would need to add a NAT Gat...
I am using nodejs version 8.1 and severless frameworkin my serverless.yml I have:provider: name: aws runtime: nodejs8.10 region: eu-west-1 iamRoleStatements: - Effect: "Allow" Action: - "ses:GetIdentityVerificationAttributes" Resource: "*"and my lambda looks like this:const AWS = require('aws-sd...
aws lambda SES function timeout
Since version 0.22 the Alertmanager supports basic authentication and https. Check theoriginal documentationto see how to configure it, since your configuration does not seem to match the description there.The details on how to hash the passwords and test the whole setup can be adapted from thePrometheus documentation....
I would like to secure my Alertmanager with tls and authentication, so that in my network, not everyone is able to access the public facing end point. I don't want to use nginx server for proxy. This will be my prometheus configuration:global: scrape_interval: 15s # Set the scrape interval to every 15 seconds. De...
Configure HTTPS and Basic Auth for Alertmanager
The sameGitHub API for getting an issuegives you the sate of the issue anbd who closed it, but... not if it is "resolved".You would need to use theGraphQL APIin order tocheck if an issue is closed by a resolved (ie merged) PR (Pull Request)
I'm Working on a GitHub API project, I want to analyze issues of a project, such as who caused how many issues, how often someone causes an issue, etc.I successfully extracted all the issues of a project using the GitHub API. My question is this:How can I found the person who solved a specific issue? The person who clo...
GITHUB API who is the issue solver?
You should export your data from sqlite into a sql dump file and start using postgres locally. If you continue to use sqlite locally and postgres remotely, you will have a bad time.After you've migrated locally, follow this guide onImporting and Exporting Heroku Postgres Databases with PG Backups.Also, don't usedb:push...
I would not ask this if my peculiar case had already been answered on this forum so please pardon my re-asking.I have a rails app which uses an sqlite3 database for development and it already contains all the data I need for the app. On pushing this app to heroku I was unable to view the app over there until I had to r...
Rails: Populate Heroku database with development.sqlite3 data
If you want to reset local changes you can just dogit checkout -- .This will delete all changes of all tracked files. If you have new files, you can just delete them withrm.Now the branches development and master will point to the same ref.ShareFollowansweredDec 19, 2018 at 16:25mbuechmannmbuechmann5,52355 gold badges2...
My gitMaster branchis working clean without problems and i "git push master" it, Then i created a new branch calleddevelopmentand i messed up in this branch in my local machine.i didn't do any commit or push yet.can i check out to my master branch and simply delete the development branch. if i do what happen to local c...
Messed up with my local git branch. how do i revert back to cleanly working master branch
You could use the approach you have described to pack the data into textures and write special HLSL shaders to compute spring forces and then update vertex positions. That approach is totally valid but can be troublesome when you try to debug problems because you are using texture pixels in an unconventional way (you c...
Supposing, for example, that I had a 10x10 "cloth" mesh, with each square being two triangles. Now, if I wanted to animate this, I could do the spring calculations on the CPU. Each vertex would have its own "spring" data and would, hopefully, bounce like whatever type of "cloth" it was supposed to represent.However, th...
How could I read information off the graphics card after processing?
Assuming that you have access to the original repo asB, you couldcherry pickthe commits made byA. This way you would be doing those commits as if they were being made byB.Git cherry picking: Given one or more existing commits, apply the change each one introduces, recording a new commit for each.EDIT:By default cherry ...
I was asked to split one big commit into multiple smaller ones in someones repository. So I forked the repository. Did rebase and made multiple commits.Basically at the moment I have this on my side:smaller commit 3 [Author: A]smaller commit 2 [Author: A]smaller commit 1 [Author: A]some older commit [Author: C]While t...
Merging changes after splitting a commit without mentioning the author name
Without cronjobs you could use a PHP class to shedule your tasks. Something like the PHP-Deamon from Shane Harter.https://github.com/shaneharter/PHP-Daemon
I have a situation where user defines when he wants his notification to be sent.What I need to do is to make that happen, but withoutCron job. I thought something like :while(true){ //something that is checking which time is it now and comparing desired time //code for sending notifications(already got it) ...
Sending notifications on exact time in future via PHP without using Cron