This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Example Plugin | |
Plugin URI: http://domain.com | |
Description: Describe plugin | |
Version: 1.0 | |
*/ | |
/* | |
* Find, search, and replace "artist" to rename the object. Double check that you didn't miss "artists" | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet rnccf | |
import React, { PropTypes } from 'react' | |
import { View, StyleSheet, Text } from 'react-native' | |
$1.propTypes = { | |
} | |
export default function ${1:FunctionName} (props) { | |
return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ -z "$PS1" ] && return | |
HISTCONTROL=ignoredups:ignorespace | |
shopt -s histappend | |
HISTSIZE=1000 | |
HISTFILESIZE=2000 | |
shopt -s checkwinsize | |
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | |
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
debian_chroot=$(cat /etc/debian_chroot) | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install git -y && sudo apt-get install wget -y | |
sudo apt-get install make -y | |
sudo apt-get install postgresql postgresql-contrib libpq-dev -y | |
sudo apt-get install nodejs -y | |
sudo apt-get install nginx | |
wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz | |
tar -xzvf chruby-0.3.9.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[37;46;1mTest file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/agent.js[0m | |
[33m# userAgent() tests[0m | |
[32;1mPASS[0m Default user agent matches /CasperJS/ | |
[32;1mPASS[0m [36muserAgent()[0m tests [32;1m(3 tests)[0m | |
[32;1mPASS[0m Subject is strictly true | |
[32;1mPASS[0m Default user agent matches /plop/ | |
[37;46;1mTest file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/alert.js[0m | |
[33m# alert events[0m | |
[32;1mPASS[0m alert events [32;1m(1 test)[0m | |
[32;1mPASS[0m alert event has been intercepted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults -currentHost read -g | grep -oP 'keyboard.modifiermapping.\K([0-9-]*)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
cmds = [ | |
# "SPInstallHistoryDataType", | |
"SPBluetoothDataType", | |
# SPNetworkLocationDataType, | |
# SPDiagnosticsDataType, | |
# SPUSBDataType, | |
# SPSoftwareDataType, | |
#SPCameraDataType, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Changes the background color of | |
# iTerm window using applescript | |
# | |
# @param colorMatrix {Object} -- {100,0,0} | |
# | |
# @usage adjustBackground "{100,0,0}" | |
adjustBackground() { | |
osascript -e "tell application \"iTerm\" | |
set current_terminal to (current terminal) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the default configuration file. Enabling and disabling is configured | |
# in separate files. This file adds all other parameters apart from Enabled. | |
inherit_from: | |
- enabled.yml | |
- disabled.yml | |
# Common configuration. | |
AllCops: | |
# Include common Ruby source files. |