Skip to content

Instantly share code, notes, and snippets.

@wilsonmar
wilsonmar / iterm2.md
Created August 18, 2019 04:29 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@Arkemlar
Arkemlar / AbstractExtendedCollection.php
Last active January 24, 2021 00:53
Custom doctirne collections implementation. Usage examples shown in comment below. Later I will make a repo when have time for it.
<?php
namespace Your\Namespace;
use Closure;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\Selectable;
use Doctrine\Common\Collections\Criteria;
use InvalidArgumentException;
/**
@mnapoli
mnapoli / reference.yml
Last active January 12, 2023 00:08
Doctrine YAML configuration reference
# Inspired from http://blog.hio.fr/2011/09/17/doctrine2-yaml-mapping-example.html
MyEntity:
type: entity
repositoryClass: MyRepositoryClass
table: my_entity
namedQueries:
all: "SELECT u FROM __CLASS__ u"
# Class-Table-Inheritance
@shvechikov
shvechikov / vim_last_position
Created July 6, 2010 15:08
Vim: Return to last edit position
" Put to .vimrc
" Return to last edit position (You want this!) *N*
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif