example RTG_URL: redis://username:[email protected]:9555/
$ redis-server
#in a new tab run:
$ redis-cli
## History file configuration | |
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" | |
[ "$HISTSIZE" -lt 50000 ] && HISTSIZE=50000 | |
[ "$SAVEHIST" -lt 10000 ] && SAVEHIST=10000 | |
## History command configuration | |
setopt extended_history # record timestamp of command in HISTFILE | |
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE | |
setopt hist_ignore_dups # ignore duplicated commands history list | |
setopt hist_ignore_space # ignore commands that start with space |
require "slim" | |
require 'fileutils' | |
# allows single line html element followed by {{}} tags | |
Slim::Engine.set_options :attr_list_delims => {'(' => ')', '[' => ']'} | |
def convert(file, destination) | |
s = File::open(file).read() | |
t = Slim::Template.new({pretty: true}) { |x| s } |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Hello World!</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"></script> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.4.7/css/foundation.min.css" /> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.4.7/js/foundation.min.js"></script> |
import { Component } from '@angular/core' | |
import template from './index.html' | |
@Component({ | |
template: template | |
}) | |
export class ScholasticaNavigation { } |
#!/usr/bin/env bash | |
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz | |
mkdir vim && tar xzvf vim.tar.gz -C vim | |
export PATH=$PATH:/app/vim/bin |
example RTG_URL: redis://username:[email protected]:9555/
$ redis-server
#in a new tab run:
$ redis-cli
Creates an alias on the loopback interface (lo0) with the IP 10.254.254.254 on Mac OS X.
/Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
chmod 0644 /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
sudo chown root:wheel /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
sudo launchctl load /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |