Skip to content

Instantly share code, notes, and snippets.

[
{ "keys": ["super+shift+t"], "command": "delete_trailing_spaces" },
{"keys": ["super+shift+r"], "command": "reindent" , "args": {"single_line": false}},
{"keys": ["ctrl+alt+b"], "command": "xdebug_breakpoint"},
{"keys": ["ctrl+alt+f8"], "command": "xdebug_conditional_breakpoint"},
{"keys": ["ctrl+alt+r"], "command": "xdebug_continue", "args": {"command": "run"}},
{"keys": ["ctrl+alt+o"], "command": "xdebug_continue", "args": {"command": "step_over"}},
{"keys": ["ctrl+alt+i"], "command": "xdebug_continue", "args": {"command": "step_into"}},
{"keys": ["ctrl+alt+u"], "command": "xdebug_continue", "args": {"command": "step_out"}},
{"keys": ["ctrl+shift+x"], "command": "xdebug_session_start"},
@machouinard
machouinard / PEX Basic
Created December 28, 2013 18:49
PermissionsEX Basic
groups:
Default
default: true
build: true
prefix: '&7[Member]&f'
permissions
- essentials.help
- modifyworld.chat
- modifyworld.*
- essentials.home
/*
* From css-tricks.com
* http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
sleep 1
done

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# Setting up dnsmasq for Local Web Development Testing on any Device
Please note, these instructions are for OS X Lion.
First, you need to get the IP address of your machine on your local network. In OS X, the easiest place to find this is in System Preferences > Network. If you're using DHCP on your local network, you will want to make sure your computer requests the same IP address when it renews it's IP address lease. I recommend configuring the DCHP Reservation settings on your router to accomplish this. Otherwise, you can specify a manual address in your network settings:
1. Go to *System Preferences > Network*
1. Click *Advanced...*