For your Ruby, you'll must install this gems:
sudo gem install passenger
sudo passenger-install-apache2-module
At this moment, you'll asked to install some Apache2's deps (three deps):
sudo apt-get install apache2-prefork-dev
For your Ruby, you'll must install this gems:
sudo gem install passenger
sudo passenger-install-apache2-module
At this moment, you'll asked to install some Apache2's deps (three deps):
sudo apt-get install apache2-prefork-dev
disable_flush and disable_recovery (TD)| MastHead mastHead=new MastHead(); | |
| NavLink logIn=new NavLink("Log In"); | |
| NavLink aboutButton=new NavLink("About"); | |
| mastHead.setText("My Awesome App"); | |
| mastHead.setSubtext("Subtitle"); | |
| mastHead.addButton(logIn); | |
| mastHead.addButton(aboutButton); |
This filter intercepts the response and runs Flying Saucer ITextRenderer on it, returning a pdf instead.
Just put the filter on your code and configure the url patterns where it will run on web.xml. The filtered pages will return as pdf documents.
| document.body.innerHTML="";setInterval(function(){document.body.style.background='#'+(Math.random()*0x1000000<<0).toString(16)},50); |
| $!/usr/bin/env sh | |
| branch=`git symbolic-ref --short HEAD` | |
| git checkout master | |
| commits=`git log --pretty="%H" --reverse -- $*` | |
| git checkout $branch | |
| for commit in $commits; do | |
| git cherry-pick $commit | |
| done |
| package com.derekstavis; | |
| public class DigitalClock extends TextView { | |
| private int hours; | |
| private int minutes; | |
| private int seconds; | |
| private Timer clockTimer; | |
| private final TimerTask clockTask = new TimerTask() { | |
| @Override |
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:
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".