This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -ex | |
go install github.com/google/go-licenses@latest | |
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && [ -d ".git" ] && [ -f "go.mod" ] && go-licenses report --include_tests --ignore gitlab.my-company.com/my-unit --ignore my-company/awesome-unit ./... >> ../licenses.csv 2> /dev/null" \; | |
sort licenses.csv > licenses_sort.csv && rm -f licenses.csv && mv licenses_sort.csv licenses.csv | |
uniq licenses.csv > licenses_uniq.csv && rm -f licenses.csv && mv licenses_uniq.csv licenses.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gin | |
import ( | |
"crypto/rsa" | |
"net/http" | |
"github.com/gin-gonic/gin" | |
"github.com/lestrrat-go/jwx/jwa" | |
"github.com/lestrrat-go/jwx/jwt" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractContextAwareFilter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use Doctrine\ORM\QueryBuilder; | |
final class OrSearchFilter extends AbstractContextAwareFilter | |
{ |