- 2 GB of RAM
- 2 GB of swap
- 2 processor cores
With 2 GB of memory and dual cores, you can run two instances of the thin server (NUM_WEBS=2
), and easily host anything but the largest of forums.
-- This Source Code Form is subject to the terms of the Mozilla Public | |
-- License, v. 2.0. If a copy of the MPL was not distributed with this | |
-- file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
-- Original grok filters | |
-- POSINT \b(?:[0-9]+)\b | |
-- GREEDYDATA .* | |
-- HOUR (?:2[0123]|[01][0-9]) | |
-- MINUTE (?:[0-5][0-9]) | |
-- SECOND (?:(?:[0-5][0-9]|60)(?:[.,][0-9]+)?) |
#!/usr/bin/python | |
import socket | |
import time | |
FACILITY = { | |
'kern': 0, 'user': 1, 'mail': 2, 'daemon': 3, | |
'auth': 4, 'syslog': 5, 'lpr': 6, 'news': 7, | |
'uucp': 8, 'cron': 9, 'authpriv': 10, 'ftp': 11, | |
'local0': 16, 'local1': 17, 'local2': 18, 'local3': 19, |
#create & deploy lamp droplet | |
#login via ssh as root | |
#initial setup (ref: http://library.linode.com/getting-started#sph_logging-in-for-the-first-time) | |
# update /etc/hosts (to "thalassophobia.surrealroad.com") | |
nano /etc/hosts | |
# |
diff --git a/Makefile b/Makefile | |
index 0496238..18c68b2 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -64,7 +64,7 @@ build/go: | |
$(GOBIN): build/go | |
cd build/go/src && \ | |
- PATH="$(BIN):$(HERE)/pythonVE/bin:$(PATH)" ./all.bash | |
+ GO_EXTLINK_ENABLED=0 PATH="$(BIN):$(HERE)/pythonVE/bin:$(PATH)" ./all.bash |
import time | |
def check_file(filename): | |
try: | |
with open(filename): pass | |
return True | |
except IOError: | |
return False | |
def monitor_file(): |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb | |
sudo dpkg -i elasticsearch-0.20.6.deb |
#!/bin/bash | |
# node.js using PPA (for statsd) | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
# Install git to get statsd | |
sudo apt-get install git |
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
sudo apt-get update | |
sudo apt-get upgrade | |
""" | |
Simple stupid utility to create RSA or DSA key keys | |
Just add the JSCH library to your classpath and things ought to work. | |
(JY25)~/Downloads > export CLASSPATH=./jsch-0.1.42.jar | |
(JY25)~/Downloads > jython | |
*sys-package-mgr*: processing new jar, '/Users/victorng/Downloads/jsch-0.1.42.jar' | |
Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) | |
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_29 |