Skip to content

Instantly share code, notes, and snippets.

View Saeven's full-sized avatar

Alexandre Lemaire Saeven

View GitHub Profile
@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 / # 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 / saeven.lua
Last active June 16, 2022 14:50
Hammerspoon script to launch and tile apps
local workApplications = { 'Mail','HipChat','PhpStorm','Safari','Charles'}
local workApplicationWatcher;
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "H", function()
hs.notify.new({title="Hammerspoon", informativeText="Setting home layout"}):send()
local homeMonitor = "LG ULTRAWIDE"
local windowLayout = {
{"PhpStorm", nil, homeMonitor, {x=0, y=0, w=0.6, h=1}, nil, nil},
{"Charles", nil, homeMonitor, {x=0.6, y=0.6, w=0.4, h=0.4}, nil, nil},
@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 / gist:7832090
Last active March 31, 2020 03:02
RAW Curl Post to AWS Kinesis with PHP
<?php
/*
POST / HTTP/1.1
Host: kinesis.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
@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