bellamko@adobe.com / unfiltered / limited distribution
Nothing unexpected. That zoo story was weird.
bellamko@adobe.com / unfiltered / limited distribution
Nothing unexpected. That zoo story was weird.
We can test webhook callbacks with a little http server and a localtunnel.
Run server.js to spin up a local http server on port 8080. It just exposes a top-level route and will print the received header and payload of any request. Then create a localtunnel to have a non-local url that proxies all requests to localhost:8080.
First, install dependencies with npm install.
Then start the express server with npm start.
| $ kube-proxy --help | |
| The Kubernetes network proxy runs on each node. This | |
| reflects services as defined in the Kubernetes API on each node and can do simple | |
| TCP,UDP stream forwarding or round robin TCP,UDP forwarding across a set of backends. | |
| Service cluster ips and ports are currently found through Docker-links-compatible | |
| environment variables specifying ports opened by the service proxy. There is an optional | |
| addon that provides cluster DNS for these cluster IPs. The user must create a service | |
| with the apiserver API to configure the proxy. | |
| Usage: | 
| ''' | |
| This is an example of the server-side logic to handle slash commands in | |
| Python with Flask. | |
| Detailed documentation of Slack slash commands: | |
| https://api.slack.com/slash-commands | |
| Slash commands style guide: | |
| https://medium.com/slack-developer-blog/slash-commands-style-guide-4e91272aa43a#.6zmti394c | |
| ''' | 
#MongoDB - Setting up a Replica Set
cd \mongodbdir\
mkdir db1
mkdir db2
mkdir db3
###Primary mongod --dbpath ./db1 --port 30000 --replSet "demo"
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| type Foo struct { | |
| FirstName string `tag_name:"tag 1"` | |
| LastName string `tag_name:"tag 2"` | 
| ## Example: Grab the value for the MYSQL_USER key | |
| User=$( sed -n 's/.*"MYSQL_USER": "\(.*\)",/\1/p' /var/lib/credentials.json ) | |
| ## Example: Grab the value for the MYSQL_PASSWORD key | |
| Passwd=$( sed -n 's/.*"MYSQL_PASSWORD": "\(.*\)",/\1/p' /var/lib/credentials.json ) |