Skip to content

Instantly share code, notes, and snippets.

View Saeven's full-sized avatar

Alexandre Lemaire Saeven

View GitHub Profile
@Saeven
Saeven / # php - 2023-07-23_23-39-42.txt
Created July 24, 2023 19:50
php on macOS 13.4 - Homebrew build logs
Homebrew build logs for php on macOS 13.4
Build date: 2023-07-23 23:39:42
@Saeven
Saeven / # php - 2023-07-23_23-39-42.txt
Created July 24, 2023 19:50
php on macOS 13.4 - Homebrew build logs
Homebrew build logs for php on macOS 13.4
Build date: 2023-07-23 23:39:42
@Saeven
Saeven / # php - 2023-07-23_23-39-42.txt
Created July 24, 2023 19:49
php on macOS 13.4 - Homebrew build logs
Homebrew build logs for php on macOS 13.4
Build date: 2023-07-23 23:39:42
@Saeven
Saeven / post-checkout
Created November 11, 2021 04:26
Git Post-Checkout Hook to Switch between Laminas and Zend Framework
#!/bin/bash
PWD = `pwd -P`
reinstall() {
rm -rf ${PWD}/vendor
composer install
bower install
}
@Saeven
Saeven / # php - 2021-07-06_22-39-39.txt
Created July 7, 2021 03:01
php on macOS 10.15.7 - Homebrew build logs
Homebrew build logs for php on macOS 10.15.7
Build date: 2021-07-06 22:39:39
@Saeven
Saeven / gist:aac6c44fc8ac8dfb3d73e6011087e121
Created June 30, 2021 03:56
Drawing a templated list with AlpineJS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.4/tailwind.min.css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.2.1/cdn.js" defer></script>
</head>
<body>
<!-- partial:index.partial.html -->
@Saeven
Saeven / behat.yml
Last active October 17, 2018 17:06
Behat test configuration
# behat.yml
default:
autoload: [ %paths.base%/../contexts ]
suites:
core_features:
paths: [ %paths.base%/../features ]
contexts: [ FeatureContext ]
extensions:
shvetsgroup\ParallelRunner\Extension:
process_count: 4
@Saeven
Saeven / container.meta.php
Created March 23, 2018 02:19
Install PHPStorm Autocomplete for Zend Framework Container (ServiceManager)
<?php
/**
* Install this in your base PHPStorm 2018+ folder under .phpstorm.meta.php/container.meta.php and
* your $container->get(ThatClass::class) calls will now yield autocomplete magic.
*/
namespace PHPSTORM_META {
@Saeven
Saeven / samplerank.php
Created October 23, 2017 13:51
Ranking query
/**
* Retrieve a particular user's rank and details, considering descending sort order on that column
* @param $column The column name used for sorting
* @param $user_id The user ID whose rank we want to obtain
* @return array
* @throws \Exception
*/
public function getUserRank( $column, $user_id )
{
if( !is_numeric( $user_id ) )
@Saeven
Saeven / assetic.config.php
Created April 6, 2017 16:01
Same controller-based gist for Assetic
<?php
return [
'controllers' => [
\SilverStarMember\Controller\IndexController::class => [
'@member_css',
'@member_js',
],
],