##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
upstream thin { | |
server 127.0.0.1:3000; | |
} | |
#server { | |
# listen 80; | |
# server_name example.com; | |
# rewrite ^(.*)$ http://www.example.com$1 permanent; | |
#} |
server { | |
listen 80; | |
server_name www.zf.local zf.local; | |
index /index.php; | |
charset utf-8; | |
root "/home/workspace/zf/public"; | |
access_log /var/log/nginx/zf/access.log; | |
error_log /var/log/nginx/zf/error.log; |
# Default setup is given for MySQL with ruby1.8. If you're running Redmine | |
# with MySQL and ruby1.9, replace the adapter name with `mysql2`. | |
# Examples for PostgreSQL and SQLite3 can be found at the end. | |
production: | |
adapter: mysql2 | |
database: redmine | |
host: localhost | |
username: redmine | |
password: ****** |
class Settings < Settingslogic | |
source "#{Rails.root}/config/application.yml" | |
if Rails.env == 'development' | |
namespace 'development-' + Socket.gethostname.gsub(/\W/, '-').gsub(/[-]{2,}/, '-') | |
else | |
namespace Rails.env | |
end | |
# load local settings |
#!/usr/bin/env python2 | |
# vim: set fileencoding=utf8 | |
import os | |
import sys | |
import requests | |
import urllib | |
import json | |
import re | |
import time |
##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# This script check a list of websites | |
# and sends mail when the HTTP status code is not 200 | |
# | |
# Used to check wheter all projects are up and running | |
# (not broken, say for example because a dependency library was removed) | |
# Author Ando Roots 2012 |
#!/bin/bash | |
# WebSocket shell, start & browse to http://<Host>:6655/ | |
# Requires bash 4.x, openssl. | |
# Author: rootshell@corelogics.de (which isn't me, apk) | |
coproc d { nc -l -p 6656 -q 0; } | |
nc -l -p 6655 -q 1 > /dev/null <<-ENDOFPAGE | |
HTTP/1.1 200 OK | |
<html><head><script language="javascript"> | |
var url = location.hostname + ':' + (parseInt(location.port) + 1); |