- Note: This file includes markup. Until we incorporate .md markup, [you can read the html version here] (https://gist.github.com/nvasilakis/8759837#file-lab2-md)
- 20' Server Architectures
| The objective of this post is to get you from absolutely nothing, to a fully functional nodejs environment. | |
| Software used: Ubuntu 11.10, Nodejs v0.6.12, Nginx, MongoDB, Redis, and NPM modules. | |
| 1. Download and install the latest version of Ubuntu: http://www.ubuntu.com/download (don't select any extra items to install when prompted) | |
| 2. Once you are logged in and are at your Ubuntu command prompt, install the necessary software you will need: | |
| a. sudo apt-get install openssh-server | |
| b. sudo apt-get install libssl-dev | |
| c. sudo apt-get install git | |
| d. sudo apt-get install g++ | |
| e. sudo apt-get install make |
| // Take for example the following methods: | |
| void method_1(int a, out int b, ref int c) { | |
| //implementation | |
| } | |
| void method_2(Object o, out Object p, ref Object q) { | |
| //implementation | |
| } | |
| // Which are later called with values |
10' VM/Linux setup and issues
30' Shell (bash, scripting, zsh, screen, environment)
| function submit { | |
| # cd ~/workspace/HW0 | |
| # get directory from where it's being called | |
| # TODO: Grab homwork number and have cases based on the ant scripts | |
| echo $(pwd) | |
| ant pack | |
| username="$(grep '^SEAS login' README | sed 's/SEAS login://' | sed 's/ //')" | |
| rsync -av --progress submit-hw*.zip "${username}@eniac.seas.upenn.edu:~" | |
| ssh ${username}@eniac.seas.upenn.edu "turnin -c cis455 -p hw0 submit-hw0.zip; turnin -c cis455 -p hw0 -v" | |
| } |
| ;;; startup.el --- process Emacs shell arguments and build init screen | |
| ;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
| ;; 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | |
| ;; Maintainer: FSF | |
| ;; Keywords: internal | |
| ;; This file is part of GNU Emacs. |
| sudo add-apt-repository ppa:birdie-team/daily | |
| sudo apt-get update && sudo apt-get install birdie-granite | |
| sudo add-apt-repository ppa:gotwig/weekly | |
| sudo apt-get update | |
| sudo apt-get install gazette | |
| echo 'Add weather.yahoo.com id to org → pantheon → gazette' | |
| sudo apt-add-repository ppa:versable/elementary-update | |
| sudo apt-get update | |
| sudo apt-get install elementary-tweaks | |
| sudo add-apt-repository ppa:tombeckmann/geary |
| echo 'removing all emacs23+ packages' | |
| sudo apt-get purge emacs-snapshot-common emacs-snapshot-bin-common \ | |
| emacs-snapshot emacs-snapshot-el emacs-snapshot-gtk emacs23 \ | |
| emacs23-bin-common emacs23-common emacs23-el emacs23-nox emacs23-lucid \ | |
| echo 'adding repo and installing emacs 24' | |
| sudo add-apt-repository ppa:cassou/emacs | |
| sudo apt-get update | |
| sudo apt-get install emacs24 |
| #!/usr/bin/zsh | |
| # Script on how to compile geary on ubuntu 12.04 and elementary | |
| # git clone git://yorba.org/geary | |
| wget https://launchpad.net/~tombeckmann/+archive/geary/+files/geary_0.4.1-0~1137~ubuntu12.04.1.tar.gz | |
| mkdir geary-backport | |
| tar xvf !wget:$:t -C !!:$ | |
| cd !!:$ | |
| cd $(ls) |