Skip to content

Instantly share code, notes, and snippets.

View ScullWM's full-sized avatar
🌶️
Caramba! PepperReport.io!

Thomas P ScullWM

🌶️
Caramba! PepperReport.io!
View GitHub Profile
@xavismeh
xavismeh / symfony-messenger_sqs_installation.md
Last active June 13, 2019 17:57
Tutorial to use Amazon SQS with symfony/messenger component
  1. Install librairies/bundle:
$ composer require sroze/messenger-enqueue-transport enqueue/sqs
  1. Enable EnqueueAdapterBundle bundle:
// config/bundles.php
<?php
@lyrixx
lyrixx / HardCoreDebugLogger.php
Last active April 27, 2024 14:09
Hardcore Debug Logger
<?php
const STREAM_OPEN_FOR_INCLUDE = 128;
final class HardCoreDebugLogger
{
public static function register(string $output = 'php://stdout')
{
register_tick_function(function () use ($output) {
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
@dunglas
dunglas / example.php
Created April 19, 2018 06:25
A minimalist GraphQL client for PHP
<?php
$query = <<<'GRAPHQL'
query GetUser($user: String!) {
user (login: $user) {
name
email
repositoriesContributedTo {
totalCount
}

Components

  • Ubuntu 16.04
  • PHP 7.2
  • Mysql 5.7
  • Nginx
  • Redis (v3.0.6)
  • MongoDB (v1.4.2)
  • NodeJS (v9.11.1), Npm (v5.6.0), Yarn (v1.6.0)
  • Ruby (v2.3.1p112), SASS (v3.5.6)
@obense
obense / README.md
Last active January 3, 2018 15:02
MacOS High Sierra install

brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

fish

brew install fish

Add fish to potential default shells

sudo adduser deploy
sudo passwd deploy

vi sudo
deploy    ALL=(ALL) NOPASSWD:ALL

su - deploy
@DragonBe
DragonBe / php_apache_homebrew.md
Last active November 20, 2022 18:15
Installation of Apache 2.4 and PHP 7.1 with Homebrew

I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like Homebrew was a more convenient way to install.

The purpose of Homebrew is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands.

I used a clean installation of macOS Sierra to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial.

Apache and PHP with homebrew

I’ve made this according to the installation instructions given on GetGrav.

package main
import (
"log"
"net/http"
"sync"
"github.com/garyburd/redigo/redis"
"github.com/gorilla/websocket"
uuid "github.com/satori/go.uuid"
@LeCoupa
LeCoupa / redis_cheatsheet.bash
Last active March 18, 2024 09:08
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.