This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
new Highcharts.Chart({ | |
chart: { renderTo: 'session_duration_chart', | |
type: 'line' | |
}, | |
title: { text: 'Time Spent Online' }, | |
xAxis: { type: 'datetime' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SpreePolkaspots | |
class Engine < Rails::Engine | |
def self.activate | |
Order.class_eval do | |
Order.state_machines[:state] = StateMachine::Machine.new(Order, :initial => 'cart') do | |
after_transition :to => 'complete', :do => :complete_order | |
before_transition :to => 'complete', :do => :process_payment | |
before_transition :to => 'delivery', :do => :valid_zip_code? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName xxx | |
DocumentRoot "/var/www/html/xxx/xxx-staging/public" | |
CustomLog /var/log/apache2/xxx-staging common | |
RewriteEngine On | |
<Proxy balancer://unicornservers> | |
BalancerMember http://127.0.0.1:5000 | |
</Proxy> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scp username@ipaddress:/path/to/file . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/capistrano' | |
set :whenever_environment, defer { stage } | |
require "whenever/capistrano" | |
load 'deploy/assets' | |
before 'deploy', 'rvm:install_rvm' | |
ssh_options[:forward_agent] = true | |
ssh_options[:port] = '64322' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/************************************************/ | |
/* CODE TO GENERATE THE SLIDE LI'S STARTS HERE */ | |
/************************************************/ | |
/* Base URL to the shop and db details - this will change when site goes live */ | |
$baseurl = "http://shop.xxx.com/"; | |
$dbhost = "x.x.x.221"; | |
$dbname = "xxxxx"; | |
$dbuser = "xxxxx"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should display correct fields for Clickthrough Access", :js => true do | |
click_link 'Access Settings' | |
select("Clickthrough", :from => "location_access_type") | |
page.should have_content "UPDATE YOUR ACCESS SETTINGS" | |
page.should_not have_content "Access Password" | |
page.should_not have_content "Auto email password" | |
page.should have_content "Session Timeout" | |
page.should have_content "Max Users" | |
page.should have_content "Speed Limits" | |
page.should have_content "Idle Timeout" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WordPress single blog rules. | |
# Designed to be included in any server {} block. | |
# This order might seem weird - this is attempted to match last if rules below fail. | |
# http://wiki.nginx.org/HttpCoreModule | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
# Directives to send expires headers and turn off 404 error logging. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bavan@ubuntu:~$ mtr --report -n -c 10 mywifi.polkaspots.com | |
HOST: ubuntu Loss% Snt Last Avg Best Wrst StDev | |
1.|-- 10.0.1.1 0.0% 10 1.7 1.5 1.1 1.8 0.2 | |
2.|-- 10.0.4.1 0.0% 10 1.9 2.4 1.9 3.7 0.6 | |
3.|-- 46.37.56.1 0.0% 10 53.8 31.3 23.1 53.8 11.7 | |
4.|-- 46.37.32.234 0.0% 10 22.9 28.4 22.5 45.3 8.9 | |
5.|-- 93.89.94.149 0.0% 10 23.7 25.6 23.2 35.2 3.6 | |
6.|-- 93.89.91.14 0.0% 10 36.3 29.2 23.2 36.8 6.0 | |
7.|-- 212.187.200.101 0.0% 10 42.1 51.0 23.7 175.7 47.9 | |
8.|-- 4.69.139.120 0.0% 10 36.3 32.8 23.3 62.9 12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bavan@ubuntu:~/attitude_adjustment$ sudo ssldump -i eth0 port 443 and host mywifi.polkaspots.com | |
New TCP connection #1: ubuntu.local(59111) <-> 5.79.36.34(443) | |
1 1 0.0272 (0.0272) C>S Handshake | |
ClientHello | |
Version 3.1 | |
resume [32]= | |
00 54 75 a7 0c f3 25 e9 d5 c5 e0 a6 7a b3 96 03 | |
c3 75 07 a4 a7 88 99 ed c2 a0 cd 16 be 7f 54 e3 | |
cipher suites | |
Unknown value 0xff |
OlderNewer