This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 8; | |
user hans; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 2048; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl http://npmjs.org/install.sh | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName www.yourhost.com | |
# !!! Be sure to point DocumentRoot to 'public'! | |
DocumentRoot /somewhere/public | |
<Directory /somewhere/public> | |
# This relaxes Apache security settings. | |
AllowOverride all | |
# MultiViews must be turned off. | |
Options -MultiViews | |
</Directory> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.navbar.navbar-fixed-top | |
.navbar-inner | |
.container | |
%a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"} | |
%span.icon-bar | |
%span.icon-bar | |
%span.icon-bar | |
%a.brand{:href => "#"} Project name | |
.nav-collapse | |
%ul.nav |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.navbar.navbar-fixed-top | |
.navbar-inner | |
.container-fluid | |
%a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"} | |
%span.icon-bar | |
%span.icon-bar | |
%span.icon-bar | |
%a.btn.btn-success.pull-left{:href => "/users/sign_in"} Login | |
%a.brand{:href => "/"} hfase.com | |
.nav-collapse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# Copyright (c) 2010-2011, Diaspora Inc. This file is | |
-# licensed under the Affero General Public License version 3 or later. See | |
-# the COPYRIGHT file. | |
!!! | |
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'} | |
%head | |
%meta{:charset => 'utf-8'} | |
%meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1'} | |
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html dir='ltr' lang='en'> | |
<head> | |
<meta charset='utf-8'> | |
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'> | |
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'> | |
<meta content='Diaspora*' name='description'> | |
<meta content='Diaspora, Inc.' name='author'> | |
<meta content='True' name='HandheldFriendly'> | |
<meta content='320' name='MobileOptimized'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
set -o verbose | |
cd /etc/init.d | |
sudo rm -rf ./diaspora* ## WARNING! I need to change this to an IF condition to back up any files already there.. | |
sudo wget https://raw.github.com/gist/2862098/diaspora | |
sudo chmod +x diaspora | |
sudo update-rc.d diaspora defaults | |
cd ~/ | |
curl https://raw.github.com/gist/2862098/newD.sh | sh | |
cd /etc/nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 8; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 2048; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |