Skip to content

Instantly share code, notes, and snippets.

View gmoigneu's full-sized avatar
😇

Guillaume 'G/' Moigneu gmoigneu

😇
View GitHub Profile

Backend Architectures

ARCHITECTURES

ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats

# this include won't work for some reason:
# include Capistrano::Git::DefaultStrategy
module SubmoduleStrategy
# check for a .git directory
def test
test! " [ -d #{repo_path}/.git ] "
end
// Helper Data
class Your_Module_Helper_Data extends Mage_Core_Helper_Abstract
{
protected function handleFile($file) {
// Open file and do whatever you want
}
}
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* This file is part of Gem_Crawler for Magento.
*
* @license All rights reserved
* @author Guillaume M. <guillaume@gemmyo.com>
* @category Gem
* @package Gem_Crawler
* @copyright Copyright (c) 2014 Gemmyo (http://www.gemmyo.com)

Keybase proof

I hereby claim:

  • I am gmoigneu on github.
  • I am gmoigneu (https://keybase.io/gmoigneu) on keybase.
  • I have a public key ASAZEIVif8jyi9NIg7z07hRTIvf6_Chii_rp2Iljptw3rgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am gmoigneu on github.
  • I am gmoigneu (https://keybase.io/gmoigneu) on keybase.
  • I have a public key ASAlODK_4Zon-Vw7qEljGml0rSScvhVKqOVYMuq0xuyn8go

To claim this, I am signing this object:

name: 'sensiocloud'
type: 'php:7.1'
build:
flavor: 'none'
dependencies:
nodejs:
yarn: "*"
@gmoigneu
gmoigneu / seed.ts
Created August 4, 2024 16:44
Prisma: truncate before seeding.
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
async function main() {
// Get all table names from the information_schema
const result: { table_name: string }[] = await prisma.$queryRaw`
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public' AND table_type = 'BASE TABLE';
@gmoigneu
gmoigneu / 8-pillars-checklist.md
Created January 26, 2026 21:27
AI Coding Agent Readiness Checklist

The 8 Pillars of Verification Infrastructure

A practical assessment framework for measuring how ready your codebase is for AI coding agents. Based on the principle that the limit to agent autonomy isn't the model, it's your verification infrastructure.


How to Use This Checklist