Skip to content

Instantly share code, notes, and snippets.

View asbiin's full-sized avatar

Alexis Saettler asbiin

View GitHub Profile
@asbiin
asbiin / gist:faaf3b4d612bdc37ab6fbebac594934f
Created December 5, 2022 16:04
Azure Container Registry cleaning script
param(
[parameter(Mandatory=$true)] [String] $SubscriptionID,
[parameter(Mandatory=$true)] [string] $RegistryName,
[parameter(Mandatory=$true)] [int] $DelayInDays = "30",
[parameter()] [string] $ExcludedRepositories = "",
[parameter()] [string] $ExcludedTags = "*/latest",
[switch] $WhatIf
)
$ExcludedRepositories = $ExcludedRepositories -split ','
# Edit date of a commit
GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)"
@asbiin
asbiin / gist:fde16dfdbb4e2d104cf92784f2348c7e
Created November 10, 2020 07:49
Create exec fil in git on Windows
git update-index --chmod=+x foo.sh
for f in $(find . -name "*.sh"); do git update-index --chmod=+x $f; done
phpunit() {
filter=
if [ -n "$1" ]; then
filter="--filter $1";
fi
sudo phpdismod xdebug
vendor/bin/phpunit $filter
sudo phpenmod xdebug
}
version: "3"
services:
sonarqube:
image: sonarqube:latest
restart: unless-stopped
environment:
- SONAR_JDBC_USERNAME=sonar
- SONAR_JDBC_PASSWORD=abcdefghij
- SONAR_JDBC_URL=jdbc:postgresql://db:5432/sonarqube
@asbiin
asbiin / githubgpgsign.md
Last active April 16, 2018 19:11
Activate git gpg sign commits
@asbiin
asbiin / CLA.md
Last active February 28, 2018 23:15 — forked from djaiss/CLA.md
Monica Contributor License Agreement

Thank you for your interest in contributing to software projects managed by Monica (“We” or “Us”).

TLDR: By signing Monica's Contributor License Agreement, known as a CLA, you confirm that:

1. Anyone can use your contributions anywhere, for free, forever.

2. Your contributions do not infringe on anyone else's rights.


#!/bin/bash
xdebugfile=xdebug-2.6.0alpha1.tgz
phpversion=7.2
function update_ini() {
if $(grep -q "$1" $inifile); then
sudo sed -i "s/\($1\).*/\1=$2/" $inifile;
else
echo -e "\n$1=$2" | sudo tee -a $inifile;