Skip to content

Instantly share code, notes, and snippets.

jose d lopez dashr

Block or report user

Report or block dashr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dashr
dashr / gulpfile.js
Created Oct 3, 2016 — forked from plasticbrain/gulpfile.js
gulp.js task to deploy code to remote servers
View gulpfile.js
/*******************************************************************************
* Description:
*
* Gulp file to push changes to remote servers (eg: staging/production)
*
* Usage:
*
* gulp deploy --target
*
* Examples:
@dashr
dashr / bucket_policy.js
Created Mar 27, 2016
S3 public read bucket policy
View bucket_policy.js
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadForGetBucketObjects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKETNAME/*"
}
@dashr
dashr / policy.js
Last active Mar 27, 2016
aws s3 writer
View policy.js
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::BUCKETNAME"
View gist:e6d353b5d9b086595696
cat STAR_yourdomain_ext.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > star.yourdomain.crt
View gist:bd58b42bd21d27865558
##
# File Cache Settings
##
open_file_cache max=5000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m max_size=1000m inactive=60m;
View gist:f39704b9f8b7ba46023a
ssl_certificate /etc/nginx/ssl/star.domain.pem;
ssl_certificate_key /etc/nginx/ssl/star.domain.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
# Add HSTS
View adistrict.json
[
{
"id": 609620,
"name": "Compton Unified",
"address": "501 S.santa Fe Ave",
"city": "Compton",
"state": "CA",
"zip": "90221",
"country": "US",
"lat": 33.892303,
View districts.json
[
{
"id": 628050,
"name": "Oakland Unified",
"address": "1025 Second Ave",
"city": "Oakland",
"state": "CA",
"zip": "94606",
"country": "US",
"lat": 37.796749,
View aschool.json
[
{
"id": 62949011462,
"district_id": 629490,
"name": "Pajaro Valley High",
"address": "500 Harkins Slough Rd",
"city": "Watsonville",
"state": "CA",
"zip": "95076",
"country": "US",
View schooldb.json
[
{
"id": 62949004547,
"district_id": 629490,
"name": "Pajaro Middle",
"address": "250 Salinas Rd",
"city": "Watsonville",
"state": "CA",
"zip": "95076",
"country": "US",
You can’t perform that action at this time.