Skip to content

Instantly share code, notes, and snippets.

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
@nvasilakis
nvasilakis / example1.vala
Created March 3, 2014 19:58
A first vala example
// 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
@nvasilakis
nvasilakis / lab2.md
Last active August 29, 2015 13:55
Web Servers and Concurrency
@nvasilakis
nvasilakis / lab1.md
Last active January 4, 2016 09:59
Let's see: Lab Session 1.

Lab Session 1

An introduction to our environment

Plan for today

  • 10' VM/Linux setup and issues

  • 30' Shell (bash, scripting, zsh, screen, environment)

@nvasilakis
nvasilakis / submit.sh
Created January 20, 2014 17:33
A script for UPenn students to submit home-works remotely.
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"
}
@nvasilakis
nvasilakis / menu
Created January 16, 2014 20:52
Fluxbox menu
# This is an automatically generated file.
# Please see <file:/usr/share/doc/menu/README> for information.
# to use your own menu, copy this to ~/.fluxbox/menu, then edit
# ~/.fluxbox/init and change the session.menuFile path to ~/.fluxbox/menu
[begin] (Fluxbox)
# Automatically generated file. Do not edit (see /usr/share/doc/menu/html/index.html)
@nvasilakis
nvasilakis / startup.el
Created January 6, 2014 16:27
Saving emacs startup file for future reference
;;; 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.
@nvasilakis
nvasilakis / elementary-post-install
Last active January 2, 2016 08:29
Post-install repos for elementary os
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
@nvasilakis
nvasilakis / emacs24
Last active January 2, 2016 08:29
Install emacs24 on a fresh debian/ubuntu/elementary install
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
@nvasilakis
nvasilakis / Geary-backport-install.sh
Last active January 1, 2016 01:09
Geary Installation
#!/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)