Instructions for getting an ELK stack set up quick on Mac. Paths are opinionated. You'll have to infer and change. Sorry mate. 🍰
Install Homebrew if not already. You probably have. If not, you should.
brew install elasticsearch nginx
# Connect to the event notification stream | |
./jfrog bt st <bintray-org> --user=<bintray-username> --key=<bintray-api-key> --include="download" | | |
while read line | |
do | |
# Extract the path from the whole event response | |
path=$(echo $line | jq .path -r) | |
curl <slack-webhook-url> -H"Content-Type:application/json" --data "{\"text\":\"File Downloaded: $path\"}" | |
done |
# I recently needed to automate the process of spinning up Windows EC2 instances | |
# in AWS, installing ZeroTier, and then joining them to a ZeroTier network. I | |
# used Terraform to do this. This example might help others. If you provide an | |
# existing subnet, security group, ZeroTier network ID, and a few other details | |
# via Terraform variables, this template will create one demo Windows instance | |
# in AWS, install ZeroTier, and join the instance to the specified ZeroTier | |
# network. | |
variable "aws_region" { | |
description = "AWS Region where this instance will be deployed (ie: us-east-1)" |
// | |
// Quick & Dirty Google Cloud Storage emulator for tests. Requires | |
// `stream-buffers` from npm. Use it like this: | |
// | |
// `new MockStorage().bucket('my-bucket').file('my_file').createWriteStream()` | |
// | |
class MockStorage { | |
buckets: {[name: string]: MockBucket}; |
{ | |
"variables": { | |
"ros_version" : "v0.5.0", | |
"iso_md5" : "467caa8394684ba54e8731aed8480652", | |
"vm_name" : "rancher_image" | |
}, | |
"builders": [ | |
{ | |
"type": "vmware-iso", | |
"iso_url": "https://releases.rancher.com/os/{{ user `ros_version` }}/rancheros.iso", |
#!/bin/bash | |
## Copyright (C) 2015 Cerebral Gardens http://www.cerebralgardens.com/ | |
## | |
## Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
## software and associated documentation files (the "Software"), to deal in the Software | |
## without restriction, including without limitation the rights to use, copy, modify, | |
## merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
## permit persons to whom the Software is furnished to do so, subject to the following | |
## conditions: |
#!/bin/bash | |
# 1 = VMware Tools ISO is mounted from vSphere | |
# 2 = Download VMware Tools (assumes you can connect to internet) | |
INSTALL_METHOD=2 | |
# Thanks to Rich Trouton for tip on Tools being available online | |
VMWARE_TOOLS_DOWNLOAD_URL=http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/7.1.2/2779224/packages/com.vmware.fusion.tools.darwin.zip.tar | |
# DO NOT MODIFY BEYOND HERE # |
Instructions for getting an ELK stack set up quick on Mac. Paths are opinionated. You'll have to infer and change. Sorry mate. 🍰
Install Homebrew if not already. You probably have. If not, you should.
brew install elasticsearch nginx
Support CORS. Allow the API to be accessed through webapps without having to setup a proxy server in between.
Add documentation! Sneaking around the API and looking at the the trip planner code is not optimal.
Build an API the right way. Provide API keys so you can throttle requests and make sure things aren't getting slow.
More frequent polling of the bus locations. Right now it takes 30-90 seconds for bus locations to update. This sucks for users.
When will the 803 info be added to the GTFS database?
server { | |
server_name yoursite.com; | |
root /usr/share/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
} |
server { listen 80; | |
server_name example.com; | |
access_log /var/log/example.com/nginx.access.log; | |
error_log /var/log/example.com/nginx.error.log; | |
root /var/www/apps/example.com/public; | |
charset utf-8; | |
location / { | |
rewrite ^ https://$host$request_uri? permanent; | |
} |