Skip to content

Instantly share code, notes, and snippets.

View kovinet's full-sized avatar

Borut Kovačec kovinet

  • KoviNET web solutions
  • Alanya, Turkey
View GitHub Profile
@masseelch
masseelch / FullTextSearchFilter.php
Last active September 19, 2022 19:43
(Kind of a) api-platform full-text search filter.
<?php
namespace App\Filter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use ApiPlatform\Core\Exception\InvalidArgumentException;
use Doctrine\ORM\QueryBuilder;
@Vic3198
Vic3198 / InstallSignalEN.py
Last active January 26, 2024 04:08
Simple Python script for automating the installation of signal-cli, the DBus service, and registering a new user. It worked well for me and saved me a lot of time for each time I had to reinstall signal-cli on a new machine, but I cannot 100% guarantee that it will work for you.
#!/usr/bin/env python
#coding: utf-8
#
# Run this file with superuser rights ('sudo') to install the Signal client
raw_input("Welcome to the signal-cli install wizard.\nPress ENTER when you are ready.")
import os
@dunglas
dunglas / example.php
Last active March 15, 2024 18:04
A GraphQL client using the Symfony HttpClient component
<?php
$query = <<<'GRAPHQL'
query GetUser($user: String!) {
user (login: $user) {
name
email
repositoriesContributedTo {
totalCount
}
@noromanba
noromanba / gnome-keyring-daemon-use-100percent-cpu.mkd
Last active November 16, 2022 20:50
gnome-keyring use 100% CPU usage when Google Chrome started