Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Most likely the problem is with the path you are setting:crontabworks in a very limited environment, where paths like~are not understood.For that, instead of saying* * * * * /usr/bin/ruby ~/Desktop/script.rb # NO!
# ^say* * * * * /usr/bin/ruby /home/your_user/Desktop/script.rb # YE... | I am trying to run a selenium ruby script on Chrome through crontab but don't see anything run.I tried the following as suggested in other questions:crontab -u shamanth -eAdded the followingMAILTO=""
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
export DISPLAY=:0 g... | Running ruby selenium scripts on Cronjob - Chrome |
10
This is behavior of ssh rather than git.
In your ~/.ssh folder you have your private key. The name of the file for your private key is id_rsa by default. When ever your ssh client has to login to a ssh server it reads the key from that file.
But in some cases you may wa... |
I'm trying to configure another GitHub account to be able work from my machine. I started to looking around and I found:
Set up multiple ssh profiles by creating/modifying ~/.ssh/config. Note the slightly differing 'Host' values:
So as I (already) have multiple accounts working (I don't remember how and when I did t... | I don't have ~/.ssh/config file but multiple GitHub accounts works, how? |
Found it!
The upgrade restored this file /etc/cron.d/0hourly that was missing on my installations as i have my crontab file running parts in /etc/cron.hourly.Basically the system were executing twice the same scripts.
Deleted that file and everything is back to normal.Thanks anyway!ShareFollowansweredAug 8, 2015 at 16:... | Just updated a couple of my CentOS to latest version 6.7 via yum (official repository) and since then i am experiencing problems with cron while executing cron.hourly scripts. It seems that the run-parts program starts twice some scripts in the cron.hourly folder.From cron log i can see (look at the mailgraph script):A... | Centos 6.7 cron bug run-parts starts twice |
You might also want to have a look at the cost of storing the cache data, in terms of your effort and CPU cost, against how what the cache will buy you.If you find that 80% of your forum views are looking at the first page of threads, then you could decide to cache that page only. That would mean both cache reads and w... | I've created a forum, and we're implementing an apc and memcache caching solution to save the database some work.I started implementing the cache layer with keys like "Categories::getAll", and if I had user-specific data, I'd append the keys with stuff like the user ID, so you'd get"User::getFavoriteThreads|1471". When... | Caching paginated results, purging on update - how to solve? |
-2Instead of using NFS to expose the backing file system, I think it would be easier to set up docker-registry (with a volume on the master1, so the data is persisted there) and on the other nodes pull images via docker protocol by e.g.docker pull master1:5000/image:latestShareFollowansweredJun 8, 2017 at 14:28RotsRots... | I'building a mesosphere infrastructure on AWS instances with 3 master servers (running zookeeper, mesos-master, marathon and haproxy) and N slaves (running mesos-slave and docker).If I run the same container on different slaves marathon downloads on each slave the same image. I would like to share one single nfs export... | Share docker images between hosts with NFS |
Incompatiblemeans that the plugin does not work with the version of SonarQube you have installed.An example of an incompatible plugin would be one where the plugin relied on an API that was removed in your current SonarQube version. You may be able to use that version of the plugin if you downgraded your SonarQube inst... | I just upgraded from SonarQube 6.1 to 6.7.7. For SonarJava, it automatically installed 4.15.0.12310 (it was 4.10.0.10260 before). In the Marketplace, when I hover over the available versions from 5.0-5.13, it says “Incompatible”. When I hover over 5.13.1+, it says “Requires system update”. What does it mean for it to b... | In the SonarQube Marketplace, what does it mean for a plugin to be incompatible? |
Try putting your url in quotes :* * * * * /usr/bin/lynx -term=vt100 "http://abc.com/dir1/di2/script.php?action=add&config=xyz" >/dev/null 2>&1For the little explanation,&is a special character which put the process in the background, so you have to put the url in quotes, otherwise cron try to put the first part in the ... | I have the following cron job command:* * * * * /usr/bin/lynx -term=vt100 http://abc.com/dir1/di2/script.php?action=add&config=xyz >/dev/null 2>&1My PHP script does not recognize _GET['config'] and I get a "Cron Daemon" email message which seems to alert me that the crontab instruction is not correct.If I take out the ... | Multiple Query String Items in crontab Job |
No. The only way to prevent things like this are git's internal pre-commit or update hooks. Those hooks get called before to push is accepted.
GitHub itself doesn't support pre-commit or update hooks. Only web hooks are supported. But these are called after the push. So too late to prevent certain types.
|
Is it possible to restrict certain git users to merge git branches on GitHub?
I want to let users commit, pull and push changes in current branch, switch to another existing branch, but do not allow to merge branches. Is it possible on GitHub.com or standalone git repository?
| Restrict certain GitHub users to merge branches |
You can useVAL("<label>_id")to group on:SELECT time_bucket('$__interval', "time") AS "time",
VAL("path_id") AS "path",
AVG("value") AS "used"
FROM "disk_used_percent"
WHERE $__timeFilter("time") AND
"labels" ? ('host' == '$host_pg')
GROUP BY 1, 2
ORDER BY 1;Side note:also avoid using the$__tim... | I am creating SQL queries from Grafana intoPromscale. There are the metric and the labels. I can not get the correct way to group by some of the labels. I tried:SELECT time_bucket('$__interval', "time") AS "time",
AVG("value") AS "used"
FROM "disk_used_percent"
WHERE $__timeFilter("time") AND
"labels" ... | How to group on labels in aggregate query to Promscale |
0
Off the top of my head, a way of doing this is specifying secret headers in nginx which will bypass cache, thus theoretically purging the existing files.
But also, there is nothing wrong in your way of doing it. The only ugliness is these logs, which invariably show up as... |
I am attempting to clear the nginx cache when the CMS (ExpressionEngine) publishes new content. I have been just purging the entire folder and letting the cache rebuild itself. It seems to be working fine, but it is filling up the error logs with these entries:
2014/12/15 12:35:09 [crit] 21686#0: unlink() "/var/ngin... | Manually Purging Nginx Cache Causes Errors in Log File |
I have added the full-path for the ".htpasswd" to solve the issueAuthUserFile "/home/folder/folder/.htpasswd" | I'm trying to protect my website with a username and password.This is my .htaccess before adding the Password ProtectionRewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . inde... | Password Protection with htaccess with Yii Framework |
When a subrequest, say,mydomain.com/loginis hit with the url or the page is refreshed, the browser sends a requests tonginxand nginx won't be able to find theloginpage anywhere and will return a404 error. This is because nginx won't be able to pass the subroutes toindex.htmlpage which in turn can serve the subroutes. T... | We have deployed our Ember App using Lightning Deploy Strategy which involves:EC2 instanceNginx (HTTP Server)Redis, configured on same instance (to serve index.html)compiled js and assets from AWS S3When, upon hitting the instance, the index.html gets served from Redis, and subsequently on clicking any route in the App... | Ember Cli Deploy via Lighting Strategy |
Once the certificate is installed on your web server, you need to enter the https url in the dev app settings, I believe it's called "Secure Canvas URL". That's all that facebook requires of you. | You must provide an SSL certificate in the Dev App settings to avoid having your app disabled.https://developers.facebook.com/roadmap/Do I have to upload my certificates anywhere? Where? | facebook update: How to provide an SSL certificate |
A direct way is to use GitHub API, it is easy to do and don't need xpath.
The URL should be:
https://api.github.com/repos/{owner}/{repo}/releases/latest
So if you want to get the latest release version of the repository. Here is an easy example only using the requests module:
import requests
response = requests.get... |
Recently,I make an app and upload it to my GitHub release page.I want to make a function to check update to get the latest version(in the release pages).
I try to use requests module to crawl my release page to get the latest version.Here it a minimal example of my code:
import requests
from lxml import etree
respons... | How to get the latest release version in Github only use python-requests? |
This did the trick... it's not perfect according to my own question though as it ignores ALL query params, not just utm ones. When I need to actually implement a non-utm value which changes the content I will need to revisit this regex:
sub vcl_recv {
set req.url = regsub(req.url, "\?.*", "");
}
|
Can I 'ignore' query string variables before pulling matching objects from the cache, but not actually remove them from the URL to the end-user?
For example, all the marketing utm_source, utm_campaign, utm_* values don't change the content of the page, they just vary a lot from campaign to campaign and are used by all... | Ignore utm_* values with varnish? |
I'd recommend a layout where:Any container can perform its unit of work for any userOne container per podEach component of your application has its own (stateless) deploymentIt probably won't work well to try to put your entire application into a single multi-container pod. This means the entire application would need... | I am trying to build a web application with Kubernetes and Amazon Web Service.
I believe there are many different approaches but I would like to ask for your opinions!To make it simple, the app would be a simple web page that display information. User logs in, and based on filters, get specific information.My reflectio... | AWS K8S web application architecture choice |
The truststore (on Tomcat it's configured forthe SSL connector in server.xml) can hold the root of the certificate chain of the client certificate, not the certificate itself. That is, when a certificate is created, it is signed by a CA - certificate authority. If the CA cert is trusted, all certs singed by the CA are ... | I have a thrift endpoint that someone created who is not longer with our company. They implemented the authentication via client side certs, but I having a hard time wrapping my head around how it all works. Does anyone know of a tutorial, or howto on this topic.All I really have is a sample client class. Here are a... | Java certificate based authentication |
coverlet is the nuget responsible for sonar integration to x unit test projects. Addingcoverlet.msbuildandcoverlet.collectornuget resolve the issue. | I am using sonar integration for the c# x unit test project. But always test coverage is coming as 0. How can I resolve this | Sonarqube: Test coverage comes as 0 |
A physical address points to a specific place in a specific RAM chip. A virtual address is what most code sees nowadays, allowing the code to not be tied directly to specific locations in RAM. This use of virtual memory lets parts of programs and their data be stored on disk when not in use, then brought back into RAM... |
And by the by, what does "svchost.exe error" imply when "the memory cannot be written because of 0xc000000e failure"?
Thanks as usual!
| What is a physical address and virtual address? and how do they work? |
Replace ErrorDocument with
RewriteRule (.*) /handler.php [L]In your handler.php, you can then capture the REQUEST URI, POST data whatevere and then based on your logic, you can decide whether to return a HTTP/1.1 404 Page not found error or return normal response HTTP/1.1 200ShareFolloweditedJan 17, 2014 at 10:50Light... | Currently, I useerrordocument 404 /handler.phpso that I can have dynamic urls and analyze them all through that page. Now I find that I can not post data to a page because errordocument doesn't pass it through tohandler.php. How can I use .htaccess to send all 404 errors to handler.php and accept post data? | I am using errordocument to send 404 errors to a handler php page, but errordocument scrubs post data. How can I get around this? |
Have you tried something like that:RewriteEngine On
RewriteRule ^project-detail/([0-9]+)$ project-detail/?pro_id=$1 | I have no idea how to play with .htaccess file to change / hide variables from URLI want to use .htaccess file ofWordPressmy .htaccess file already contains this scripts:# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /my_site/
RewriteRule ^index\.php$ - [L]
RewriteCond %{R... | .htaccess: Hide URL variables |
For those looking for a solution, you unfortunately need to tell sonarqube to ignore this file explicitly. Not an ideal solution, but what I ended up with.docs:https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/I put my filename insonar.coverage.exclusions. | I have a JavaScript app where we generate a code coverage report using Istanbul and use SonarCloud for static analysis.There are two ways we exclude code from the Istanbul. The first is to set exclusion paths. Injest.config.jswe have this to exclude patterns:"coveragePathIgnorePatterns": [
"source/legacy"
]The second... | SonarCloud requiring code coverage for files ignored with Istanbul |
4
Looks like mysql --help does not have --ssl-mode option. I removed it and was able to connect. (below is the command i used, just for reference)
mysql -h <aws-account>.rdsinstance.<region>.rds.amazonaws.com --ssl-ca=rds-ca-2019-root.pem -u <user> -P 33306 -p
in mysql f... |
While trying to learn about aws services, I'm trying to connect to RDS instance from my ec2 instance using certificate.
I'm using this command to connect -
mysql -h <aws-account>.rdsinstance.<region>.rds.amazonaws.com --ssl-ca=rds-ca-2019-root.pem --ssl-mode=VERIFY_IDENTITY
But i get this error -
mysql: unknown varia... | Error mysql: unknown variable 'ssl-mode=VERIFY_IDENTITY' connecting to Mysql RDS using certificate |
It seems that serverless framework requires the rate parameter to be astringinstead of an array. Try the following instead:export default {
handler: `${handlerPath(__dirname)}/handler.main`,
events: [
{
http: {
method: 'post',
path: 'hello',
request: {
schemas: {
... | While trying to doserverless deployafter adding cron expression for running the lambda for every 2mins for the project which I created through aws-nodejs-typescript-ts template, I'm getting this error:Resource handler returned message: "Parameter ScheduleExpression is not valid. (Service: EventBridge, Status Code: 400,... | Serverless: Parameter ScheduleExpression is not valid |
+50You can test outKonsentus/action.bump-version-and-tag:This action will find the last version tag made on the current branch, bump it and tag the current commit with the new version.If a package.json file is present, the version contained will also be bumped to the same version as the tag.As tags are commit specific ... | This question is very close tothis 3 year old question from 2019.I'm seeking advise/reference to a bot/github action that semver bumps up the package.json version (as a commit) on merge/rebase pending on the labelsmajor,minororpatchthat the PR has. | Automate semver incremention in package.json by github actions based on labels |
8
I am not sure of why resolving DNS is slow in the containers, but I have procedure which I follow to resolve the DNS in the docker containers.
To verify DNS resolution issue:
# docker run busybox nslookup google.com
Server: 8.8.8.8
Address 1: 8.8.8.8
nsl... |
On host machine, it's very fast to lookup a domain. But inside docker container, it's much
slower and sometimes timeout.
The host machine is a virtual host, and it's dns server address is 127.0.0.1 (weird but true). So I've tried to modify /etc/resolv.conf inside container and set the dns server to be 172.x (host's ... | slow or timeout of dns resolving inside docker |
You can't get a heap dump on a process that is no longer running. Next time you start Tomcat, you're going to have to edit the file in the /bin directory called catalina.sh first so that it contains options to automatically dump the heap if it runs out of memory.
What you need to do is to edit the JAVA_OPTS variable ... |
My tomcat application crashed due to memory leak.
I want to take the heap dump on the crashed system/jvm.
Is it possible? I am using windows/tomcat 6
How?
| Taking a heap dump on already crashed system |
If you have.dockerignorefile then it might be you added to ignore hidden files like.git,.vagrantetc.If.dockerfileignoring hidden files then either you can enable to not ignore or change file name.For more info about .dockerignore file | I have a Dockerfile and there is a syntax like thisCOPY ["Gemfile", "Gemfile.lock", "Procfile", ".env", "/huginn/"]I useRUN /bin/bash -l -c "ls -a"to check file cope status, I find .env file doen't be copied to the image.I change the .env file name to test.env and useCOPY ["Gemfile", "Gemfile.lock", "Procfile", "test.e... | Hidden file .env not copied using Docker COPY |
You can read about the scopes in "About scopes for OAuth Apps".
In your case, as described in "Pushing to remote Git repository from a build"
The scope needed is public_repo for a public repository or repo for a private repository.
public_repo
Grants read/write access to code, commit statuses, collaborators, and... |
I'm looking at connecting my GitHub account in the version control section of PhpStorm. The JetBrains guide suggests using a personal token but as I'm new to personal tokens in GitHub I'm unsure when creating the personal token what scopes I should be selecting so that it can work but doesn't have to much access.
Can ... | GitHub personal token for PhpStorm |
This issue has been fixed in version4.0of the Java Analyzer, only compatible with SQ LTS5.6. See corresponding JIRA ticketSONARJAVA-1179 | We are using Java 8 and Dependency Injection (GUICE).
Currently we have a false-positive Sonar issue, about unused method, although this method is invoked via reflection from GUICE Injector, due to Inject Annotation.Affected code:@Inject
private void setTransactionalCommandStack(TransactionalCommandStack transactional... | Java method with @Inject annotation: False-positive for the rule "Unused "private" methods should be removed"? |
Is there an alternative to this function in JS?Not that I know of.Your best best would be using Ajax to connect to a PHP or other server-side script that does the lookup for you. | This question already has answers here:Closed13 years ago.Possible Duplicate:Can I lookup the IP address of a hostname from javascript?Can you get the IP address of the current page where the script is running?
I can get the current document's domain usingvar domain = document.domain;.
In PhP you can get the IP address... | Get IP of domain with JavaScript [duplicate] |
What you need is the following
char **files = NULL;
size_t files_i = 0;
//...
int insert( char ***root, const char str[], size_t i )
{
char *p = malloc( strlen( str ) + 1 );
int success = p != NULL;
if ( success )
{
char **tmp = realloc( *root, ( i + 1 ) * sizeof( char * ) );
if ( ... |
I have to store some strings given in the args of a c code. I iterate over them but I can't store them properly because I don't know the length of those and neither their number. The better method should be a 2d array of pointers, so I can dynamically allocate memory for every new string. The problem is that I'm new o... | Create a 2d array of strings using dynamically allocation in c |
Why am I getting the permissions denied error even after adding the SSH key to Github?Because you are using an SSH key, which has nothing to do with HTTPS authentication (based on username/password)How do I add my system as a trusted device so that I don't get the permissions denied error?Either set the proper SSH URLg... | I have a new system (MacBook Pro) and want to set it up such that it can directly push to my remote repository on GitHub. The steps I followed were:Generated an ssh key using the commandssh-keygen -t rsa.Copied the content fromid_rsa.pubinto the SSH key area of my Github account.Created a repository on GitHub.Copied th... | Can't push changes from my local system to origin, even after adding public ssh key to Git Hub |
Deploy them to Kubernetes, but somewhere other than your production environment.There are a couple of straightforward ways to get Kubernetes clusters. You can use tools likeminikubeorkindto get a Kubernetes cluster on your local system (in a VM or a Docker container, respectively); if you're in a cloud environment the... | I am creating a very small microservices environment for testing purpose.
It looks as follows:As you can see on the image, Istio is installed in the k8s cluster to use service mesh.I wrote theBOOservice, but do not know how to test the service, because it callsFOOandZOOservices.I could mockFOOandZOOservices but when i... | How to test my microservices before deploy to kubernetes? |
Answering my own question:The restart policies don't map 1:1 from docker compose to docker cli.Docker Composedocker-composepolicies can be foundherecondition: One ofnone,on-failureorany(default:any).services:
service-name:
deploy:
restart_policy:
condition: on-failureDocker CLIdocker clipolicies can... | When I try to run this withdocker stack deploy -c docker-compose.yml stack-nameI get the error:Error response from daemon: invalid RestartCondition: "unless-stopped"I need both the superservice and the docker container to restart if interrupted. Without therestart_policy(using only--restart unless-stoppedfor the contai... | Docker stack deploy with restart_policy throws "Error response from daemon: invalid RestartCondition: "unless-stopped"" |
Just run:git diffIf you want nice coloured output from such commands, it's worth setting the config optioncolor.ui, as in:git config --global color.ui auto | I am a newbie in GIT. I am developing project on a Ubuntu machine.In my project root path, when typegit status, I got the following output on terminal window:# On branch develop
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard chan... | GIT newbie: how to check what has been changed in my case? |
You can run your own TextSecure server, but first of all you need to create accounts at Twilio, AWS S3, Google Developer and Apple Developer.
Twilio - for sms broadcasting(for registration in TextServer).
AWS - for documents in TextSecure.
Google developer - for push notifications.
Apple Developer - for push notificat... |
I am trying to start my custom TextSecure (Signal) server. I want to use it for all functions that Signal has (both SMS and telephony). I believe that I also need redphone server to run telephony. I've found github repos for TextSecure server only https://github.com/WhisperSystems/TextSecure-Server but no repos for re... | Run custom TextSecure (Signal) server |
With the upcoming version 2.1 of the Sonar Runner, this issue will be solved:https://jira.sonarsource.com/browse/SONARUNNER-43 | I have the following project structure:module1module2module2.1module2.2module2.3And have sonar-project.properties defined as:sonar.projectKey=example
sonar.projectName=project
sonar.projectVersion=1.0
sonar.language=xml
sonar.sources=.
sonar.sourceEncoding=UTF-8
sonar.forceAnalysis=true
sonar.projectBaseDir=.
sonar.mo... | How to run sonar-runner with module's baseDir set to root project dir |
1
You need to set the baseurl value in the config file when deploying to GitHub as a project page.
For example, if your GitHub repository is at https://github.com/lorenzo/myblog, then you need to have the following in the config file:
baseurl: "/myblog"
Otherwise if your r... |
I'm trying to build up a webpage using Jekyll and GitHub as host.
However the site looks different when pushed to with hub.
Here's how I see it on my local page
while on GitHub I get this
How could I fix the problem?
| Visulaization problem in uploading webpage with Jekyll |
If you are looking for a registrar for a niche domain the best way could be you visit the Registry's web site. These may list authorised registrars. The problem with going to non authorised registrars is that they will in turn have to go via a authorised registrar and that will only put up the price you pay.The list ... | 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 questionIf someone wants a .LY TLD (top level domain) or .IO TLD, how do I determine which domain registrar (e.g., GoDaddy, Register.... | How to determine which domain registrars (e.g., GoDaddy, Register.com) support which top level domains (TLDs)? [closed] |
Solution:I added force_array attribute in xml filter plugin like below:filter {
xml {
source => "message"
store_xml => false
force_array => false
# other statements ...
}
mutate {
gsub => ["access_text" ,"\s+", ""]
gsub => ["access_text" ,"%%", ","]
gsub => ["access_text","^,",""]
... | Below statement is simple incoming message andAccessListshould be parsed by Logstash(v8.12.1):<EventData>
<Data Name="AccessList">%%4416 %%4417 %%4418 %%4419 %%4420 %%4423 %%4424 %%1538 </Data>
</EventData>I scrape this text with following configuration but split in mutate filter plugin is not working correctly:fil... | Logstash Split Issue |
That might happen because the lack of resources on your system (e.g RAM). | I am running into below error during terraform apply.Error: timeout while waiting for plugin to start
Debug LOG:
2020-07-09T13:15:46.551-0400 [DEBUG] plugin: plugin process exited: path=/.terraform/plugins/darwin_amd64/terraform-provider-kubernetes_v1.11.3_x4 pid=48631
2020-07-09T13:15:46.551-0400 [DEBUG] plugin: plug... | Terraform apply throwing Error "timeout while waiting for plugin to start" |
I have used aws cli for such problems.
create a list of sqls.sql_list.txt
CREATE EXTERNAL TABLE IF NOT EXISTS database_1.A;
CREATE EXTERNAL TABLE IF NOT EXISTS database_1.B;
CREATE EXTERNAL TABLE IF NOT EXISTS database_1.C;
----------
exec_sqls.sh
input_file=$1
while IFS= read -r sql
do
echo "$line"
aws athena sta... | I have to create 20 table in a Athena data base at the same time. Can I do it with a single execution.example :CREATE EXTERNAL TABLE IF NOT EXISTS database_1.A
;
CREATE EXTERNAL TABLE IF NOT EXISTS database_1.B
;
CREATE EXTERNAL TABLE IF NOT EXISTS database_1.C | Is there any way we can run multiple SQL queries at the same time in Athena Database |
Have you tried using thejsonoperator in your query? You can see a demo here if you scroll to min 42:https://grafana.com/go/observabilitycon/2020/keynote-what-is-observability/ | I am parsing Traefik logs into Loki and I have a log entry like:{
"Request": "{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/test\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\",\"RawFragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\... | Can Grafana/Loki convert a string to object and expand it? |
4
I ran into the same issue when I tried to install postfix on a phusion/baseimage, which replaces ubuntus init.d system with runit. If you issue "service postfix restart", this nevertheless runs the postfix script in /etc/init.d, which in turn does A LOT of things I don't ... |
I have an issue with a Postfix instance in a Docker container. I'm using supervisord to make sure the services run in the background. However, if I build the image, start it up for the first time and try to send a mail, Postfix complains that it can't resolve the MX record for the given address (status=deferred (Host ... | Postfix in Docker container can't resolve MX unless it gets restarted once |
2
With passivation, the entry is EITHER in memory (activated) OR in cache store (passivated). Therefore, no, it won't.
Share
Improve this answer
Follow
answered Jun 20, 2014 at 6:26
Radim V... |
I am using infinispan 6.0.1 release, I have configured it to use SingleFileStore as loader
Configuration is as below
<namedCache name="MyCache">
<persistence passivation="true">
<singleFile fetchPersistentState="true"
ignoreModifications="false"
purgeOnStartup="false" maxEntries=... | Infinispan singleFileStore cache restartability |
From your output,i'm seeing below endpoint is created.So it seems one pod is ready to serve for this nodeport service.So label is not an issue now.Endpoints: 172.17.0.6:8080First ensure you are able to access the app by running curlhttp://podhostname:8080command, once you are login into the pod using kub... | I make configuration that my service is builded on 8080 port.My docker image is also on 8080.I put myReplicaSetwith configuration like thisapiVersion: apps/v1
kind: ReplicaSet
metadata:
name: my-app-backend-rs
spec:
containers:
- name: my-app-backend
image: go-my-app-backend
ports... | By kubernetes nodeport I can't get access to the application |
Go toQuality Profiles>Profilethat you selected and search for the rule finally unchecked it.
All as administrator | is there any regex or configuration that I can tell the sonarqube, not to consider the equal and hashcode methods in the analyze? | How to remove sonarqube equals and hashcode duplicate code validation? |
Using Serverless to deploy and CloudFormation Outputs can help with this situation.Define your layer in it's own service. Create an Output resource (but don't create an export name).resources:
Outputs:
MYOUTPUTNAME:
Value:
Ref: MYLAYERLambdaLayer # LambdaLayer is a required suffixReference the outpu... | The situation is that I have a load of aws lambda functions (using node js 8.10) that all do something very different and they're all deployed using CloudFormation.They all share a few functions which are very complex.At the moment, if the common code changes, which is fairly frequent, I replicate the common code betwe... | Updating aws lambda layer dependencies |
new Bar is just one contiguous allocation, as is new Bar[n].
It may help to think of like this:
Bar* purple = new Bar();
is similar to:
Bar* purple = (Bar*)malloc(sizeof(Bar));
Behind the scenes, the constructor is also called, and in some cases the allocation may be greater than sizeof(Bar); new[] is a common case ... |
I am working on designing a small system and am wondering about a nuance of how memory is allocated for derived classes.
If I have two classes
class foo {
public: int a;
Foo(): a(0) {};
};
class bar : public foo {
public: int b;
Bar() : Foo() , b(0) {}
};
and then do something like this in another method
Bar* purple... | Memory Allocation for Derived C++ classes |
I have managed to make the font size small in table by using <sub>...</sub> tag.
Achieved this by Wrapping each line of text (inside td) under <sub>...</sub>.
UPDATED WIKI LINK
|
I am creating a Wiki page in github.com. I am trying to use table in the Markdown edit mode. I created table by embedding html expecting to add inline-css later but found that inline-css also not working.
I tried following:
<style>
.markdown-body table td {
font-size: 12px !important;
}
</style>
Link for my w... | Change font in Github Flavored markdown for Table |
Organize all these private settings into a single file and keep that file out of source control. Keep it stored somewhere else secure. You can put on the repo a mockup version of this file so people willing to contribute can just checkout the repo and fill their private info.
If you want to keep that file in the repo ... |
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
What is the best practice for dealing with passwords in github?
I'm putting a project on Github for the first time and was wondering what's the best way to prot... | Protecting Info on Github [duplicate] |
0
You write that parse_internal is recursive. That means it gets 3 arguments in the changed variant, instead of 2 in the original - and is called recursively a few times.
You also have to access members using pointer syntax instead of element de-referencing (and possibly ve... |
I need to reduce the memory used by my native Windows C++ application, without compromising its performances.
My main data structure is composed by several thousands of instances, dynamically allocated, of the following Line class:
struct Properties
{
// sizeof(Properties) == 28
};
// Version 1
class Line
{
... | Why this performance deterioration? |
If On other mac all certificates work fine and app run then make the .p12 file of that certificate on that MAC and install it on your MAC. The problem will resolve.Don't Reset the Developer and Distribution Certificates in Signing Identities. | I have created an application, For this app I have created all certificate, installed in xCode, but it is showing not matching provisional profile found error.When I opened my xCode/account there in signing identities IOS development and IOS distribution it is showing reset button, If I will click reset in development ... | Displaying reset button in signing identities ios development |
In my opinion you can consider the NIB/XIB as the owner of those objects. None of your classes own them. See "Managing the Lifetimes of Objects from Nib Files" in Resource Programming Guide:
From a practical perspective, in iOS and OS X outlets should be defined as declared properties. Outlets should generally be wea... |
I am new to iOS 5. From Apple's documentation I know what ARC is and "Owner of an object should using strong notation." After read "Hello World" , I noticed a strange thing.(I mean that was confusing me)
HelloWorldAppDelegate:
@interface HelloWorldAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, ... | What is the owner of UI elements of a view controller? iOS5 with ARC |
The JIRA plugin has been deprecated.To understand why it is not supported it any longer, please read the"Stop planning; fix the leak!" blog post. | I would like to link sonarQube - 5.6 with the JIRA to increase the Code Quality Standard. But in some blogs I could see like JIRA plugin has not been available for the version 5.6 -- > (http://docs.sonarqube.org/display/PLUG/Plugin+Version+Matrix) . | How to link SonarQube with JIRA for the version 5.6 |
0
I recommend you to use Perst as the local database solution for your windows phone application.It can be imported or exported as xml which you can upload/download to/from SkyDrive or other cloud system.
Home page of Perst:http://www.mcobject.com/perst/
Share
Imp... |
I am developing a Windows Phone 7.1 application. The app serializes objects to JSON and saves them to the IsolatedStorageSettings file.
The objects also have images that the user may capture with a camera. These images are saved to Isolated Storage as a jpeg file with the "Extensions.SaveJpeg" method. Images are refe... | Backup Isolated Storage as whole and recover |
what you are missing is , you should point www.my-domain.com to my-service1234568698.eu-west-2.elb.amazonaws.com in your domain management system(Rotue53 if you are using aws). then you should curl using your domain curl www.my-domain.com
If you are using Route53,
create an A record for www.my-domain.com pointing to m... |
I'm a bit confused as to how Elastic Load Balancers work with certificates in AWS. The domain name for my ELB is my-service1234568698.eu-west-2.elb.amazonaws.com and that's what I used to call my REST endpoints (I have my ELB palming requests off to docker instances with Java microservices).
I have my own domain and ... | AWS ElasticLoadBalancer certificate doesn't match domain name |
This requires an understanding of Lambda containers and container reuse. When a Lambda function is first invoked a Lambda container is created and the Lambda function is deployed into the container. That container will be assigned an ENI if you have the function configured with VPC settings. Then the next time you inv... |
We have multiple lambdas deployed with access to our VPC using the VpcConfig setting.
I understand that AWS Lambda normally creates lambdas on demand, but if you have them connecting to your VPC then AWS will (at some point) create an ENI on one of the subnets specified in the VpcConfig and attach the lambda container... | What triggers ENIs to be created for AWS Lambdas accessing VPC resources |
In your root folder create a dir called.ebextensionsand inside that folder create a file called01_npm.config(for example).In that yaml file you can specify commands by:container_commands:
01_client:
command: "cd ./server && npm install && npm run build"
leader_only: true
02_server:
command: "cd ./client... | I have a web application written with NodeJS for the webserver and Angular on the frontend.The structure is like thismusicapp
|-- server
| |--- src/
| |--- node_modules/
| |--- package.json
|--- client
|--- src/
|--- node_modules/
|--- package.jsonWhen I deploy to E... | How do you customize a NodeJS deployment to Elastic Beanstalk? |
yes you can do this. I have already written a guide for the exact thing that you are looking for. check it out.https://chathula.dev/how-to-set-up-a-ci-cd-pipeline-for-a-node-js-app-with-github-actions/ | I have a simple question, but I can't find the answer. I've searched everywhere (exaggeration).DescriptionI have dedicated server running ubuntu where my nestjs application is running. I am using github for my remote repository and my current deployment process is:local: git pushpush changes to github repositorylocal: ... | Deploy nodejs application to dedicated server with Github Actions |
Unsure what testing framework you're using, but if you're using scalatest, you can use the traitBeforeAndAfterAllwhich runs a function before and after running the test suite.for example....class YourTestSuite extends FunSuite with BeforeAndAfterAll {
override def beforeAll() {
Docker.runCommand("docker run ..."... | I try to write integration tests in scala. I have a docker files for the integration tests.I want to run docker container before tests, and stop all of them after tests.I have to use docker command likedocker run ...to up docker containers.How can i do that in scala with type safe? For example,Docker.runCommand("docker... | How to run docker commands in Scala? |
1
You didn't specify which url you are using, but it looks like your nginx is exposed on port 80. You need to expose that port in docker compose. Include under the ports:
- 80:80
Share
Improve this answer
Follow
... |
I have created nginx config, DockerFile, Docker-compose file for the same.
nginx/nginx.conf
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /us... | Nginx is not working with docker-compose for react app |
If you look athttps://github.com/jcmoraisjr/haproxy-ingress, it is tagged "hacktoberfest" so possibly this one is that user's work on on the application at ahackathon.At a guess, I'm also assuminghttps://github.com/haproxytech/kubernetes-ingressis the official one. | I found that there are two ingress-controllers, one isjcmoraisjr/haproxy-ingressand the other ishaproxytech/kubernetes-ingressWhat is the difference between them? | What is difference between jcmoraisjr/haproxy-ingress and haproxytech/kubernetes-ingress |
It's not the way how the cron expression works. By defining it "9/5" you just expressed "start at september" and "icrement by 5 month" but there is no fourteenth month. Every month that exceed months count will be cutted so for example 1/5 will evaluate to "January" then "June" and lastly to "November". Another try wil... | Using Quartz.NET, I'm trying to create a trigger that:starts onSeptember 30threpeats on thelast dayrepeatsevery 5 monthswould be able to useITrigger.GetFireTimeAfter()to compute and project the next fire times to display in UI feedback.Expected:2017-9-302018-2-282018-7-312018-12-31I thought I could use aCronTriggerlike... | Quartz.net - Repeat on day n, of every m months? |
Right now I have a private git repository, which I don't want to make public (with custom configurations, f.e. db login credentials).In general, configuration doesn't belong in your repository.One common approach is to include a configuration "template" likeconfig.ini.templatethat is tracked, but require users to copy ... | I'm writing a web application in PHP and want to opensource it. Right now I have a private git repository, which I don't want to make public (with custom configurations, f.e. db login credentials).What would be a clean way to opensource the web app? Have a special branch with dummy config files (then my config files wo... | Good way to opensource a Web Application with git |
Restarting the R session fixed this issue.
|
I recently installed RGoogleDocs from github:
> devtools::install_github("duncantl/RGoogleDocs")
The package compiled and installed successfully, apart from the last line of output:
...
** building package indices
** testing if installed package can be loaded
* DONE (RGoogleDocs)
Making 'packages.html' ... done
Reloa... | Why does RGoogleDocs need to allocate a vector of 3.2Gb to run? |
I have foundthis solution:location /static/ {
try_files $uri @static_svr1;
}
location @static_svr1{
proxy_pass http://192.168.1.11$uri;
proxy_intercept_errors on;
recursive_error_pages on;
error_page 404 = @static_svr2;
}
location @static_svr2{
proxy_pass http://192.168.1.12$uri;
proxy_inte... | I want to use something like:location @a1 {
...
}
location @a2 {
...
}
location /path {
try_files @a1 $uri @a2
}Does it possible and what should I do at @a1 location to continue tries with $uri / @a2?If so, how nginx will process that? | May I use two named locations within try_files nginx directive? |
You can pass the--abort-on-container-exitflag todocker-compose upto have the other containers stop when one exits.ShareFollowansweredSep 27, 2016 at 15:37dnephindnephin26.9k99 gold badges5656 silver badges4545 bronze badges11There's always a CLI option I'm forgetting to these commands, so many possibilities. Great answ... | I have two containers that are spun up using docker-compose:web:
image: personal/webserver
depends_on:
- database
entrypoint: /usr/bin/runmytests.sh
database:
image: personal/databaseIn this example, runmytests.sh is a script that runs for a few seconds, then returns with either a zero or non-zero exit code... | How does one close a dependent container with docker-compose? |
You can populate your data in init_by_lua, and access it later on. In your case initialization of mydata module can be achieved by:
init_by_lua_block {
require "mydata"
}
init_by_lua runs once during nginx startup, and then the process it run in forks into workers, so each of them contain an independent copy of ... |
I am working with open-resty and lua to create a server for redirecting requests. Redirects are done based on some data from a lua datatree structure (nested tables)
I am looking for a way to populate this data once on startup and after that share the data between workers.
ngx.ctx can save arbitrary data but lasts onl... | Storing nested tables in nginx shared memory |
0
There is actually a very easy way to find out, in Android Studio (2.2.3 atm) open the Android Monitor window (n. 6) and within that select "Monitors" tab. There should be 4 sections (Memory, CPU, Network and GPU), and in the Memory section you should see some icons, the... |
One of the major challenges while building android applications is managing memory footprint of app with limit so as to avoid crashes.
How much memory does each of the following View in Android occupy (independent of the content contained within)?
TextView
ImageView
WebView
VideoView
TextureView
..other commonly use... | Android views memory footprint |
You can inspect the docker container status as following commands on the node hosts where runs pods on.docker inspect <container id>More option ishereAnd events logs and journal logs are helpful to debug.kubectl get events
journalctl --no-pager | We started to monitor docker events in our k8s cluster and noticed that are a lot ofKill/Die/Stop/Destroyfor various containers in a short time period.Is that normal? (I assume it's not)Aparently is not a capacity problem:Conditions:
Type Status LastHeartbeatTime LastTransitionTime ... | Is it normal docker daemon kill/restart containers on a short time span? |
If you want to store all modules as standalone projects, then you cannot specifysonar.modulesand use SonarQube Scanner for Maven. The Maven scanner is designed to create submodules (the same structure as defined inpom.xmlfiles).What you can to do:build all modules by Mavengenerate in every module's root directory asona... | For our code analysis I want for each maven module one sonar project.
At the moment I got one sonar project with the modules from parent pom.For my Jenkins job configuration I use SonarQube Scanner for Maven (link) withsonar-project.properties.# Root project information
sonar.projectKey=org.mycompany.myproject
sonar.p... | Sonar: Multi-module analysis sonar |
You can use git checkout to go back to a specific commit from your history. In your case, you'd want:
git checkout 3578d5c
UPDATE:
You can use the github api to find the commit preceding the fork by querying for the forks. Read through that for the fork you're looking for. Included with each fork is a "created_at"... |
There is a way to get the commit that precedes a fork?
Like we have in the Network graph.
Example: https://github.com/fladson/source/network
The commit that precedes the fork is 3578d5c.
There is a way to get this by API or git?
Thanks
| Get commit that precedes a fork at Github |
Use getopts and pass the directory as a named argument:
./myScript.sh -d target_folder file1 file2 file3... fileN
|
So, I need to write a script in bash which will backup files of directory.
Script gets files (list of files for backup) as arguments, and last argument must be target folder (directory). If target folder doesnt exist, must be created by script.
I was planning to use for loop for moving through list of arguments (file... | Bash script for files in directory (backup) |
You need to use some type of rate or increase function to get the type of graph you're looking for. And since you're using Prometheus, your query will look something like this:rate([your_metric_name][1m])If you want the rate per second, ORincrease([your_metric_name][1m])If you want something more like a delta.These pag... | I am trying to visualize a counter increase over time.But I'm facing two problems:The graph doesn't start at zero for the timeframe andWhen ever the counter resets, the graph hits zero againThis leads to the graph being very hard to read cause what I realy would like is to see how quickly the counter increases over tim... | How to show delta from start of timespan to point in time for counter |
It might be an indentation issue. The following indentation should work.pipelines:
custom:
dbt-run:
- step:
name: 'Validate'
script:
- cd dbt_4flow
- dbt compile
condition:
changesets:
includePaths:
- "dbt_4flow... | I created a bitbucket pipelines that looks like this:pipelines:
custom:
dbt-run:
- step:
name: 'Validate'
script:
- cd dbt_4flow
- dbt compile
condition:
changesets:
includePaths:
- "dbt_4flow/*"However, when I try t... | error in bitbucket-pipelines.yml at [pipelines > step > condition]. To be precise: At least one condition is required |
1
It suffices to read the documentation. It tells you exactly how to use wget or curl for use with a CRON job. Moreover, there is a section called "A PHP alternative to wget". I write the documentation of Akeeba Backup and make available free of charge for a good reason: to... |
we are using Akeeba Backup for backing up our Joomla website. It is possible to start a backup just by calling an URL as described here: https://www.akeebabackup.com/documentation/quick-start-guide/automating-the-backup.html. To automate the backup of our site we want to call this URL using a daily executed Cron job. ... | Start Akeeba Backup Using a Cron Job |
I was able to recover the data, so it indeed is possible, in some cases to retrieve the data.As mentioned in the question, I had a datastore which points to /dataBy doing compose-up again and after this moving the data from the old to the new volume I got everything back! | After doingdocker-compose upand adding lots of stuff to the database etc, I stupidly did adocker-compose downto stop the dockers from running. Just found out it actually removes it all.Is there a way to recover from this and get back the data containers?FYI This is the config of the datastore in docker-compose.yml:ser... | Undo docker-compose down |
I solved the problem myself by modifying A flow to the following and it was fine.A workflowjobs:
Reuse:
uses: org/repo/.github/workflows/b_workflow.yml
with:
enviroment_name: SANDBOX
repo_name: ${{ github.REPOSITORY }}
secrets:
token: ${{ secrets.SOURCE_REPO_TOKEN }} | I encountered a problem when I passed the repository path from A workflow to B workflow, and the value was not passed correctly in checkout actions.A workflowjobs:
Reuse:
uses: org/repo/.github/workflows/b_workflow.yml
with:
enviroment_name: SANDBOX
repo_name: $GITHUB_REPOSITORY
secrets:
... | github actions' parameter passing problem |
To use the Azure CLI and login inside the container, you need to install the Azure CLI inside the container, then login with an non-interactive model. I would recommend the service principal. You can take a look at the command:az login --service-principal -u <app-url> -p <password-or-cert> --tenant <tenant>For more det... | I have successfully created a docker image that runs inside a docker container. The container successfully executes the image (a .NET app) but the image crashes shortly after startup because it encounters an error with Azure Services. The reason is because the docker container is attempting to access Azure Services t... | Azure CLI Login within Docker Container |
OneHotEncodercreates a sparse matrix on transform by default. From there the error message is pretty straightforward: you can tryTruncatedSVDinstead ofPCA. However, you could also setsparse=Falsein the encoder if you want to stick toPCA.That said, do you really want to one-hot encode every feature? And then scale th... | I'm working on somecustomer_datawhere I, as a first step, want to do PCA, followed by clustering as a second step.Since there needs to be done encoding (and scaling) before feeding the data to the PCA, I thought it would be good to fit it all into a pipeline. - Which unfortunately doesn't seem to work.How can I create ... | How to create a pipeline for PCA? |
For that, you need docker registry on your local machine or on Jenkins server where Jenkins is running.
Just run the docker registry containerdocker run -d -p 5000:5000 --restart always --name registry registry:2First tag your imagedocker tag alpine localhost:5000/gcc/sample:latestpush that image to your local docker r... | I have a docker image on my local machine. When I try to run the image using the below Jenkins file.agent {
docker {
image 'gcc/sample:latest'
args "-v /etc/passwd:/etc/passwd:ro
}
}Then I am getting the following error.+ docker pull gcc/sample:latest
Pulling repository docker.io/gcc/sample
Error: image ... | How to look for a docker image on the local machine |
It should be like this:RUN apt-get update \
&& apt-get install -y \
unzip \
wget \
libnss3 \
&& rm -rf /var/lib/apt/lists/* \
&& echo "progress = dot:giga" | tee /etc/wgetrc \
&& mkdir -p /mnt /opt /data \
&& wget https://github.com/andmarios/duphard/releases/download/v1.0/duphard -O /bin/duphard \
&& chmod +x... | I am having problem with missing libnss3.so in the docker image. My docker file looks likeFROM ubuntu:14.04
RUN apt-get update \
&& apt-get install -y \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/* \
&& echo "progress = dot:giga" | tee /etc/wgetrc \
&& mkdir -p /mnt /opt /data \
&& wg... | Install libnss3.so in Ubuntu docker |
I found a solution!Added--host '0.0.0.0'in package.json"ssr:start": "cross-env NODE_ENV=production vue-cli-service ssr:serve --mode production --host '0.0.0.0' --port 8080" | I have a vuejs application with @akryum/ssrWhile doingnpm run ssr:serveornpm run ssr:starteverything works as it should. But when I try to use docker:version: '3.7'
services:
npm:
build:
context: ./
ports:
- "8080:8080"
volumes:
- ./:/var/www/htmlDockerfileFROM node:14.0.0
WORKDIR /var... | how to start vuejs ssr server in docker |
With the commandgit remote prune originyou can delete local branches that no longer exist remotely.
Same can be achieved withgit fetch --prune(orgit fetch -p) | This question already has answers here:Remove tracking branches no longer on remote(50 answers)Closed6 months ago.While trying different branches, merging them and deleting them, the delete part still confuses me. I work with VS Code and I created a repository on GitHub. Creating new branches works totally fine and I u... | Delete local and remote branch of GitHub and VS Code at the same time [duplicate] |
The simplest solution is to setup a cron job to hit a URL on the site that performs the task. I would recommend Celery though. Here's why (fromDjango/Celery Quickstart):Cron has the advantage of simplicity, but it's not not ideal for the job. You have to take steps to ensure that regular users of the site cannot hit th... | I want to implement a reminder system, where a reminder email will be sent to the users based on some date field in their userprofile.How can I implement this ? Many suggested me not to use celery. Told me to use cron tab.This is how I do, is this good way? If not, please suggest me a good way.If cron:
Planning to... | cron tab (or celery, whichever is best) - best way to register for certain days |
The problem seems to beproxy_pass http://your-logstash-host;If you look at the logs in your LogStash Web, you'll see "WARN -- : attack prevented by Rack::Protection::JsonCsrf"There's some built-in security, which I'm not familiar with, provided by rack-protection to prevent Cross-origin resource sharing attacks. The pr... | I am trying to proxy requests from nginx to kibana (logstash). I can access the kibana dashboard on port 9292 - I can confirm that a service is listening on port 9292. I can successfully proxy from nginx to other services but the proxy directive for kibana (port 9292) does not work - I can proxy to 9200 for elasticse... | unable to proxy from nginx to kibana |
You just need to use command substitution:date ... $(last $USER | ... | awk '...') ...Bash will evaluate the command/pipeline inside the$(...)and place the result there. | So I need to convert a date to a different format. With a bash pipeline, I'm taking the date from the last console login, and pulling the relevant bits out with awk, like so:last $USER | grep console | head -1 | awk '{print $4, $5}'Which outputs:Aug 08($4=Aug $5=08, in this case.)Now, I want to take 'Aug 08' and put it... | How do I use output from awk in another command? |
I think you"ll find what you're looking for in PyCUDA:http://documen.tician.de/pycuda/array.html | MATLABhas a nice functiongpuArray();for exploiting the GPU to perform operations at lightning speed (especially if a good graphics card is installed). For neural networks, this is necessary, as input matrices are huge and many complex operations are performed.In matlab this is simply done by this piece of code,G = gpuA... | Python function alternative to MATLAB's gpuArray() |
+50As nginx doesn't support anelsestatement, nor anifwith more than a single condition, it may get tricky to write certain configurations that depend on multiple variables.For your usecase, there are two improvements for a potential solution, which can be used either together or apart:You might want to convert your exi... | Using nginx to proxy subdomains of superduper.io to a specific folder in S3 bucket. The bucket has a folder for each subdomain that holds a static HTML website.Now I want to redirect bots to a different S3 bucket. What do I need to add to my nginx.conf file?worker_processes auto;
# include /etc/nginx/modules-enabled/*.... | Using nginx proxy to serve static S3 to a different bucket for bots like googlebot |
$filename = dirname(__FILE__) . "/online_users.txt"; | I run a windows 2003 server and tried to run a code like this every 15 minutes:require("db_connect.php");
$conn = db_connect();
//list online brukere - flytt funksjon til separat side for bedre ytelse
$time = time() - 900;
$query ="SELECT username FROM tbl_user WHERE last_online >= $time";
$online_users;
if ($result ... | cron job won't write to file |
Thecontent_urlone (fromrepo get content API) supportscustom media typeapplication/vnd.github.VERSION.raw
application/vnd.github.VERSION.htmlTheraw_urlone is a shortcut to the first of those media types.Theblob_urlone is only see forfiles in commits, and serves the content of that file as stocked in a git repo, without ... | TheGitHub API documentationshows the following example of an answer of an API call."files": [
{
"sha": "bbcd538c8e72b8c175046e27cc8f907076331401",
"filename": "file1.txt",
"status": "added",
"additions": 103,
"deletions": 21,
"changes": 124,
"blob_url": "https://github.com/... | What is the difference between blob_url, raw_url and contents_url in GitHub API? |
You can create the new branch from any of master or production branch.
Then you can develop on the new branch, and merge the branch into master and production branch separately. It's ok for you to merge new created branch twice into separate branches.
|
I'm very new to Git VCS and have created a git repository for my web application in Visual Studio. I have a master branch from which I would like to create a production branch with minor configuration changes that will ultimately be pushed to my remote server. Now how would I go about, or what would be the best way to... | How do I create a Git branch that merges with both the master branch and production branch |
That makes sense, you need to tell the children PHP scripts to NOT terminate when it's parent stops.ignore_user_abort(true);Add the above line to the children PHP scripts. Should do itShareFollowansweredDec 10, 2011 at 17:24George PGeorge P73655 silver badges1212 bronze badges2Sadly this didn't change anything–Microna... | I created a cronjob which call a php-script every 5mins.This PHP script needs to start several other PHP CLI scripts and keep them running in background even when the cron-script terminates.I'm currently creating these sub-processes by the following line of code:if (!$pid = shell_exec("nohup /var/[..]/cake.php test do... | using cron to make php-script starting continuous processes |
So I configure the user details [I thought I didn't need to do this because of the key setup????]This (user.name/user.email) has nothing to do with remote repository hosting serviceauthentication(which is why the SSH key is used for).It is for local commitsauthorship.Second, ping github.com: if it fails, that would mea... | Steps I did so far...sudo ssh-keygen -t rsa -b 4096 -C "[email protected]"to generate keysssh-add ~/.ssh/id_rsato add keys to terminalcat /home/mink/.ssh/id_rsa.pubto copy the public key to Githubthen I follow the Github instructions...git init
git add README.md
git commit -m "first commit"I get greeted with this messa... | GitHub SSH troubles.... added the key... still doesn't work |
1
This is caused by bug. Bug is fixed in recently released 2.8.1 version. Please upgrade.
Share
Improve this answer
Follow
answered Dec 23, 2020 at 20:43
Aliaksei KandratsenkaAliaksei Kandr... |
We are migrating from gperftools/tcmalloc 2.0 to 2.8. But some of our test cases fail with "out of memory" error. We use Cent OS 6.5.
This happens with a posix_memalign() call requesting for 32536008 bytes with 64bit alignment.
I didn't use any specific options with configure while installing gperftools.
Has anyone fa... | gperftools/tcmalloc 2.8 - running out of memory |
This seems to work:
import boto3
client = boto3.client('ec2')
# Insert your Instance ID here
my_instance = 'i-xxxxxxxx'
# Stop the instance
client.stop_instances(InstanceIds=[my_instance])
waiter=client.get_waiter('instance_stopped')
waiter.wait(InstanceIds=[my_instance])
# Change the instance type
client.modify_i... |
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
... | Resizing an EC2 instance using boto3 [closed] |
You need to runiptables saveto save the rules.See my cheat sheet for other commands:http://www.jamescoyle.net/how-to/375-iptables-cheat-sheetShareFollowansweredAug 19, 2013 at 5:19JAC2703JAC270342377 silver badges2222 bronze badgesAdd a comment| | I'm trying Wowza and am a bit confused why can't the port10000be opened on my EC2/RHEL instance.I have already applied the required rule in the Security Group which is in used on that instance. Like:As see above, i even opened for TCP. Then in the RHEL/EC2 instance,However i started or stopped theiptables, nothing happ... | EC2 How to open UDP Port 10000? |
The leak period can be configured per project on any date, using the -> Administration -> General Settings -> Leak Period.Here is values provided in the setting description :Number of days before analysis, for example 5.A customdate. Format is yyyy-MM-dd, for example 2010-12-25
'previous_version' to compare to the pre... | My requirement is to have a quality gate based on new code since a given date - on a per project basis.This would work pretty much identically to using previous_version - they'd like to set the date when a new version is created - but the reason for this requirement is to avoid the possibility that developers increment... | Is it possible to have a SonarQube per-project leak period starting from a specific day |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.