⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>{{ page.title }} — CollegeDegrees.com</title> | |
</head> | |
<body> | |
{{ content }} |
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
#!/usr/bin/env bash | |
echo "Checking out master branch" | |
git checkout master | |
git pull origin master | |
git log master..develop | |
read -p "Review your changes..." | |
echo "Merging develop branch" |
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
<?php | |
// This is the revised `web/app.php` (click the previous edit of this gist to see the original) | |
// | |
// For those of us that deploy along-side Zend Framework apps, whose convention has been to pivot configuration | |
// around APPLICATION_ENV, `web/app.php` and `web/app_dev.php` is redundant. | |
require_once __DIR__.'/../app/bootstrap.php.cache'; | |
require_once __DIR__.'/../app/AppKernel.php'; | |
//require_once __DIR__.'/../app/bootstrap_cache.php.cache'; |
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
<?php | |
namespace Application\ProdrepHelperBundle\Component\Event; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
use Symfony\Component\Security\Core\Exception\AccessDeniedException; | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
/** | |
*/ | |
class AjaxAuthenticationListener |
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
var data = "do shash'owania"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(data).digest("hex"); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
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
# We need to get an AUTH TOKEN first | |
curl -X GET -D - \ | |
-H "X-Auth-User: $USER" \ | |
-H "X-Auth-Key: $API_KEY" \ | |
https://auth.api.rackspacecloud.com/v1.0 \ | |
# HTTP/1.1 204 No Content | |
# Server: Apache/2.2.3 (Red Hat) | |
# vary: X-Auth-Token,X-Auth-Key,X-Storage-User,X-Storage-Pass | |
# X-Storage-Url: https://storage101.ord1.clouddrive.com/v1/MossoCloud-something-something |
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
This playbook has been removed as it is now very outdated. |
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
set :application, 'www.mysite.com' | |
set :deploy_to, "/srv/www.mysite.com" | |
set :domain, "www.mysite.com" | |
set :user, "deploymentuser" | |
set :scm, :git | |
set :repository, "[email protected]:myusername/myproject.git" | |
set :branch, :master | |
set :deploy_via, :remote_cache | |
set :copy_exclude, ['.git'] | |
ssh_options[:forward_agent] = true |
OlderNewer