This file contains 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
Listen 5000 | |
PidFile tmp/httpd.pid | |
LockFile tmp/accept.lock | |
# | |
# Dynamic Shared Object (DSO) Support | |
# | |
# To be able to use the functionality of a module which was built as a DSO you | |
# have to place corresponding `LoadModule' lines at this location so the | |
# directives contained in it are actually available _before_ they are used. |
This file contains 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
# DOCKER-VERSION 0.9.0 | |
FROM ruby:latest | |
MAINTAINER Quinn Shanahan [email protected] | |
# http://www.activestate.com/blog/2014/01/using-docker-run-ruby-rspec-ci-jenkins | |
RUN apt-get install postgresql-client-common | |
EXPOSE 3000 |
This file contains 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
nsenter --target $(docker inspect --format '{{.State.Pid}}' my_running_app) --mount --uts --ipc --net --pid |
This file contains 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
module.exports = function (grunt) { | |
var conf = { | |
browserify: { | |
options: { | |
transform: [ require('grunt-react').browserify ] | |
}, | |
app: { | |
src: 'app/scripts/main.js', dest: 'dist/bundle.js' | |
} | |
}, |
This file contains 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 | |
register_shutdown_function('what_happened'); | |
function what_happened () { | |
$reflFunc = new ReflectionFunction('ldap_escape'); | |
echo "\nthe function location:\n"; | |
echo $reflFunc->getFileName() . ':' . $reflFunc->getStartLine() . "\n"; | |
var_dump($reflFunc); | |
echo "the error:\n"; | |
echo var_dump(error_get_last()); |
This file contains 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
def extract_app_in_dir(dir) | |
return unless remotes = git_remotes(dir) | |
current_app = false | |
begin | |
current_app = File.read(FileUtils.pwd + '/.current-heroku-app').chomp | |
rescue Errno::ENOENT | |
end | |
if remote = options[:remote] |
This file contains 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
--- | |
topics: | |
- name: '1.1b. Test Topic' | |
activities: | |
- name: 'Common Nouns' | |
rules: | |
- id: '1' | |
old_rule_id: '10' | |
explanation: 'Explanation text.' | |
questions: |
This file contains 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
default_access: &default_access | |
list: [all] | |
read: [all] | |
update: [owner, admin] | |
create: [all] | |
destroy: [owner, admin] | |
root: | |
activities: | |
attributes: |
This file contains 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
JRUBY_OPTS=--1.9 | |
APP_SECRET=not-so-secret | |
HOMEPAGE_CHAPTER_ID=1 |
This file contains 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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="font-family" attributes="family normal italic bold italic-bold format url" lightdom> | |
<template> | |
<template if="{{normal}}"> | |
<style> | |
@font-face { | |
font-family: '{{family}}'; | |
src: {{url}}('{{normal}}') format('{{format}}'); | |
font-weight: normal; |