Skip to content

Instantly share code, notes, and snippets.

View yuriteixeira's full-sized avatar

Yuri Teixeira yuriteixeira

View GitHub Profile
@joonassandell
joonassandell / OSX: Commands
Last active November 16, 2018 09:40
Random OSX commands and stuff I usually forget
# Commands
**Show hidden files**:
`defaults write com.apple.Finder AppleShowAllFiles YES`
**Disable photos from auto-opening** (worked in El Capitan, http://bit.ly/2c6rVrX):
`defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES`
**Open Hosts**:
`sudo open -t /etc/hosts/`
@yuriteixeira
yuriteixeira / xdebug_tests.md
Created October 14, 2015 10:30
Xdebug + Tests + IntelliJ
  • SSH to your machine like this: ssh -R 9000:localhost:9000 your.remote.machine
  • Ensure you have Xdebug installed and configured with xdebug.remote_enable=1
  • Add this snippet to your .bash_profile or similar shell init script:
# XDebug  
function xdebug-start {
	xdebug_site=$1
	xdebug_host=$2
	xdebug_port=$3
@Overload119
Overload119 / Developer Effiency.md
Last active December 5, 2018 04:16
Developer Effiency

A list of tools I use to make myself more efficient. Feel free to collaborate!

Mac OSX

  1. OSX For Hackers a bunch of optional settings for hackers on Mac OSX to make it work better. I just read through it and cherry pick the settings I like.
  2. FinderPath adds a "address bar" to a Mac finder. Must be invoked by the default hotkey, Cmd + Shift + G while in Finder.
  3. Alfred: A remarkable productivity app. The clipboard is one of my favourite features. Also really quick directory searching. Completely scriptable so you can make it do almost anything.
  4. Quiver: Programmer's Notebook - it makes it really easy to have your own internal docs for a variety of things and it supports inline code, code highlighting, and search.
  5. Quick Look Plugins: Quick look is an awe

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@saetia
saetia / gist:1623487
Last active March 19, 2024 15:21
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@jakzal
jakzal / BehatTest.php
Created October 19, 2011 14:47
Running Behat in PHPUnit to calculate code coverage
<?php
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Behat\BehatBundle\Command\BehatCommand;
class BehatTest extends KernelAwareTest
{
/**
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000