Skip to content

Instantly share code, notes, and snippets.

View RickyPughcardo's full-sized avatar

Ricky P. RickyPughcardo

View GitHub Profile
On Pantheon Server:
Inside of Dir on Server:
[root@endpoint363cd5a9 code]# btool drush fra
2014-05-27 15:44:42+0000 [-] Making synchronous GET request to api.live.getpantheon.com:8443//bindings/71a59ff4945b4e1e885c30c336ff5beb
2014-05-27 15:44:42+0000 [-] Loading appserver binding 71a59ff4945b4e1e885c30c336ff5beb
2014-05-27 15:44:42+0000 [-] Making synchronous GET request to api.live.getpantheon.com:8443//sites/fc46dbe1-8b27-83cc-9c59-97a79cbbc673/environments/dev/settings
[localhost] local: chown -R 71a59ff4945b4e1e885c30c336ff5beb /srv/bindings/71a59ff4945b4e1e885c30c336ff5beb/.drush/*
// Redirect to force indexing with custom domain sitemap
$subject = $_SERVER['HTTP_HOST'];
$pattern = '/gotpantheon.com/sitemap.xml$/';
preg_match($pattern, $subject, $matches);
$counted = count($matches);
if ($counted > 0 ) {
header('HTTP/1.0 301 Moved Permanently');
header('Location: http://yoursite.com/sitemap.xml'. $_SERVER['REQUEST_URI']);
exit();
}
Support Engineer // Pantheon Systems
08/2012 - 12/2013 San Francisco, CA
Pantheon is a scalable, highly available Drupal Platform-as-a-Service. SE duties include:
Troubleshooting client problems on full stack (Git, MySQL, PHP, Drupal, Nginx, Pantheon)
Auditing/Load Testing Enterprise-level Drupal sites with tools including: New Relic, XHProf, Loadstorm, log analysis & system-level administration, and Drush
Authoring training content and videos (See Pantheon Academy Youtube channel)
Interfacing with Users via Desk.com
Working with Sales to help onboard new clients and Engineering to realize issues and ideas.
<?php
getContent();
function getContent() {
// Set the base URL for topics
$desk_url = 'https://pantheon-systems.desk.com/api/v2/articles/';
$desk_user = 'user';
$desk_password = 'password';