sdanna / sdanna.github.io Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Azure -> Create new VM
From Gallery -> Ubuntu -> Ubuntu Server 14.10
Tier -> Standard
Size -> A1
Set new user name, don't upload compatible ssh key for authentication, provide a password
Create a new cloud service
keep dns name the same
Specify region closest to you
use an automatically generated storage account
No availability set
Set up http endpoint, 80 public 4000 private (important later on)
Install the VM Agent
// VM starts being provisioned, and started
ssh into the box using the username you set up earlier. [email protected]
you'll get a prompt about not being able to verify the server's identity and will be given the RSA fingerprint and asked to continue. Type "Yes" and hit enter.
enter password when prompted
update apt-get:
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get install -y git-core curl nodejs
Install RVM and put ruby 2.0 on the machine -- instructions from https://rvm.io/rvm/install
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby
// exit and re-ssh into the server
rvm install 2.0
rvm list // to ensure that 2.0 is what is the default
// install bundler
gem install bundler
// pull down your repo
mkdir repositories
cd repositories
git clone
Make sure there is a file in the repo root called Gemfile with the following contents:
source 'https://rubygems.org'
gem 'github-pages'
bundle install // installs all the gems from the gemfile
// Maybe two posts
// Web Api Setup
Create a web api project
Create a Trello controller
Create a Post method that takes in a dynamic object and use the FromBody Attribute
Run ToString() on the object
Do something interesting with the data
Create a Head() method that returns back a new HttpResponse object
// Trello - Register web hook
Webhooks documentation
Get your key
// Request a token granting readonly access for 30 days:
// Copy and past into a browser and get your token LINK
https://trello.com/1/authorize?key=[my_key_goes_here]&name=WebHookSpike&expiration=30days&response_type=token
Take the token, move to Fiddler to create the webhook:
// Create a webhook
POST https://trello.com/1/tokens/[TOKEN]/webhooks/?key=[KEY]
User-Agent: Fiddler
Content-Type: application/json
Request Body // Quotes are important for object literal properties
{
"description": "WebHookSpike",
"callbackURL": "http://webapplication51020.azurewebsites.net/api/Trello",
"idModel": "[ID_OF_MODEL_YOU_WANT_TO_TRACK]"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.