Coder Social home page Coder Social logo

sdanna.github.io's People

Contributors

sdanna avatar

Stargazers

 avatar

Watchers

 avatar  avatar

sdanna.github.io's Issues

Post Idea: How to setup an azure vm with linux on it and install the environment needed to be able to test your posts

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

bundle exec jekyll serve -- should default to run on port 4000 - remember from earlier we set up public port 80 to forward to 4000 internally... this is why.

Post Idea: Setting up Web hooks using Trello/Web Api

// Maybe two posts

  1. How to setup the asp.net web api project and publish to azure
  2. The steps I used to register the web hook through Fiddler

// 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]"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.