Skip to content

Instantly share code, notes, and snippets.

View leomeih's full-sized avatar
🏠
Working

Leo Mei leomeih

🏠
Working
  • Singapore
  • 08:11 (UTC +08:00)
View GitHub Profile
@leomeih
leomeih / gist:7716565
Created November 30, 2013 08:06
Nginx separate module locations
echo-nginx-module https://github.com/agentzh/echo-nginx-module
headers-more-nginx-module https://github.com/agentzh/headers-more-nginx-module
nginx-http-concat https://github.com/alibaba/nginx-http-concat
ngx_http_substitutions_filter_module https://github.com/yaoweibin/ngx_http_substitutions_filter_module
ngx_cache_purge https://github.com/FRiCKLE/ngx_cache_purge
ngx_devel_kit https://github.com/simpl/ngx_devel_kit
nginx-http-user-agent https://github.com/alibaba/nginx-http-user-agent
nginx-http-footer-filter https://github.com/alibaba/nginx-http-footer-filter
nginx-backtrace https://github.com/alibaba/nginx-backtrace
ngx_http_image_water_filiter_module https://github.com/wangmh/ngx_http_image_water_filiter_module
@leomeih
leomeih / README.md
Created January 17, 2014 02:01 — forked from kordless/README.md

License

All code providing basic infrastructure services will be Open Source. Closed source code may be used to access APIs or used in VMs started with the exchange. However, no closed source code which provides service to the infrastructure or network will be promoted by the network. Infrastructure is meant to be open and trustworthy.

Concept

The underlying concept is a cryptcoin operated 'compute exchange' powered by multiple OpenStack cluster deployments. These deployments are run by 'providers' and managed by 'compute pools'. A provider can participate in multiple pools by running multiple virtual appliance 'controllers'.

Various compute pools can provide levels of reliability, diverse instance types, custom OS images, unique branding, community reach and more. Diversification is encouraged and welcome.

It is the intent of this project to create a fully distributed compute exchange which greatly minimizes the central control authority for server starts and access.

#!/bin/bash
# source: http://stackoverflow.com/questions/4023830/bash-how-compare-two-strings-in-version-format
vercomp () {
if [[ $1 == $2 ]]
then
return 0
fi
local IFS=.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@leomeih
leomeih / syncthing
Created October 17, 2015 18:14 — forked from arudmin/syncthing
/etc/init.d/syncthing script for Raspberry Pi (or any Ubuntu/Debian)
#!/bin/sh
### BEGIN INIT INFO
# Provides: syncthing
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of syncthing.