See comments in the files for explanation. This works flawlessly for me on MediaTemple + Git(Hub).
- SSH into your MediaTemple server.
- Put your public key into ~/.ssh/authorized_keys2 with mode 0600
#!/usr/bin/perl -w | |
use strict; | |
use DBI; | |
use Net::FTP; | |
use Switch; | |
use POSIX qw(strftime); | |
use Text::Wrap; | |
$Text::Wrap::columns = 120; | |
our %remote_login; #ftp or scp log in information | |
our $remote_type; #is it ftp or scp? |
<?php | |
s::start(); | |
function panelUser() { | |
$cookie = cookie::get('auth'); | |
if(!$cookie) return false; | |
$info = s::get($cookie); |
#!/bin/sh | |
wget -q http://www.startssl.com/certs/sub.class1.server.ca.pem -O /tmp/sub.class1.server.ca.pem; \ | |
openssl ocsp -CAfile /tmp/sub.class1.server.ca.pem -issuer /tmp/sub.class1.server.ca.pem \ | |
-url http://ocsp.startssl.com/sub/class1/server/ca -noverify -no_nonce \ | |
-header "HOST" "ocsp.startssl.com" -cert ${1} |
#!/bin/bash | |
# Created on 7/17/13 by Ryan Sechrest | |
# Deploys pushed branch from the origin repository to the web directory | |
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then | |
# Set path to project directory | |
project_path="/var/www/domains/$2/$3" |
############################## | |
## Kirby configuration | |
############################## | |
location /kirby/ { | |
include /etc/nginx/mime.types; | |
index index.php; | |
root /var/www/addons88/; | |
if (!-e $request_filename){ |
# Convert any YouTube video into an audio file you can listen to on the go, using: | |
# http://rg3.github.com/youtube-dl/ | |
{ ~ } > brew install ffmpeg | |
{ ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl | |
{ ~ } > chmod u+x youtube-dl | |
# Pick which video format you want to download.. (use any YT video link) | |
{ ~ } > ./youtube-dl -s -F http://www.youtube.com/watch?v=vT1KmTQ-1Os |
ssl_certificate cert.pem; | |
ssl_certificate_key cert.key.pem; | |
ssl_trusted_certificate cert.ca.pem; | |
ssl_dhparam cert.dh.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers FIPS@STRENGTH:!aNULL:!eNULL; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; |
#!/bin/bash | |
# --------------------------------------------------------------------------- | |
# | |
# File: .bash_commands | |
# | |
# Author: Ryan Sechrest | |
# Website: ryansechrest.com | |
# | |
# Description: New and enhanced bash commands for developers on Mac OS X. |