Skip to content

Instantly share code, notes, and snippets.

View greg606's full-sized avatar
:octocat:
already replaced by AI

Greg Szczotka greg606

:octocat:
already replaced by AI
View GitHub Profile
@jakzal
jakzal / KernelAwareTest.php
Last active June 27, 2024 16:20
KernelAwareTest
<?php
require_once dirname(__DIR__).'/../../../../app/AppKernel.php';
/**
* Test case class helpful with Entity tests requiring the database interaction.
* For regular entity tests it's better to extend standard \PHPUnit_Framework_TestCase instead.
*/
abstract class KernelAwareTest extends \PHPUnit_Framework_TestCase
{
@jakzal
jakzal / FeatureContext.php
Last active September 16, 2018 07:22
Generating schema before Behat scenarios in Symfony2
<?php
namespace Behat\CommonContext;
use Behat\BehatBundle\Context\BehatContext;
use Behat\Behat\Event\ScenarioEvent;
use Doctrine\ORM\Tools\SchemaTool;
/**
* Provides hooks for building and cleaning up a database schema with Doctrine.
@tsabat
tsabat / zsh.md
Last active July 7, 2024 16:56
Getting oh-my-zsh to work in Ubuntu
@nazgob
nazgob / ctags.setup
Created January 6, 2012 13:44
ctags setup on mac
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@johnkary
johnkary / gist:2890651
Created June 7, 2012 18:34
List of Symfony Live 2012 - Paris slides
Day 1 (Track A):
Keynote - Fabien Potencier
Security: In Real Life - Johannes S
https://speakerdeck.com/u/schmittjoh/p/security-in-real-life
How we built the new responsive BBC News site - John Cleveley
https://speakerdeck.com/u/jcleveley/p/how-we-built-the-new-responsive-bbc-news-site
@greg606
greg606 / cheat-sheet.txt
Last active August 17, 2017 14:25
cheat sheet
##### symfony
sudo composer create-project symfony/framework-standard-edition path/to/install
php app/console cache:clear --env=prod --no-debug
php app/console assets:install --symlink web/
php app/console generate:bundle --namespace=Creaticon/HelloBundle
php app/console doctrine:database:create
php app/console doctrine:schema:update --force
php app/console doctrine:generate:entity --entity="AcmeStoreBundle:Product" --fields="name:string(255) price:float description:text"
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@greg606
greg606 / php.snippets
Created August 27, 2012 22:37 — forked from neotohin/php.snippets
CodeIgniter PHP snippets for the VIM plugin SnipMate
# SnipMate is required to use snippets
# Download SnipMate: http://www.vim.org/scripts/script.php?script_id=2540
# Put this file in ~/.vim/snippets/ then restart vim
# This snippet file includes many useful snippets for CodeIgniter. Please feel free to fork and contribute!
snippet php
<?php
${1}
snippet ec
echo "${1:string}"${2};
snippet inc
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name