Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"log"
"net/http"
)
func init() {
log.SetFlags(log.Lshortfile)
@troyfontaine
troyfontaine / 1-setup.md
Last active April 28, 2025 20:43
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@fjogeleit
fjogeleit / composer
Created April 27, 2016 06:30 — forked from tommy-muehle/composer
/usr/local/bin/composer
#!/usr/bin/env bash
PHP=/usr/local/opt/php70/bin/php
ARGUMENTS="--ignore-platform-reqs --optimize-autoloader"
EXCLUDE_COMMANDS=(init selfupdate dumpautoload diagnose)
for item in "${EXCLUDE_COMMANDS[@]}"; do
if [[ $1 == "$item" ]]; then ARGUMENTS=""; fi
done
echo "Running composer with $($PHP -v)"
@mickaelandrieu
mickaelandrieu / upgrade2.3-to-2.7.md
Last active March 18, 2025 14:11
Complete migration guide from Symfony 2.3 LTS to Symfony 2.7 LTS

From Symfony 2.3 to Symfony 2.7: the complete guide

Objectives

  • assume your code doesn't use any deprecated from versions below Symfony 2.3
  • update dependencies from 2.3 to 2.7
  • do not support "deprecated", be "Symfony3-ready"
  • list tasks component by component, bundle by bundle.
@dbu
dbu / AppKernel.php
Created May 15, 2015 13:21
symfony as a microframework
<?php
namespace App;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernel;
use Symfony\Component\HttpKernel\HttpKernelInterface;
class AppKernel extends HttpKernel