Skip to content

Instantly share code, notes, and snippets.

View doapp-ryanp's full-sized avatar

Ryan Pendergast doapp-ryanp

View GitHub Profile
@doapp-ryanp
doapp-ryanp / gist:9687011
Last active August 29, 2015 13:57
versions for capistrano osx
ruby --version
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin13.0.2]
cap --version
Capistrano v2.15.5
gem query --local
*** LOCAL GEMS ***
@doapp-ryanp
doapp-ryanp / osticket.conf
Last active August 29, 2015 14:01
osticket.conf
server {
server_tokens off;
listen 80 default_server;
server_name tickets.me.com;
client_max_body_size 5M;
keepalive_timeout 0;
fastcgi_read_timeout 120;
fastcgi_send_timeout 60;
@doapp-ryanp
doapp-ryanp / cloudformation.json
Created January 15, 2015 17:01
AWS CloudFormation for CodeDeploy
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Webservices",
"Parameters": {
"aaPrefix": {
"Type": "String",
"Default": "prod"
},
"ProjectName": {
"Type": "String",
cat /etc/php5/fpm/conf.d/20-aws-elasticache-cluster.ini
[memcached]
; Use session locking
; valid values: On, Off
; the default is On
memcached.sess_locking = On
; Session spin lock retry wait time in microseconds.
phpinfo()
PHP Version => 5.5.22-1+deb.sury.org~trusty+1
System => Linux ip-172-31-53-102 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64
Build Date => Feb 20 2015 11:28:01
Server API => FPM/FastCGI
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/fpm
Loaded Configuration File => /etc/php5/fpm/php.ini
Scan this dir for additional .ini files => /etc/php5/fpm/conf.d
@doapp-ryanp
doapp-ryanp / cfExtensions.json
Created August 20, 2015 20:32
cfExtensions example
{
...
"cfExtensions": {
"PolicyDocumentStatements": [
{
"Action": [
"s3:Get*",
"s3:List*",
"s3:Put*"
],
@doapp-ryanp
doapp-ryanp / cloudFormationResource.json
Created October 21, 2015 18:06
cloud formation for CloudFront in front of API Gateway
{
"Type": "AWS::CloudFront::Distribution",
"Properties": {
"DistributionConfig": {
"Origins": [
{
"Id": "pushchansearch",
"DomainName": "myapig.execute-api.us-east-1.amazonaws.com",
"CustomOriginConfig": {
"HTTPPort": "80",
{
"location": {
"id":"wx-2396395",
"name":"Rochester, MN",
"lat":44.015076,
"lng":-92.47752,
"countyFips":["27109"]
},
"timestamp":{
"offset":"2015-12-21T09:27:12.000-0600",
@doapp-ryanp
doapp-ryanp / swagger.json
Created April 12, 2016 18:02
response reference object
{
"swagger": "2.0",
"info": {
"title": "Swagger 2.0 response ref",
"description": "Is valid, but does not work with AWS import",
"version": "1.0.0"
},
"host": "ws.mlnapi.com",
"schemes": [
"https"
@doapp-ryanp
doapp-ryanp / index.html
Created April 20, 2017 16:34
hello world
<!doctype html><html lang=en><head><meta charset=utf-8><title>rynop.com</title></head><body>Hello World</body></html>