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 |
| #!/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.plistchmod 0644 /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plistsudo chown root:wheel /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plistsudo 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 |
| <style type="text/css"> | |
| #leaderboard li { | |
| font-family: sans-serif; | |
| font-size: 12px; | |
| line-height: 12px; | |
| } | |
| #leaderboard #players li { | |
| display:block; | |
| clear: both; | |
| position: absolute; |
| #!/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 |
| #!/bin/bash | |
| # from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
| # and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
| ############################################### | |
| # To use: | |
| # wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh | |
| # chmod 777 install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| echo "*****************************************" |