- Add a datasource for each soap service
- Install debug and async
npm install --save async debug
- Add boot script
- Modify main server script to use call back
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
### Keybase proof | |
I hereby claim: | |
* I am lancehudson on github. | |
* I am lancehudson (https://keybase.io/lancehudson) on keybase. | |
* I have a public key whose fingerprint is D6D6 5B10 C596 CDDA 376A 7408 6CE7 9DDF B2B4 DE37 | |
To claim this, I am signing this object: |
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
-bash-4.2$ ansible-playbook -vvvv -i hosts job/facebook.yml --connection=local | |
PLAY [Run Facebook job] ******************************************************* | |
TASK: [debug var=body] ******************************************************** | |
ok: [127.0.0.1] => (item=1) => { | |
"body": { | |
"data": { | |
"args": { | |
"accountId": "1", |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Kubernetes on EC2", | |
"Mappings": { | |
"RegionMap": { | |
"eu-central-1": {"AMI": "ami-468dbd5b"}, | |
"ap-northeast-1": {"AMI": "ami-0c05160d"}, | |
"sa-east-1": {"AMI": "ami-23b00d3e"}, | |
"ap-southeast-2": {"AMI": "ami-b7295c8d"}, | |
"ap-southeast-1": {"AMI": "ami-b40f27e6"}, |
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
#!/bin/bash | |
#URL=http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz | |
URL=$1 | |
wget $URL -O image.tgz | |
fallocate -l 2G root.img | |
mkfs.ext4 root.img | |
mkdir root | |
mount -t ext4 root.img root | |
bsdtar -xpf image.tgz -C root |
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
#!/bin/bash | |
brew install dnsmasq | |
cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf | |
sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons | |
sudo chown root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
echo -n "nameserver 127.0.0.1" | sudo tee /etc/resolver/dev | |
echo -n "nameserver 127.0.0.1" | sudo tee /etc/resolver/test | |
echo -n "nameserver 127.0.0.1" | sudo tee /etc/resolver/docker |
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 http = require('http'); | |
var app = http.createServer(function(req, res) { | |
if(req.method === "POST") { | |
var body = ""; | |
req.on('data', function (chunk) { | |
body += chunk; | |
}); | |
req.on('end', function () { | |
io.emit('pixmob', "on"); |
apparently the first alphabetical name is the name of the gist, otherwise this whould be readme.md
prereqs: gem install socksify
do a ./pull.sh at least once into this repo and when you clone it use the flag --recursive
because gists dont allow subdirs, hooks_setup.sh should be hooks/setup.sh go ahead and fix all of those and chmod +x both the pre-* hooks.
and run hooks/setup.sh to set the hooks up
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 request = require('request'); | |
var getTopItems = function(url, cb) { | |
request.get(url, function(err, response, body) { | |
if (err) { return cb(err); } | |
if (response.statusCode !== 200) { return cb(body); } | |
cb(null, JSON.parse(body).data.children.map(function(item) { | |
return item.data; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
required_plugins = %w( vagrant-triggers vagrant-persistent-storage ) | |
required_plugins.each do |plugin| | |
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin | |
end | |
IP = "192.168.50.4" | |
NAME = "default" |
OlderNewer