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
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
assets_path = File.expand_path("~/projects/rails/scout/public") | |
log_path = File.expand_path "~/assets.txt" | |
temp_requested_files_path = File.expand_path "~/processed_assets.txt" | |
ignore_pattern = /sparkline|datejs/ | |
known_used =[ | |
"javascripts/jquery-1.7.1.min.js", | |
"javascripts/jquery.extensions.js", | |
"javascripts/application.js", | |
"stylesheets/default.css", |
#!/usr/bin/env bash | |
# | |
# This is a shared machine. I have added this | |
# quick script to set the git config variables | |
# | |
# If you want this to work add | |
# | |
if [ -d ~/gitconfig ]; then |
public class MyPrinter implements MyPrinterInterface(){ | |
@Override | |
public void printToScreen(String toPrint){ | |
System.out.println(toPrint); | |
} | |
} | |
public class MyPrinterMock implements MyPrinterInterface(){ |
//* Add Post categories above Post title on single Posts | |
add_action ( 'genesis_entry_header', 'sk_show_category_name', 9 ); | |
function sk_show_category_name() { | |
if ( ! is_singular('post') ) | |
return; | |
echo do_shortcode('[post_categories before="Filed Under: "]'); | |
} |
# Establishing a top level namespace for a given module (Context Library), | |
# that serves as the internal API for a component of a system | |
# is a great way to begin the process of extracting that component | |
# from its containing environment. | |
# Benefits include: | |
# A well defined boundary of responsibilities | |
# More DRY (less duplicated knowledge of the way a component works) | |
# Isolates points of contact between component and containing system | |
# Expresses a clear and simple definition of the component's responsibilities defined by use case |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger