How to run two pipelines from one repository with different app.config files?

I have a repository and I want to run two pipelines from it. but i just want to replace the app.config file in the second pipeline.

c # – Implementing the repository for thread security

I would need a revision of the code for the next implementation. Is this code safe? What can we improve?
The purpose of this code is for the study.

Public class Repository: IRepository, IDisposable
private IStorage _storage;
private list the entrees;

Public repository (IStorage storage)
_storage = storage;
_entries = storage.Load (). ToList ();

public void Create (input)
_entries.Add (entry);

public void Update (Enter)
existing var = _entries.Where (x => x.ID == entry.ID) .FirstOrDefault ();
existing =;
existing.Number = entry.Number;
existing.Type = entry.Type;

public void Delete (Enter)
_entries = _entries.Where (x => x.ID! = entry.ID) .ToList ();

public entry GetEntry (Guid ID)
return _entries.FirstOrDefault (x => x.ID == ID);

public IEnumerable GetAlphabetically (Func support)
return _entries.OrderBy (x => prop (x));

public void Save ()
_storage.Persist (_entries);

private bool disposed = false;

public void Dispose ()
Eliminate (true);
GC.SuppressFinalize (this);

protected virtual empty Dispose (bool disposing)
if (! disposed)
if (dispose)
if (_entries! = null)
_entries = null;
willing = true;

~ Repository ()
Eliminate (false);

git – The repository contains code with the original commit message, despite the log indicating a commit in which this code was deleted.

With two repositories A and B:

  • A has a main branch that is often dedicated to the origin
  • B often merges changes to A

A typical workflow for repository A is to extract a branch, to merge that branch into the master, and then to transfer the master to the origin.

A typical B-repository process is to extract a branch, merge A.master into that branch, and then push that branch to the Bs origin.

Then, B.branch is merged with A. For a while, I have been feeling changes to the A repository more than once. Things I thought I noticed:

  • The files that I deleted seem to reappear
  • The code I added to A.master seems to have been removed.

But it's also clear to me that the B repository merged A.master, because a new code appears.

Trying to follow up, I found in repository B that there was a commit in which code was removed. But this code seems to "reappear" and there is no commit where it is recorded – blame displays the original validation message.

How is it possible? This code displays the original validation message, despite the integration of a merge in which this code has been removed.

dependencies – How to fix the obsolete backport repository in Tails?

I have basically the same problem as the unmet dependencies of the additional Tails software, but I can not comment for the moment.

I'm running tails 3.12, live version, and the addition of additional software does not work after rebooting, unlike the previous update.

"[INFO] remmina: depends: libssh-4 (> = 0.8.1) but 0.7.3-2 + deb9u1 must be installed "

I have exactly 3 versions of libssh, 2 of them respecting dependencies, but the last one is not. And that's the reference backport, I needed to remmina.

Is there a way to solve this problem immediately?

Or wait for the repo backport to be updated?

Thanks in advance

The deb file repository fails when updating apt-get because it does not have a version file

I have previously created two folders filled with .debs and followed this issue to be able to add them to my /etc/apt/sources.list file: by doing to follow:

cd ~ / me / debs
dpkg-scanpackages. / dev / null | gzip -9c> Packages.gz
echo "deb file: / home / me / debs ./" >> /etc/apt/sources.list

However, now, when I went to create another folder and reload the repository with sudo apt-get update I receive the following errors.

Get: 6 file: / home / me / debs ./ Release
Err: 6 file: / home / me / debs ./ Release
File not found - /home/me/debs/./Release (2: no such file or directory)
E: The repository file: / home / me / debs ./ Release does not have a release file.
N: Updating from such a repository can not be done securely and is therefore disabled by default.
N: See the apt-secure (8) man page for details on creating repositories and configuring the user.

I've tried to create the release file with the help of touch, but the error goes to: E: The repository file: / home / me / debs ./ Release is not signed. after trying to find a Releases.gpg file.

All messages I've seen with this error should deal with exact sources that are not local, and I wonder if it's possible to allow the inclusion of the report without having a file Releases.

Provide access to the Git repository behind a firewall with the help of certificates / keys for authentication

We have a repo sitting behind a firewall. As I see it, there are two ways to authenticate / access the Git repository

  1. Add a reverse HTTP proxy to the DMZ that communicates with the git repository. This will allow the user to access the HTTPS git
  2. Make a hole in the firewall to allow traffic to the git repository on SSH. This will allow the user to access git via SSH.

We have another policy that requires the use of cert / keys based authentication instead of a static user / password. So, that settles our Option 1. But we are not comfortable punching a hole in the firewall.

What options do we have? Is there also a solution similar to an HTTP proxy for SSH?

BitBucket API – Get repository administrators

I have a team in BitBucket that has about 200 members and over 500 repositories. I wanted to audit all the repositories and use the BitBucket API for most of my work. I came across a requirement that I had to find the director members of each deposit (even one deposit at a time would do the trick). I have read the documentation, but I have not found anything useful.
Can any one guide me on this.

thank you,

design-driven domain – Does a repository return a graph of entities violating SRP?

I work in this scenario

The publishing entity has many image entities.

I also have a repository for both entities:

  • PostRepository
  • ImageRepository

Since these entities are closely related, when I receive a message, I also want to return the list of images.

I need to find ways to do it:

  1. The orchestator (in this case a PostService) will independently call each of the repositories to retrieve the data.

    • Of course, do not violate the SRP
      The inconvenients:
    • Creating Additional Dependencies It may not be necessary for PostService to have a dependency on ImageRepository.
    • Unspecified calls to the database
  2. PostRepository will return the entire graphic message with images.

    • Reduce dependencies
    • Simplify the database query.
      The inconvenients:
    • May violate the SRP.

In the case of a writing scenario, I clearly prefer the first option, because I want the entities validation to be completely separate. But for the reading scenario, I think the second option might be more optimal, but I could not find a good argument or reading for that.

So which option is best for the reading scenario?

8 – How to use Drupal on Arch Linux if php- {cli, curl, mbstring, mcrypt} is missing in the Arch repository?

How to run Drupal on Arch Linux if php- {cli, curl, mbstring, mcrypt} are missing in Arch repositories?

The only package I've found on the Arch repositories that says that AFAIR is needed for Drupal is php-gd, the rest above are not.

What should I do if I still want to use Drupal on Arch?

c # – Authorization code in the violating SRP repository

Having just started a new job, I examined the code base of two major projects and I experience a combination of respect and frontal slaps.

What led to the latter is the code in the different repositories, which apparently verify the authorization.

To elaborate, these applications use an implementation of the repository model to extract the ORM (and make the code testable). This is enough. But, in the different repositories, there are properties (Funcs returning) called CanRead that perform a series of authorization checks.

protected expression <Func> CanRead
int employeeId;
bool isAdmin = Principal.IsAdministrator ();
Expression <Func> baseWhere = this.BaseWhere;
Expression <Func> userIsReviewer = this.UserIsReviewer;
Expression <Func> userIsRegionalCommercialLeader = this.UserIsRegionalCommercialLeader;


return e =>
! e.Deleted &&
(e.Version! = Version.Budget || isAdmin) && ...


The content of the code itself is not so important. It's just the fact that it's in a repository. It does not seem very solid.

I think that probably violates the principle of the SRP.
The responsibility of the repository is the communication between the services and the data access layer (some would say that it is in the data access layer).
This responsibility does not include checking the possibility for a user to access this data.

I think authentication is a cross-cutting concern that must be checked before any call to the data layer.

I just wanted a second opinion on this, because I have to gather my thoughts as I compile a list of my problems with the code (which I will produce diplomatically at the right time).

Thank you