Skip to content

Instantly share code, notes, and snippets.

View theagsco's full-sized avatar

Dave Coleman theagsco

View GitHub Profile
jQuery(document).ready(function($) {
$('.slideshow').slick({
arrows: false,
autoplay: true,
autoplaySpeed: 5000, //Change autoplay speed (in milliseconds)
fade: true,
speed: 0 //Change fade transition speed (in milliseconds)
});
});

I want to do the following three things:

  1. Log on to my remote server from my local server without having to type in a password every time
  2. Have my local server read from and write to a remote repository stored on GitHub, again without a password
  3. Have my remote server read from that same remote repo, no password

Obviously the answer is SSH keys.

I have created an SSH key pair, stored in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub respectively. I have added them to the ssh-agent using $ ssh-add and noted the passphrase. I've logged on to my remote server and added the contents of id_rsa.pub to ~/.ssh/authorized_keys on a new line. I can now run $ ssh root@[example.com] and I am logged on without being prompted for my password. Brilliant!

set :stage, :staging
# Simple Role Syntax
# ==================
#role :app, %w{deploy@example.com}
#role :web, %w{deploy@example.com}
#role :db, %w{deploy@example.com}
# Extended Server Syntax
# ======================
set :application, 'dev.theagsc.com'
set :repo_url, 'git@bitbucket.org:theagsc/theagsc.git'
# Branch options
# Prompts for the branch name (defaults to current branch)
set :branch, -> { `git rev-parse --abbrev-ref HEAD`.chomp }
# Hardcodes branch to always be master
# This could be overridden in a stage config file
# set :branch, :master
<p>Rollout: Top banner spacing + search bar</p>
<p>1) Adjusted top banner spacing – Line 1056</p>
<p><em>Old</em></p>
<pre><code>&lt;div id=&apos;ad1_holder&apos; style=&apos;position: absolute;top: 45px;margin-left: 7%;&apos;&gt;&lt;script&gt;parent.window.resizeWR(728);&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;
</code></pre>
<p><em>New</em></p>
<pre><code>&lt;div id=&apos;ad1_holder&apos; style=&apos;position: absolute;top: 48px;margin-left: 7%;&apos;&gt;&lt;script&gt;parent.window.resizeWR(728);&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;
</code></pre>
<p>2) Removed Games link – Line 505 (remove whole line)</p>
<p>3) Adjusted border radius for Forum button – Line 113</p>