First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:
sudo lsof | grep LISTEN
If you do happen to have any process with something like this *:http (LISTEN)
, you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)
ps <pid of that process>
If you don't see MAMP, you are in good hands, I have just the thing for you:
<?php | |
public function handle($event) { | |
$params = $event->subject(); | |
//create new instance of aweber using our dev creds | |
$app = new AweberAPI(Configure::read('aweber.consumerKey'), Configure::read('aweber.consumerSecret')); | |
//get our aweber account | |
$account = $app->getAccount(Configure::read('aweber.accessToken'), Configure::read('aweber.accessSecret')); | |
//find the list id that we want to subscribe the email to | |
$get_list = $account->lists->find(array('name' => $params['list_id'])); | |
$get_list = $get_list[0]; |
client | |
dev tun | |
proto tcp | |
remote 1.tcp.ngrok.io 20352 | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
mute-replay-warnings | |
ns-cert-type server |
local 192.168.1.2 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS | |
dev tun | |
proto tcp #Some people prefer to use tcp. Don't change it if you don't know. | |
port 443 | |
ca /etc/openvpn/easy-rsa/keys/ca.crt | |
cert /etc/openvpn/easy-rsa/keys/ttg.crt # SWAP WITH YOUR CRT NAME | |
key /etc/openvpn/easy-rsa/keys/ttg.key # SWAP WITH YOUR KEY NAME | |
dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here! | |
server 10.8.0.0 255.255.255.0 | |
# server and remote endpoints |
#!/bin/bash | |
# Default Variable Declarations | |
DEFAULT="Default.txt" | |
FILEEXT=".ovpn" | |
CRT=".crt" | |
KEY=".3des.key" | |
CA="ca.crt" | |
TA="ta.key" | |
var Video = Backbone.Model.extend({}); | |
var VideoList = Backbone.Collection.extend({ | |
model: Video, | |
url: '/videos' | |
}); | |
var VideoPlayerView = Backbone.View.extend({ | |
id: 'video-player', | |
className: 'video-player', |
filepicker.setKey('Ar6ip0fB0RbyQ2LuJnyB4z'); | |
filepicker.pickAndStore({services:['computer']}, {location:"S3"}, function(response) { | |
upload_finished(response); | |
}); | |
function upload_finished(response) { | |
$.ajax({ | |
url: '/media/add/780', | |
type: "POST", |