Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
In regex [•••] represents acharacter class, not a group. A character class matches anyoneof the characters in the brackets, and most special characters, like the pipe, are considered as literals.I suspect you want/fg(-|elastic-){1,2}.*/. Alternatively you could usefg-?elastic-.*since you have the one optional characte...
I am working on grafana and try to find a regular expression which can match any of the below scenario.1) values can be of format fg-elastic-* 2) values can be of format fgelastic-*I am trying the regex/fg[-|elastic-]+.*/But the issue here is it matches only the second one along with some other values likefgxxxx-redis-...
Grafana regular expression
10 I believe the command you want should be: echo "$CR_PAT" | docker login ghcr.io -u "$ghcr_user" --password-stdin That adds quoting to the variables and a second dash to the long arg. It also assumes those variables are defined. That said, I tend to use the following in ...
While using with the GitHub action I am getting Error response from daemon: Get "https://ghcr.io/v2/": denied: denied I used the login command echo $CR_PAT | docker login ghcr.io -u $ghcr_user -password-stdin
Error response from daemon: Get "https://ghcr.io/v2/": denied: denied
The error is happening while you are making a SELECT query. There is a single placeholder in the query, butitem['title']is a list of strings - it has multiple values:self.cursor.execute("SELECT title, url FROM items WHERE title= %s", item['title'])The root problem is actuallycoming from the spider. Instead of having a ...
The problem i am facing is that Scrapy code, specifically pipeline presents me with a Programming errormysql.connector.errors.ProgrammingError: Not all parameters were used in the SQL statement'This is my code for the pipeline:import csv from scrapy.exceptions import DropItem from scrapy import log import sys import my...
Scrapy ProgrammingError: Not all parameters were used in the SQL statement
4 Check your current branch and deploy.file. In the deploy.file, it could exist the following code snippet: task :check_revision, roles: :web do unless `git rev-parse HEAD` == `git rev-parse origin/master` puts "WARNING: HEAD is not the same as origin/master" p...
I'm following the this site. And I'm in step 6(6. Deploy!). So I executed below the command in turn. $ git add . $ git commit -am "add deployment configs" $ git push master $ cap deploy:setup And all command was successfully executed. Next, I tried to cap deploy command. But I get some error. $ cap deploy * 2013-06...
rails app deploy setting failed
One possibility: Passenger launches as the user that owns the config/environment.rb file (or of the config.ru file, if you have one) - make sure that file's owner is something sensible.ShareFollowansweredNov 3, 2010 at 8:32zaiuszaius6,41944 gold badges2828 silver badges5050 bronze badgesAdd a comment|
I've been trying to set up nginx 0.8.53 and passenger 3.0.0 on my dev environment - osx snow leopard and REE. I manually compiled nginx with the passenger module linked in.When I tried running passenger, it had a problem - ENV['PATH'] appeared to be null, so the split on it when call PlatformInfo.find_command raised a...
Nginx and passenger 3.0.0 on mac - why does it fail on startup?
If you still are in the merge state, you can try git merge --abort to check what state you are in git status
I merged the wrong remote repo master branch into my local master branch, once I started resolving conflicts I realized my horrible mistake. However, I didn't completely resolve the conflicts and therefore didn't commit the merge. Also, I committed my last changes to my local master copy before starting the merge. How...
Reverting a bad git merge from GitHub
First read myFAQYou are saying:Now the nightly build compiles and runs the test (all green) and calls the Sonar plugin... When JaCoco runs the unit tests (again)What does sonar plugin do? Main purpose is to collect test reports, including jacoco and send it to sonar. It can run tests for you and immediately collect d...
I have come across a very strange phenomenon:Our CI system (Jenkins with Maven and Sonar plugin) runs Maven test builds on checkins (works fine) and runs nightly builds with Sonar intgration (ran fine until last week). Now the nightly build compiles and runs the test (all green) and calls the Sonar plugin. After the st...
Continuous integration: Unit tests run with "mvn test" but fail when run by JaCoCo
0 I am trying to get the backup schedule and retention for SQL Servers using Azure Resource Graph Explorer. I am unable to find any such information. The backup schedule and retention information for SQL Servers and databases is not stored in the resources table. Howeve...
I am trying to get the backup schedule and retention for SQL Servers using Azure Resource Graph Explorer. I am unable to find any such information. The current query that I have is resources | where type == 'microsoft.sql/servers' I am trying to get the short term and long term backup information for SQL Servers and ...
Get backup schedule and retention (short and long term) for SQL Servers using Azure Resource Graph Explorer
2 You have wrong characters inside your filter. Did you write it manually? You should rather instead copy&paste the log you want to match so that you avoid typing similar characters. First wrong character is the hyphen. you have written ^<HOST> – - but it is expected ^<HOS...
Im trying to use fail2ban to block IP addresses of sources that have too many login attempts through the UI. fail2ban is working properly for sshd but it is not working with my custom filter for gitlab access logs. System ubuntu server 16.04.4 LTS gitlab 10.8.4 fail2ban 0.9.3 Access Log Permission/path -rw-r--r-- 1 ...
fail2ban gitlab UI login attempts
Since we're dealing with a memory pool with fixed size memory blocks, constant time operations can be achieved as follows eg. : identify each memory block by its index into the pool (the address of the memory block can be easily derived from this index by block_address = base_address + index * block_size, and vice ve...
I am implementing a memory pool in C++, with the following constraints: The allocated elements should be traversable in linear time in order of their memory address, to promote cache reuse. It needs to be possible to deallocate elements (memory blocks) and return them to the memory pool. Allocation and deallocation ...
Data structures for traversable memory pool
You are attempting to add the Unity folder Library to source control. You should not do this. This folder is essentially a Unity Editor cache of expanded and/or editor-ready items originating in the Packages folder and is automatically re-generated by Unity if deleted. As Unity says: Set up an ignore filter for the...
I downloaded LFS for a new Unity project but it's not recognizing the "lld" file: File Library/PackageCache/[email protected]/.Runtime/hostmac/lld is 106.20 MB; this exceeds GitHub's file size limit of 100.00 MB I've followed this thread which details the same issue, but still the same. I also added ".file" to .gita...
Github LFS with Unity unable to push file
You can list all owner's repos by using theGitHub CLIwith the command:gh repo list [owner] [flags]I ended up using:gh repo list --source --json name --limit 200 <account_name>Since I wanted all of them in one go, skipping forks.
I want to understand that is there any way tolist all the repo which are created on githubthrough cli/terminal.I have more than 500 repo in my GitHub account. Need to list all the repo through cliif yes then what is the command to do this.
List all repo from GitHub through terminal/CLI
2 In this expression: github.head_ref || github.run_id github.head_ref may not be available. According to github context: github.head_ref "The head_ref or source branch of the pull request in a workflow run. This property is only available when the event that triggers a...
My query is for the example given here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency Example: Using a fallback value I understood how concurrency works. But this example for the fallback value is not clear to me. If you build the group name with a property that is ...
GitHub Action with Concurrency
Sonar flagging the null check is correct. because thecontext.getBean(beanclass)will throwNoSuchBeanDefinitionExceptionif no bean of the given type was found. So the null check isn't useful.The getBean(beanClass) method is coming fromBeanFactory, which has documented this behaviour.
Spring's ApplicationContext.getBean() method can return null.An example for this:Why is applicationContext.getBean(beanName) returning null, when it clearly exists?But as per sonar, it can never return null. Sonar complains - Change this condition so that it doesn't always evaluate to false.Here is the sample code.if (...
Sonar raises - "Change this condition so that it does not always evaluate to false" for applicationContext.getBean() method
To clean the pods you need to delete theirdeployments namespace.First discover that deployments existed:$ kubectl get deployments --all-namespaces NAME READY STATUS RESTARTS AGE chetabahana-web-584b95d576-62ccj 1/1 Running 0 20m tutorial-web-56fbccc56b-w...
I have the following pods:NAME READY STATUS RESTARTS AGE xxx-myactivities-79f49cdfb4-nwg22 1/1 Terminating 0 10h xxx-mysearch-55864b5c59-6bnwl 1/1 Terminating 0 1d xxx-mysearch-55...
How do I force delete kubernetes pods?
Change theapiVersion: apps/v1by:apiVersion: extensions/v1beta1
I create adeployment.yamlto create deployment of kubernetes.Here is my tries:apiVersion: apps/v1geterror: unable to recognize "./slate-master/deployment.yaml": no matches for kind "Deployment" in version "apps/v1"apiVersion: extensions/v1beta1andapiVersion: apps/v1beta1both of them, getError from server (BadRequest): e...
kubernetes - can not create deployment correctly
You usually do not bundle the source of a dependency within your git repository for a lot of reasons (keeping up with a moving target, having to build it yourself etc).Instead you use a package manager (either your system's, or python's (most famouslypip)). Thatcould be a deep rabbit hole to enter, but if they have pyt...
I have a python script that I've pushed to GitHub. I'd like my cohorts to download Python and git and clone my repository without further action needed to run my script. To test things out, I copied a shortmatplotlibgraphing script. I added thematplotlibsubmodule to my repo and cloned to computer. When double-clicking ...
Adding dependencies to git for use by others when cloning project
This is not the exact answer that I want but it seems to work for now. I am not sure how to maintain the permission but I can manually set it to public-read or other types that I need it to be. This are the possible values from boto3 copy_object: 'private'|'public-read'|'public-read-write'|'authenticated-read'|'aws...
After I copied an object to the same bucket with a different key and prefix(It is similar to renaming, I believe), its public-read permission is removed. import boto3 s3 = boto3.resource('s3') copy_source = { 'Bucket': 'mybucket', 'Key': 'mykey' } s3.meta.client.copy(copy_source, 'otherbucket', 'otherkey') Wh...
boto3 copy vs copy_object regarding file permission ACL in s3
Ouch, no. iPhones have impressive resolution (on par with OnLive) but a data connection that comes nowhere near what's required. Furthermore, using a radionetwork also is demanding on the battery. So from both a cost and a technical perspective, a local GPU (included in many modern ARM SOCs) is a better solution.
Is it possible to process graphics remotely and send it to another device (like an iPhone), so you could run a game with better graphics than the iPhone itself could handle ?I googled a bit but found little on the subject, just some things about GPU Cloud services but not many information.I've seen theOnLivething, and ...
Gaming development for portables and remotely processing graphics - how possible this is?
-1For Apache:sudo apt-get update sudo apt-get install apache2 sudo a2enmod proxy sudo a2enmod proxy_http <VirtualHost *:8880> ServerName example.com ServerAlias #SERVER_OWN_IP# ServerAdmin #SERVER_OWN_IP# ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/acces...
I am trying to run TURN protocol over Apache proxy. In Nginx proxies, there is a module for prereading the stream mode, and proxy it to where we want. For example:stream { upstream web { server 127.0.0.1:4444; } upstream turn { server 10.0.0.100:5349; } map $ssl_preread_server_name ...
Apache version of ngx_stream_ssl_preread_module
It is because the suhosin patch uses its own "hard" maximum memory limit, suhosin.memory_limit. From the configuration reference: Suhosin [...] disallows setting the memory_limit to a value greater than the one the script started with, when this option is left at 0. In other words, if you change the memory_limit so...
I recently ran into memory allocation problems, so I started experimenting with the ini_set('memory_limit', value); directive where I tried to enter values incrementaly. Now, searching through the web (and SO) I found out that I can put -1 as the value. So, I did and now the script runs fully to the end without breaki...
PHP memory_get_peak_usage and ini_set('memory_limit', '-1')
You have to use the IP address of the apiserver. You cannot use labels.To find the IP address of the apiserver run:kubectl cluster-infoLook for a line like this in the output:Kubernetes master is running at https://<ip>This is the IP address of your apiserver IP.The network policy should look like this (assuming the ap...
What is the best way to define a rule that allows egress only to the kube-apiserver with a Network Policy?While there's aServiceresource for the kube-apiserver, there's notPods, so as far as I know this can't be done with labels. With IP whitelisting, this isn't guaranteed to work across clusters. Is there any recommen...
Whitelist kube-apiserver with Network Policy
only this works for me, use -x command and specify the dir ,instead of --unpack,RUN wgethttps://dl.google.com/linux/direct/${CHROME_PACKAGE} && \ dpkg-deb -x ${CHROME_PACKAGE} / && \ apt-get install -f -y
what is the chrome installation path inside docker container,usually its stores in opt in linux system but i dont have this directory in my image, so im unable to find the path.this is the command i used for docker image:RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ dpkg --unpa...
What is chrome path inside docker ubuntu image
I think the data structure you are looking for is a sparse matrix. Store your elements along with their coordinates in a map data structure (eg. Map<Integer,Map<Integer,Integer>> for a 2d sparse array) and just assume anything not in the map is zero.
I'm using this statement //some code int a[][]=new int[5000000][5000000]; //some code and running it with command java -mx512m Test It is giving OutOFMemoryError: Java Heap space indicating the line number of the mentioned statement in the stacktrace How do i solve this problem Edit: I'm trying to solve a practice ...
OutOfMemory Error java heap space
1 First you create huge (apparently) xml data ds.WriteXml((TextWriter)writer, XmlWriteMode.IgnoreSchema); After clone it, into the string object writer.ToString();, so you almost double the memory you need. What you can do, is to create XML row-per-row, so create kind of...
In C# i'm trying to get the xml string from a big DataSet: private string GetXmlFromDecomposedPortfolio(string dataSetName, DecomposedPortfolio ptf) { StringWriter writer = new StringWriter(); System.Data.DataSet ds = new System.Data.DataSet(dataSetName); ds.Tables.Add(ptf.Security.Copy()); ds...
OutOfMemoryException trying to write Xml from DataSet
Set these properties:Search Recursivelytotrue;File Filter Regexto*.xls;and leavePath Filter Regexto its default value.
Hello guys I'm trying to get all xls files from all folders in a ftp serveur and I'm using a regular expression in PATH FILTER regex but with no result and when I'm putting the absolute path like '/TEST/TEST/' I'm getting the files Here's the confiuration :enter image description hereThanks in advance
Path filter regex in GETftp processor in apache nifi
0 You can make use of the rotatelogs command to log rotate the apache logs. Try to put the following as a crontab. crontab -e Add the following there. /usr/local/apache/bin/rotatelogs /path_to_apachelogs.%Y.%m.%d 86400 /usr/local/apache/bin/rotatelogs This path is meant f...
This is my first question. I don't know how to config error.log has 2 function as below: The log generated by current day will output to one fixed name log file. e.g error.log. This current log contains the current generated log only. The previous log will back-up to single log file. e.g: yesterday is 11/22/2013, so...
apache error log backup auto
2 You do not pull by branch name alone, but by remote name and branch name. git pull origin rick However, your partner cannot pull this branch at all, because pulling is into the current branch, and there is no local branch rick on your partner's machine. Instead, your par...
so first I made a repository on github, then put the comands below in the console: echo "# rotten-tomatoes" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/ejample/file.git git push -u origin main and this pushes the project on github. M...
how can two people work remotely on the same repository in github?
I need a solution that set default page for only root directory, not for the subfoldersYou can do this using a rewrite rule in root .htaccess:RewriteEngine On RewriteRule ^/?$ home.php [L]
I used the solution given on thislinkfor this.DirectoryIndex home.phpbut it applies to root directory and its subdirectories. However, I need a solution that set default page for only root directory, not for the subfolders. I looked around a lot, but couldn't find one.Any suggestion is appreciated. Thanks.
Set custom default page for root directory only (not for subdirectories)
You should definetly free the memory at position 1, because once you reassigned s you lost any chance to do so. And I'd do it one way or another because you can never know when somebody else is instructed to build a fork into your application and he will assume you did everything right.
I'm a bit of a C newbie, so I'm still trying to get my head fully around when to worry about memory issues. Suppose I have the following simple program: #include <stdlib.h> /* this returns a malloc()'d string */ char *get_str(int whichone); int main(void) { char *s; if ((s = get_str(0)) == NULL) { e...
When to free pointers
In our crontab -(sudo) vim /etc/crontabI scheduled the job like this:*/15 * * * * webdaemon /bin/bash /var/www/vtigercrm6/cron/vtigercron.shAre you getting any errors in /var/log/syslog or /var/log/messages or whichever system log that your OS uses?
I am an intern on a company in Malta. The company has just made a big change from sugarCRM to vTigerCRM. Now we have a problem with the scheduler. What we want is, when a mail is entered it should automatically get synced with the organisations and contacts (I can link them when I click on the "SCAN NOW" button of the ...
Scheduler doesn't work in vTiger
ECHO OFF set source=C:\Users\xxxx\Dropbox\ set destination=C:\Backup\ for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd1=%%j"."%%i"."%%k if exist %destination% goto GO :GO mkdir %destination%%yyyymmdd1% xcopy %source%* %destination% /s/d/y/c/v/r echo. echo Finished copying %source% to %destination% ec...
I need a script to copy only the changed/modified and new files from my C:\Dropbox to my C:\backup. Why does this copy only the folder structure:@echo off set destination=C:\Backup set source=C:\Users\XXXX\Dropbox\Intranet for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd1=%%j"."%%i"."%%k xcopy %sourc...
Batch script to make backup folder. only new and modified files
I would have expected this format (without the "value ="):@SuppressWarnings({"PMD.UnusedPrivateField", "PMD.SingularField"})Similar format is working for me in PMD 5.1.3 (although Eclipse complains about them not being supported).ShareFolloweditedFeb 28, 2017 at 13:18stkent20k1414 gold badges8888 silver badges112112 br...
PMD and SonarQube a nice tools but I have problems trying to suppress PMD warnings.We use Lombok a lot in our project, so many of the model classes have a: @SuppressWarnings("PMD.UnusedPrivateField") as an class-level annotations.This works fine.The problem is, that if I wan't to ignore one more rule, I would expect th...
@SuppressWarnings more than one rule not working
TheS1166 Exception handlers should preserve the original exceptionsis disabled in quality profiles provided by SonarSource.Some time ago (I don't remember in which version exactly) SonarSource developers made those quality profiles as read-only. It probably means that you:modifiedSonar wayprofile → S1166 has been enabl...
In SonarQube 6.1 I got 125 such issues on one project of mine. However in versions 7.0 and 6.7.1 I suddenly got exactly 0 on the same code with no changes.What happened?Here's a typical example of code that should get that issue, but didn't get it:try { ... } catch (Exception e) { log.error("Load balance test f...
SonarQube no longer detects S1166 (Exception handlers should preserve the original exceptions)
(Disclosure: I work at GitHub)So long as you're still a student, you're eligible for the academic discount. Once your coupon expires, you canre-applyfor the student discount.When you re-apply, be sure you'veadded your school-issued email addressto your account, that will expedite the approval process.You will receive a...
I just got upgraded to a free github micro plan using my university email address. I'm planning to use the private repositories for some class projects this semester, but I'm wondering what will happen to those repositories at the end of 2 years when my free student upgrade expires. I'm assuming it's the same thing tha...
What happens to a github student account's repositories at the end of 2 years?
The diff displayed in a PR is the diff between :the head of the branch (b-Bin your case)the fork point between that branch and the target branch (the fork point betweenb-Bandb-release)If you look closely at how the branches behave : if you update theb-releasebranch, the fork point does not change (see diagram below).If...
I created three branches exceptmain:b-release,b-A,b-B. And theb-Ais created based onrelease-branch, whileb-Bis based onb-A.main --- b-release | b-A --- b-BI also created three PRs:PR-release(compare tomain): this pr is the changeLog consisting ofPR-b-AandPR-b-BPR-b-A(compare tob-release)...
Why Github does not automatically update the file comparison between two PRs?
I confirmed that CURLOPT_SSL_VERIFYPEER's default value enables CA pinning by default. As a result, it uses the certificates mentioned in CAPATH for CA pinning.
We are sending requests to a server using libcurl (7.51.0). We have a .pem file where we have a set of CA certificates that are being set via CURLOPT_CAINFO option.curl_easy_setopt(mpCURL, CURLOPT_CAINFO, "/usr/certs/certificates.pem");Now, I would like to figure out whether the CA certificates present within the .pem...
libcurl's default behavior for certificate pinning
Finally, I did the following:I created a new Maven project with an archetype in the directory for github local repositories.I used the github app to create repository with the same name in the same directory.Then I published this repository to github.Now I imported the project from the github local repository to eclips...
I want to create a new Maven project in Eclipse and push it to a new repository on github. I am a bit stuck on the right order of steps to achieve this.To use a Maven archetype, I cannot use a directory with files in it. So I cannot create a Maven project in a git local repository. So using the archetype should probabl...
Workflow for creating new Maven project in Eclipse and bringing it to Github
Without substantial custom code to allow TCP connection transfers between hosts, you kind of can't. When a process shuts down, all TCP streams it has open will be closed, that's how normal Linux networking functions. If you poke a round on your search engine of choice for things like "TCP connection migration" you'll f...
I have the following architecture for the PostgreSQL cluster:Here, there are multiple clients that interacts with PostgreSQL pods via pgpool, the issue is, when the pod (could bepgpoolorPostgreSQLpod) terminates (for multiple reasons) the client is getting impacts and have to recreate the connection. For example in thi...
How to keep long lived connection alive even when the Kubernetes pod get killed?
You can useDjango's provided caching.This answerto a very similar question gets you on the right track.
This question already has answers here:Caching query results in django(2 answers)Closed4 years ago.i have a Model in my app, that is used so much in my application, some views made something like 100 queries in that Table, I already have a tons of optimisations to make a better use of this Model, but the great part of ...
How to cache a Django Model in Memory [duplicate]
When you fork a repo, you have to work further on their progress so you can push your adjustments back to them.If you delete semantic versioning there are going to be collisions when you push your code back to them. Therefore they will never accept your pull requests.So what you are trying to do is a bad idea. Maybe yo...
DisclaimerOur team has used git in projects at work for about two years, but we've never forked other projects, so we're fairly new in the contributing part.Our situationWe want to fork a repository and use that as a starting point for our own project. First, we want to alter some of the code to fit everything to our o...
Forking a repo on GitHub, but use our own semantic versioning tags?
In order to take advantage of the CDN and DoS services provided by GitHub Pages, you'll need to set up aSubdomain(egwww.example.comorblog.example.com) instead of anApex domain(example.com).From the GitHub Help page you referenced:If you are using an apex domain (example.com) instead of a subdomain (www.example.com) a...
I've got an organization page set up and running in GitHub and things seem to be working...but I'm a little confused. I'd like to actually understand the process since theGitHub Help articlerefers to taking advantage of their CDN and DoS services, so bear with me.Step 1:Created CNAME file in repo with domain 'example.c...
GitHub Pages: setting up custom domain
This feature is available using a centralized solution for server-side git-hooks likeDatree.io. It has built-in policies like:Detect and preventmerging of secrets.EnforceJira ticket integration- mention ticket number in pull request name / commit message / branch nameLink commit message to a Jira ticketLink pull reques...
Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si...
Any plugin for Github to enforce jira issue key in commits [closed]
The docs for updating a file specify that you will need to provide the SHA for the file you will be replacing. The easiest way would be to query github for that, too. For example: > curl https://api.github.com/repos/testacc01/testrepo01/contents/test.txt { "name": "test.txt", "path": "test.txt", "sha": "4f8a0fd8...
I'm using this API to update a file on my repo, it requires me to have a valid SHA blob for a file that I want to update: http://developer.github.com/v3/repos/contents/ How do I find the SHA blob for the specific file? Supposed in my testrepo in the test account here, what is the SHA blob for the test.txt file? https:...
How to find a Github file 's SHA blob
As you didn't answer my questions, nor indicate what OS you use, it is somewhat hard to make any concrete suggestions, so I will briefly suggest you use GNU Parallel to parallelise your S3 fetch requests to get around the latency.Suppose you somehow generate a list of all the S3 files you want and put the resulting lis...
I have lots (millions) of small log files in s3 in with its name (date/time) helping to define it i.e. servername-yyyy-mm-dd-HH-MM. e.g.s3://my_bucket/uk4039-2015-05-07-18-15.csv s3://my_bucket/uk4039-2015-05-07-18-16.csv s3://my_bucket/uk4039-2015-05-07-18-17.csv s3://my_bucket/uk4039-2015-05-07-18-18.csv ... s3://my_...
How can I download multiple objects from S3 simultaneously?
Automated authenticated ssh/git operations almost never use interactive (password) authentication. Passwordless ssh keys are used. See the following directions for setting up a deploy key for Github: https://help.github.com/articles/managing-deploy-keys#deploy-keys Then follow the rest of this answer: https://stackove...
I am trying to deploy from a private github/bitbucket account which holds a pass phrase on ubuntu ec2 instance. By quick googling I am landed up on blogs, websites but no blog or websites suggesting how to config with pass pharse. Any heads up will help me a lot.
deploying private git repo with pass phrase using chef open source server
Yea they still make sense.You could not track of the alterations made in family contact without an audit table to that particular table.I don't see any other way that you could track changes and use, without creating these tables separately.ShareFollowansweredJul 18, 2010 at 3:03George SilvaGeorge Silva3,4741010 gold b...
we are creating separate audit tables for those entity tables which need auditing using triggers on PostgreSQL 8.4.<Family> <Contact> <Family_Contact> <Address>We have some join tables. Eg : Family_Contact is a join table.Family has 1 or more than 1 contacts. Each contact has an Address. So, we have the following Tabl...
Audit Table DB Design : Does creating Audit Tables for Join Tables make sense
From the documentation: The ${variable_name} syntax also supports a few of the standard bash modifiers as specified below: ${variable:-word} indicates that if variable is set then the result will be that value. If variable is not set then word will be the result. ${variable:+word} indicates that if variable is set th...
I'd like to receive the version number as a single argument and extract major/minor numbers for various places in URLs at the RUN scripts in a Dockerfile. ARG CUDA_VERSION ARG CUDNN_VERSION ENV CUDA_FULL="${CUDA_VERSION:-8.0.61_375.26}" \ CUDA_MAJOR="$(echo ${CUDA_VERSION:-8.0.61_375.26} | cut -d. -f1)" \ CUD...
Default value with shell expressions in Dockerfile ARG and ENV
This appears to be a limitation of docker itself and is described under this issue -https://github.com/moby/moby/issues/34715The workaround is to:Build the intermediate stages with a --targetPush the intermediate images to the registryBuild the final image with a --target and use multiple --cache-from paths, listing al...
I recently switched to multi-stage docker builds, and it doesn't appear that there's any caching on intermediate builds. I'm not sure if this is a docker limitation, something which just isn't available or whether I'm doing something wrong.I am pulling down the final build and doing a --cache-from at the start of the ...
Is it possible to cache multi-stage docker builds?
I have always had good luck using File::NFSLock to get an exclusive lock on the script itself. use Fcntl qw(LOCK_EX LOCK_NB); use File::NFSLock; # Try to get an exclusive lock on myself. my $lock = File::NFSLock->new($0, LOCK_EX|LOCK_NB); die "$0 is already running!\n" unless $lock; This is sort of the same as the o...
I need to run Perl script by cron periodically (~every 3-5 minutes). I want to ensure that only one Perl script instance will be running in a time, so next cycle won't start until the previous one is finished. Could/Should that be achieved by some built-in functionality of cron, Perl or I need to handle it at script l...
Running only one Perl script instance by cron
I had a little in-person help with this issue. Unfortunately, I cannot provide a step-by-step procedure that was used to solve the issue; but the Rebase and Merge methods available for Branches in the Team Explorer of Visual Studio were part of the solution. I am now able to push again without trouble to my GitHub rep...
I have an existing GitHub repository that was linked to a Visual Studio Community 2017 project on my local machine. I had made two commits and pushed them to GitHub. I've modified the project from a secondary directory on my local machine-essentially, I have two copies of the same project-and used File Explorer (outsi...
Reconnecting Updated Visual Studio Project to Existing GitHub Repo
pg_isreadyis a utility for checking the connection status of a PostgreSQL database server. The exit status specifies the result of the connection check.It can easily be used in bash.PostgresSQL Docs - pg_isreadyExample Usage:pg_isready -d <db_name> -h <host_name> -p <port_number> -U <db_user>Installationsudo apt instal...
I wonder if there is an alternative to the psql command to test the connection to a postgresql database using bash.I'm setting up a Core OS cluster and have a side service which should perform the equivalent ofpsql 'host=xxx port=xxx dbname=xxx user=xxx'every minute to determine if the service is running, and more impo...
Postgres - testing database connection in bash
Definitely forget about GCE ( compute engine ),It remains GKE or Cloud run, you have to choose depending on your needs, here is the best article I be found:https://cloud.google.com/blog/products/containers-kubernetes/when-to-use-google-kubernetes-engine-vs-cloud-run-for-containersHowever2 if you choose to use k8s, you ...
I have scripts that collect data all the time on Google Cloud VMs, but there are times when I have more or less data to collect, so I need to volatile and automatically allocate CPU and memory so I don't spend so much money. Searching I saw that the best way is to create container and orchestrate them correctly, google...
Best way to run volatile containers on Google Cloud
TheIBM i RNM commandwould not allow bulk rename indeed.I would rather push everything to GitHub, clone it in a different OS, just to do the rename:for file in *.RPGLE ; do mv "$file" "$(basename $file RPGLE)MODULE.RPGLE"; doneAdd, commit and push, then sync back in your original IBMi environment.
We are trying to use GitHub for IBMi code , one of the problem that we are facing is to rename bulk files. We are trying to build a master branch with all IBMi related source files and have them renamed with appropriate type and attribute. Eg - TESTPGM1.RPGLE - Rename as TESTPGM1.MODULE.RPGLE TESTPGM2.RPGLE - Rename as...
How to rename Bulk files in GitHub or RDi
I receivedthis answer on Twitterfrom GitHub employee Jonathan Carter (@LostInTangent) yesterday:The Codespaces file system isn’t visible to anyone else, including org admins for the repo the Codespace is associated with. So as long as you gitignore the .env file, you’re totally fine to use that, in addition to managed ...
BackgroundGitHub allows you to storeEncrypted Secrets(Settings > Codespaces > Codespaces secrets), which is an amazing feature. For security, secrets stored this way are never visible to you once they are stored.However, while hacking on something new, I find that it’s useful to be able to see my secrets and other envi...
Are gitignore’d `.env` files in GitHub Codespaces visible to anyone but me?
17 The SES API ties you to AWS, the SMTP interface... well it's SMTP. Do you foresee, in the future the need to move off AWS? Does your application already speak SMTP to another email server? Depending on your current application it may be easier to go with SMTP. If you'...
I'm new to Amazon SES and I see that there are two ways to programmatically send emails: SES API (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-api.html) SES SMTP Interface (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-java.html) What are the pros and cons of each method? T...
Amazon Simple Email Service (SES) - Should I use SMTP Interface or SES API?
Yes, that's what will happen, your cron will run the process every minute regardless of the execution time of that process. If you want to avoid concurrency use a semaphore system in your process (http://en.wikipedia.org/wiki/Semaphore_%28programming%29). A simple implementation would consist of the process checking fo...
If the cron schedule is every 1 minutes, but the length of cron time is 10 min, what will happen?cron: - description: test for cron length of 10 min url: /test schedule: every 1 minutes1st test is called at 00:00:00 and it will finish at 00:10:002nd test is called at 00:01:00 and it will finish at 00:11:00....Is th...
What happen if a cron schedule is 1 min and the cron runtime is 10 min?
I used below approach to display a table.Define a variableintervalwith few static values (Example)Add a Panel in Grafana (either as table or a Pie Chart of your choice) and used below querytopk(5,round(increase(top_5_noisy_devices{type="Foo"}[$interval])))legend format as {{ device }}Format as -> Time serieslegend form...
In Prometheus, given below metric definition, how do I render a table for top 5 recurring devices part of the metric series?top_5_noisy_devices: { "device" : "1234", "type" : "foo"} { "device" : "1234", "type" : "foo"} { "device" : "1234", "type" : "foo"} { "device" : "2345", "type" : "foo"} { "dev...
Display table for series with label's occurrence count greater than N in Prometheus
match_reandmatchare deprecated in newer version. Usematchersinstead as follows:- receiver: 'dev-receiver' matchers: - dbinstance_identifier =~ "^(dev-db)$" - receiver: 'dev-receiver' matchers: - namespace =~ "^(dev)$"You can usecontinue: trueas stated in the comment of your question.ShareFollowansweredJun 1...
I need to route the alert todev-receiverif it has the labeldbinstance_identifier: '^(dev-db)$'ornamespace: '^(dev)$. I don't think the below one works as the bottom one may override the top one. Can I put someoroperator b/w two labels or something? Thanks in advance.-receiver: 'dev-receiver' match_re: dbinst...
How can I send alerts with different labels to the same receiver in prometheus alert manager config?
If you're using ActiveMQ "Classic" then you'll need to configure thePrometheus JMX exporter. It even has an exampleActiveMQ configuration.If you're usingActiveMQ Artemisthen you can use thisArtemis Prometheus Metrics Plugin. Metrics and metrics plugins are discussed inthe documentation.
How to get Prometheus metrics related to ActiveMQ for an application like enqueue dequeue count from client to host and vice versa and how to set that config file.
ActiveMQ Prometheus Metrics like enque deque count for monitoring
In a functional language, everything is dataflow. You can use functions as your module concept.To address each of your use-cases:Apluggagble moduleis a Clojure function that takes a single argument that is the state of your data vector. e.g.(def module-a some-function)To allow for easy extension by modules, I suggest...
I'm developing some simulation software in Clojure that will need to process lots of vector data (basically originating as offsets into arrays of Java floats, length typically in 10-10000 range). Large numbers of these vectors will need to go through various processing steps - e.g. normalising the vectors, concatenatin...
Pluggable vector processing units in Clojure
As you already discovered, AWS CloudFormation doesn't provide the expected AWS::SNS::Subscription resource (yet) and I'm not aware of this being possible by any other means, unfortunately - guess the rationale is that both are either managed within a template or externally, but your use case is sound and I can see no ...
Is it possible to create a 'Subscription' resource in a AWS CloudFormation JSON template without creating a new AWS::SNS::Topic? In my case, the topic is created outside of the CloudFormation script, and I would like to create some subscriptions to it, involving resources created within the script. I.E. "DbfExtract...
Is it possible to create a SNS subscription with CloudFormation without creating a topic?
I have faced same issue with you a few months ago. My jacoco version is 0.8.2 and lombok is v1.16.16. I remember the problem was gone after I add lombok.config under root directory of the project. Just notice if you define your own constructors for a class that already marked as Data, then the coverage will be calculat...
I've got a bunch of Code Smells in my Java project around bits of code like this:@Data public class Foobar extends Foo { private String baz; }Mylombok.configsits alongside thepom.xmland looks like:config.stopBubbling = true lombok.addLombokGeneratedAnnotation = trueThis brought up the code coverage numbers, not ha...
Sonarqube - Remove this unused private field Code Smell using Lombok @data
Late answer, but a key thing to understand in AWS Lambda development is that the run-time environment, independent of language, is a stripped down Amazon Linux container. Python code with native dependencies likecryptographymakes use of OS- and architecture-specific binaries.When you runpip install cryptography, it's w...
I am trying to deploy an AWS Lambda package. The language is Python 3.6, and it includes external modules (flask-askand thereby indirectlycryptography). When I do so, and test the function, AWS reports error:No module named 'cryptography.hazmat.bindings._openssl'My development environment is Windows 10. My function wor...
Deploy AWS Lambda package with Python 3.6 and Cryptography module
1 Could you please try following, based on your shown samples. Please make sure to clear your browser cache before testing your URLs. location ~ /home/ubuntu/([^/]*)/([^/]*)/?$ { root /home/ubuntu/$1/$2; } Share Improve this answer ...
i want to serve file on nginx server here's the case below serve location /home/ubuntu/username/fileName eg1 /home/ubuntu/john/d1.txt eg2 /home/ubuntu/john/d2.txt eg3 /home/ubuntu/kiddo/d3.txt it is not accessable using. location ~ /home/ubuntu/(?<user>.+)/(?<file>.+)$ { root /home/ubuntu/$user/$f...
nginx serve file but not all files in dynamic directory
I just did a quick test, and this worked for me:server { location / { # This proxy_pass is used for requests that don't # match the limit_except proxy_pass http://127.0.0.1:8080; limit_except PUT POST DELETE { # For requests that *aren't* a PUT, POST, or DELETE, # pass to :9080 prox...
I have twoiKaaroinstances running on port 8080 and 9080, where the 9080 instance is Read only.I am unsure how to use nginx for example if the request method is POST, PUT, DELETE then send to write instance (8080) else send to 9080 instance.I have done something using the location using the regex, but this is not correc...
nginx proxy_pass based on whether request method is POST, PUT or DELETE
After having the same issue I finally found the solution for it:In the/etc/resolv.conffile on your Master and Worker nodes you have to search and remove thesearch XYZ.comentry.If you are using Jelastic you have to remove this entry every time after a restart. It gets added by Jelastic automatically. I already contacted...
The error below is triggered when executingkubectl -n gitlab-managed-apps logs install-helm.I've tried regenerating the certificates, and bypassing the certificate check. Somehow it is using my internal certificate instead of the certificate of the source.root@dev # kubectl -n gitlab-managed-apps logs install-helm + he...
Internal certificate used when installing Helm Tiller Kubernetes
No answer so far, so I'm doing it.I verified it myself -real_ipmodule changes the value of the connection origin internally, and for all intents and purposes, everything related to the source of the connection becomes that IP (got fromX-Forward-For,X-Real-IP, etc), including$binary_remote_addrvariable. So, it's safe to...
I have anNginxserver pool behind a CDN + load balancer setup. CDN caches HTTP "read" requests (GET, HEAD, OPTIONS) and bypasses "write" requests (POST).I'm usingreal_ipmodule to get clients' IPs fromX-FORWARD-FORheader in a configuration like this:set_real_ip_from set_real_ip_from ... real_ip_recursive on; real_ip_he...
Nginx rate limit and real IP module
I usually do a:set HTTP_PROXY=http://username:abcd%[email protected]:portnumber set HTTPS_PROXY=http://username:abcd%[email protected]:portnumber set NO_PROXY=.company(always usehttp://...both forHTTP_PROXYandHTTPS_PROXY)In other words, I make sure the proxy isn't called for internal url ending by.company.Depending on ...
To download some opensource code behind the office firewalls I am exporting the Proxy like thisexport http_proxy=http://username:passwdatXYZ.com:portnumber export https_proxy=http://username:passwdatXYZ.com:portnumber export HTTP_PROXY=://username:passwdatXYZ.com:portnumber export HTTPS_PROXY=://username:passwdatXYZ.c...
How to know export proxy working or Not
To be able to push to the remote, generally speaking, you need to be up to date with the remote branch. Trygit pullfirst, thengit push.Additionally, github recommends you dogit push -u personal masterso that the head is set remotely
I just jumped into Git yesterday via Github and am moving away from svn. I created a private repo that I intend to use to keep my personal projects synced between work and home. During the process of creating the remote repo, my local files from work were pushed up. Last night, I was able to pull them down to my laptop...
can't push to remote Git repo
Turns out there was a typo in the document. The flag for turning on security while launching composer-rest-server should be -a true instead of -S true.
I'm trying to configure user authentication via REST API using Github strategy per documentation at:https://hyperledger.github.io/composer/integrating/enabling-rest-authentication.htmlI Installed the passport-github strategy by executing -npm install -g passport-githubBut noticed that the install did not create the nee...
Github Passport strategy for Composer
We faced a similar issue when we started using the custom PUBLIC_URL parameter and got rid of it when it was returned to an empty string value. I'm not sure it is the same case but just letting you all know about this nuance. Versions - Strapi: 4.5.3, npm: 8.19.2, node: 16.18.1ShareFollowansweredDec 14, 2022 at 14:52Vi...
Recently I’ve deployed my strapi app using Nginx and when I’m trying to access admin page I’m getting thiserrorI have no idea what does this error means:TypeError: Cannot read properties of undefined (reading 'isEE') at main.0dc07489.js:8914:25883 at Generator.next (<anonymous>) at it (main.0dc07489.js:8914...
Why am I getting "TypeError: Cannot read properties of undefined (reading ‘isEE’)" when accessing Strapi admin panel via nginx reverse proxy?
Python 'requests' library - define specific DNS?says it is possible, though patching occurs at the urllib level and not at the requests level.
I'm writing a script that is going to be run from a server at my University.The purpose of the script is to check websites and record their HTTP status code and IP-Address. This works fine generally, but I am encountering a problem I have a hard time solving:When run from my local machine outside the university network...
Changing DNS server for Python script
1 The answer is most probably the one described in this article. Some critical parts of the standard library use CGO [...] if you cross-compile Go to Darwin or Linux your programs won’t use the system DNS resolver. They also can’t use the native host certificate store. The...
I have build the following code in a docker container with the following architecture: cat /proc/version Linux version 3.16.7-tinycore64 (root@064f0e1ce709) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Tue Dec 16 23:03:39 UTC 2014 package main import "fmt" func main() { fmt.Println("Hello") } The binary distrib...
Cross compile net/http for distribution
AWS is open cloud environment. By which I mean you can get all sort of requests from all around the world, Maybe the IP address (or even the DNS name) assigned to your AWS EB environment was hard coded in someones application around the world. Or even worse someone is trying to hack in. That's the only reason AWS promo...
In my logs for my Elastic Beanstalk App I keep seeing"GET /aetn-heartbeat.html HTTP/1.1" 404 158 "-" "Varnish/2.1+fastly (healthcheck)"The load balancer is working fine, but the health of my ELB is constantly showing degraded health because of these 404 errors and it's a bit confusing. My question is: Do I ignore these...
AWS ELB getting lots of 404 errors from Fastly health check
Due to the frequency of updates, there are many times where an AWS feature isn't available in CloudFormation (ALB targeting Lambda used to be) - you end up having to create a custom resource to manage it. It's not too bad, just make sure that your lambda responds with success or failure inallscenarios, including excep...
I have two VPCs:VPC1 which holds our RDS instance.VPC2 which holds our cluster of EC2 instances.We have successfully setup a VPC peering connection, routes and security groups to allow appropriate communication.In order to resolve the RDS instance AZ-appropriate local IP address from it's hostname, we need to followthe...
How do I set the AWS peering connection DNS resolution options through CloudFormation?
I think it should be appended tocert_chain.For the follow-up, from a client (or server)'s perspective, it does not matter which issuing CA cert is used for the peer's cert because in both cases, the peer's cert will be chained up to the root CA cert.
I am working in C++ adopting mTLS for communication in a peer network. I have a private root CA and one issuing CA. The gRPC server struct for a secure TLS channel looks as follows:struct SslServerCredentialsOptions { explicit SslServerCredentialsOptions( grpc_ssl_client_certificate_request_type request_type)...
How do I include issuing/intermediate CA certificates in mutual TLS/gRPC
Why this happened?The Python docker images have been updated recently to use Debian 12bookwormversion which was released on 10 June 2023 instead of Debian 10buster.Sources:GitHub > docker-library/python > Commit > add bookworm, remove busterWikipedia > Debian version history > Release tableWhat is the root cause?It is ...
My build pipeline has stopped working all of a sudden which was working fine a few weeks ago. I'm using Dockerfile to build my app withpython:3.8as the base image. It has started failing on theapt-get update && apt-get installpart. I didn't change anything in the Dockerfile.My Dockerfile looks like this:FROM python:3.8...
Build started failing using Python:3.8 Docker image on apt-get update and install with GPG error: bookworm InRelease is not signed
Depending on the version of silverstripe you should be able to grab it from the appropriate release ofhttps://github.com/silverstripe/silverstripe-installerIt appears the site is 2.x so you'll likely want this one:https://github.com/silverstripe/silverstripe-installer/blob/post-2.4/.htaccessShareFollowansweredDec 9, 20...
I'm having some trouble fixing up an issue on my client's SilverStripe site.What happened was that another developer in my team had overwritten the .htaccess file without making a backup of the file to show an under construction page. The client has since wanted to restore their site back to working order; but we have ...
Restoring SilverStripe's .htaccess file
You need to specify a access token to make a PR.
I am very new to the Github app concept. I already created a Github app and installed it in one of my repository. By using octokit library and installation token of the Github app I can create an issue on the repository. However, I can create a pull request via this Github app's installation access token. Github app on...
Creating automatic pull request via a Github app
- alert: AlertName expr: sum by(path, custom_identifier, kubernetes_namespace) ( delta(http_request_duration_seconds_count{ status_code="201", method="POST", path="/api/v1/path/to/endpoint"}[1m])) == 0 #recovers after 1min if resolved for: 1h
I'm using prometheus to detect pauses in inbound traffic for an API endpoint. The query for this seems to be working nicely: alert if there's no change in HTTP requests for a given endpoint over a one-hour time period:sum by(path, custom_identifier, kubernetes_namespace) ( delta(http_request_duration_seconds_count...
Prometheus - separate alarm and recovery criteria?
You can dox < 100 > 80to chain them.
In a prometheus alert rule, how do I check for a value to be in a certain range?for eg., (x > 80 && x <= 100);when x is a complex expression it feels unnecessary to evaluate it twice. is there another way to represent this expression?
prometheus rule: check for expression value in range
You can't runif / else ifin a github action workflow job step natively (yet?) without using some code.For example, you could eventually usebashto achieve what you want, something like this:- run: | if [ ${{ github.ref }} == 'refs/heads/main' ]; then echo "is MAIN branch" elif [ ${{ github.ref ...
how to run if else if in github action step ? I am looking for an option to execute multiple if conditions in one step ?
How to do if else if conditions in github actions
As illustrated inhortonworks-gallery/zeppelin-notebooks, you need to use a thrid-party viewer to see those files, which are not directly supported by GitHub:Generate a link to preview the notebook by pasting the url from #1 into ZeppelinHub viewer (https://app.zepl.com/explore).This will generate a preview page for you...
With Jupyter notebook (ipynbfile), when I commit the file into GitHub, GitHub can render my notebook quite nicely: commands + all output of the commands.However, GitHub doesn't render Zeppelin notebook (JSON file) nicely, it just shows the JSON text file content. Is there a way to view Zeppelin notebook in GitHub?
Can GitHub render Zeppelin notebook?
I was able to connect directly to my Aurora Cluster without the need of a special gateway or ec2 instance. This worked for me:Make sure you have "Public access" set to "Publicly accessible". You should see this option when created the db but you can also modify it once the db has already been created by going to RDS ->...
I am working with nest.js to build an API . I created a serverless RDS aurora for postgresSQl to use it as a database.This is my aurora(postgresSQL) database instance (Connectivity and Security)This is my database ConfigurationThis is my security group detailThen I try connect by using endpoint,database,user etc, by u...
How to connect AWS aurora (posgresSQL) using prisma
Use map directive to create a new request uri variable and then set fastcgi_param REQUEST_URI using this new variable. Tested and it works.### update REQUEST_URI map $request_uri $new_request_uri { default $request_uri; # for frontend request, still use $request_uri ~^/backend(?P<suffix>.*)$ $suffix; ...
I have a following part of host config file.location / { try_files $uri /frontend.php; } location /backend/ { try_files $uri /backend.php; } location ~ \.php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document...
nginx + php-fpm. How to rewrite?
excerpt from thedocuments:-enable-leader-electionEnables Leader election to avoid multiple replicas of the controller reporting the status of Ingress, VirtualServer and VirtualServerRoute resources – only one replica will report status. (default true)
Can anyone explain why there is a requirement for leader election when having an ingress-controller (nginx) deployment with multiple replica's? Is there a sync going on between them? What is actually synced?I searched the documentation and found ... nothing I know there is a configmap that holds the POD name of the lea...
Ingress-controller-nginx leader election - Why?
First: you can't possibly 'prevent any compromised certificate authority' from issuing a certificate for your domain. If it is compromised, they can issue whatever they want. What you can do is create a trust store with a limited number of trusted CA certificates, say, VeriSign only. That way, even if an related CA is ...
I want to perform extra validation for SSL connections I make in an android app. Basically I need to be able to:See if the certificate of the remote host I am connected to has Extended Validation (EV) statusFind out the root certificate authority for the certificate of the remote end. E.g. I want to know if it is a Ver...
Android and extra validation of certificates
Perhttps://github.com/progrium/dokku:Set up a domain and a wildcard domain pointing to that host. Make sure /home/dokku/VHOST is set to this domain. By default it's set to whatever hostname the host has. This file is only created if the hostname can be resolved by dig (dig +short $(hostname -f)). Otherwise you ...
I installed Dokku on my Digital Ocean droplet, but did it before setting my dns records, so Dokku was installed on IP. Now I changed my dns record, so site can be accessed throughsite.com. I can access my previously created Dokku containers throughsite.com:port, how can I change Dokku settings to access my app like thi...
Dokku - Add domain after setup
Create a new branch (say,feature) from the branch you created pull request (say,pr-branch).$ git checkout pr-branch # checkout to 'pr-branch' $ git checkout -b feature # create and checkout to 'feature' branchThen, when you are done withfeaturebranch, merge thefeaturebranch with thepr-branch.$ git push origi...
Say I cloned a public Github repo, calledREPO. I then made a branch, did some work, and submitted a work-in-progress pull request toREPO. Whenever I push a new commit, it goes to both my clone, andREPO. This kicks off time consuming CI tests onREPO.I switch between working on two computers, and it would be nice to c...
How to push only to a branch of my fork of a Github repo, after a pull request has already been made
If you have the repo cloned anywhere, the following git command below provides info about commit, author name/date and the stats summary of the commit. You could run the command and store the output in a CSV file.git log --since='last month' --pretty=format:'%h;%an;%ad;%s' --numstat > summary.csvThe output should be so...
I need to download commit data of an open source project in an spreadsheet file. Is there any way to extract the commit data (Commit ID,file changes,#LOC addition,#LOC deletion) from GitHub to spreadsheet?
Importing GitHub commit data into spreadsheet file
Just define a cron expression for every minute and add the fireNow=true parameter. Seehttp://camel.apache.org/quartz.html.
I want to start quartz timer in camel immediately route starts and then after every 1 minute.I have written cron expression that will run after every minute.cron expression = 0 0/1 * 1/1 * ? *can anybody suggest how can i fire job immediately and then evry 1 minute?Thanks
start quartz timer immediately and then every 1 minute
Literally just needed to drop the last "/" in the host string and this worked. SMH devtools::install_github( repo = "<owner>/<repo>", host = "github.<org_name>.com/api/v3", auth_token = <my_github_pat> )
I am trying to install an R package from an enterprise github account devtools::install_github( repo = "<owner>/<repo>", host = "github.<org_name>.com/api/v3/", auth_token = <my_github_pat> ) I get this error message Error: Failed to install '<repo>' from GitHub: HTTP error 404. Not Found Did you spell the repo...
failing to devtools::install_github() from an enterprise github account
Try thisRewriteCond %{REQUEST_FILENAME} !^.*jquery.js$ RewriteCond %{REQUEST_FILENAME} !^.*prototype.js$ RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*\.)(js|css)$ minify.php?q=$1$2 [L,NC]The key to this is the inversion of the regex using the "!" (exclamation point) to say the file name is not jquery.js and not p...
I need to apply a minify actions to all the javascript and CSS files, except the ones I indicate.I have this condition and rule that applies to all the files (css and js):RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*\.)(js|css)$ minify.php?q=$1$2 [L,NC]I need to add the conditions to say:Apply to all except: jque...
Mod Rewrite: apply to all js and css files except
Supposing there is a unique server running nginx + php + mysql instances with some remaining free RAM, the easiest way to use that RAM to cache data is simply to increase the buffer caches of the mysql instances. Databases already use LRU-like mechanisms to handle their buffers. Now, if you need to move part of the pr...
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago. ...
Memcached, Redis, or Couchbase [closed]
1 man mmap: "ENOMEM No memory is available, or the process's maximum number of mappings would have been exceeded." When you write "3 million data (each 100k)", it seems to correlate with vm.max_map_count is 300000. Try to change this limit if you sure you have enough memory...
I'm performing a pressure test with leveldb. In util/env_poisx.cc : NewRandomAccessFile() void* base = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); after 3 million data (each 100k) insert. The errno says Cannot allocate memory. why? More details: top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ ...
mmap returns can not allocate memory, even though there is enough
Tryconda install nb_conda_kernels. This should make any conda envs visible as eligible notebook kernels.
I am setting up GitHub Codespaces for my project.I have my.devcontainerconfiguration with a following Dockerfile:FROM condaforge/mambaforge:latest RUN apt-get update && apt-get install sudo gcc --yes && apt-get clean RUN mamba install -c conda-forge \ "conda-build == 3.25.0" "boa == 0.15.1" "conda-verify == 3.1.1" "j...
Can't connect to my kernel in jupyter-lab on GitHub Codespaces
Have you enabled anHTTP endpoint for the Gremlin service? The document above explains:While the default behavior for Gremlin Server is to provide a WebSocket-based connection, it can also be configured to support plain HTTP web service. The HTTP endpoint provides for a communication protocol familiar to most deve...
Is there any HTTP/TCP endpoint for a gremlin-server health check? Currently, we are using the default TCP port but it doesn't seem to indicate the gremlin-server's health.We noticed that gremlin-server crashed and was not running but the health check kept passing. We are using AWS Classic Load Balancer.
Gremlin-server health check endpoint for AWS ELB
When you are doing this directly in the cron entry:. $HOME/.bashrcyou are actually asking the user cron to set its environment and most likely it has no Locale defined.You should set your environment in your script directly just after setting the bash directive:#!/bin/bash . $HOME/.bashrc echo Hello WorldIt wou...
i was getting this error in cron job/usr/bin/env: node: No such file or directoryso i did this*/10 * * * * . $HOME/.bashrc sh /path/to/cronjob.shin my cron jobbut then it gives me this error/etc/cron.daily/man-db: /usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
CRON JOB ERROR /usr/bin/env: node: No such file or directory
10 Navigate to https://github.com/settings/notifications Scroll down to the Email notification preferences section Ensure your Default notification email is set to an email address you can receive email at. Ensure Pull Request reviews is turned on If those steps do not wo...
My coworkers request me to review their Pull Requests, but I can't tell which ones. Is there a way to get Github to alert me when this occurs? I see there is a Review Requested filter in the Notifications section, but that never shows anything. There doesn't seem to be any specific setting for this in the Settings sec...
How to I get Github to notify me of review requests?