start new:
tmux
start new with session name:
tmux new -s myname
require 'rubygems' | |
require 'bundler' | |
Bundler.require | |
require './application' | |
namespace :assets do | |
desc 'compile assets' | |
task :compile => [:compile_js, :compile_css] do | |
end |
#!/bin/sh | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
BTW yum has last Redis too, remi repository at least. | |
$ sudo -i | |
$ yum list redis | |
$ redis.x86_64 2.6.13-1.el6.remi remi | |
But today we want compile redis from source (see http://redis.io/download) | |
$ yum install make gcc tcl | |
$ cd /usr/local/src |
<%= semantic_form_for @parent do |a| %> | |
<%= a.inputs "Family Details" do %> | |
<%= a.input :name %> | |
<%= a.input :user %> | |
<%= a.input :region %> | |
<% end %> | |
<%= a.inputs "Children" do %> | |
<table> |
# create systemd service file for rails 2.3.x startup | |
[Unit] | |
Description=rails 2.3.x web server | |
[Service] | |
Type=simple | |
RemainAfterExit=yes | |
User=username | |
PIDFile=/home/username/WEBSERVER/tmp/pids/thin.pid | |
WorkingDirectory=/home/username/WEBSERVER |
FROM atlashealth/ruby:2.1.2 | |
ENV DEBIAN_FRONTEND noninteractive | |
# If you don't want to use therubyracer gem or similar, | |
# install Node.js as your preferred JS runtime | |
RUN curl -sL https://deb.nodesource.com/setup | bash - | |
# Install dependencies needed by Rails, followed by cleanup | |
RUN apt-get update -q && \ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
var gulp = require('gulp') | |
var browserify = require('browserify') | |
var watchify = require('watchify') | |
var babelify = require('babelify') | |
var source = require('vinyl-source-stream') | |
var buffer = require('vinyl-buffer') | |
var merge = require('utils-merge') |