Skip to content

Instantly share code, notes, and snippets.

View Rakshitha-M-Rodrigo's full-sized avatar
🏠
Working from home

Rakshitha Muranga Rodrigo Rakshitha-M-Rodrigo

🏠
Working from home
View GitHub Profile
# Google's Language Map
ach : Acoli
af : Afrikaans
ak : Akan
am : አማርኛ
ar : العربية
az : azərbaycan
ban : Balinese
be : беларуская
bem : Ichibemba
@Rakshitha-M-Rodrigo
Rakshitha-M-Rodrigo / README-Template.md
Created September 1, 2017 15:14 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Rakshitha-M-Rodrigo
Rakshitha-M-Rodrigo / JOSNArraySwiftParsingiOS
Created June 17, 2017 09:49 — forked from ashishkakkad8/JOSNArraySwiftParsingiOS
JSON Array Parsing in Swift Langauage - Swift 3 – iOS 10 – Xcode 8 GM
//
// ViewController.swift
// SwiftJSONParsingDemo
//
// Created by Ashish Kakkad on 12/10/16.
// Copyright © 2016 Kode. All rights reserved.
//
import UIKit
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let urlPath = "http://telize.com/geoip"
let url = NSURL(string: urlPath)
let session = NSURLSession.sharedSession()
let task = session.dataTaskWithURL(url!, completionHandler: {data, response, error -> Void in
@Rakshitha-M-Rodrigo
Rakshitha-M-Rodrigo / deployUser.md
Created May 23, 2017 07:17 — forked from learncodeacademy/deployUser.md
Adding a deploy user in Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password

@Rakshitha-M-Rodrigo
Rakshitha-M-Rodrigo / flightplan-deploy.md
Created May 23, 2017 07:17 — forked from learncodeacademy/flightplan-deploy.md
Deploy Node.js Apps with Flightplan

##Setup your server (this would ideally be done with automated provisioning)

  • add a deploy user with password-less ssh see this gist
  • install forever npm install -g forever

##Install flightplan

  • npm install -g flightplan
  • in your project folder npm install flightplan --save-dev
  • create a flightplan.js file
@Rakshitha-M-Rodrigo
Rakshitha-M-Rodrigo / flightplan-html.md
Created May 23, 2017 07:15 — forked from learncodeacademy/flightplan-html.md
Deploy HTML site with Flightplan

###Prerequesites

Install flightplan globally

npm install -g flightplan

Install flightplan in your project folder