- Mesos version v0.28.0 or greater.
- The connection between Mesos and Marathon has to be authenticated.
This file contains 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
--[[ | |
Inspired by: https://github.com/mozilla-services/lua_sandbox/pull/22 | |
*Haproxy log-format Directive* | |
log-format %ci:%cp\ [%t]\ %ft\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %ST\ %B\ %CC\ %CS\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq\ %hr\ %hs\ %{+Q}r | |
*Example Config* | |
[haproxy_udp_input] | |
type = "UdpInput" |
This file contains 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
This is a resize of the actual EBS volume as opposed to adding additional disks using LVM | |
1. Follow the steps here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/storage_expand_partition.html | |
2. Use the instructions for gdisk further down the page to set the new partition table, not gparted or fdisk. | |
3. Reboot the instance once the partition table is written. | |
4. On the instance, execute: | |
sudo pvresize /dev/xvda2 (or whatever the device name is) | |
sudo pvdisplay | |
This file contains 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
local dt = require "date_time" | |
local ip = require "ip_address" | |
local l = require 'lpeg' | |
local syslog = require "syslog" | |
l.locale(l) | |
local msg = { | |
Timestamp = nil, | |
Hostname = nil, | |
Payload = nil, |
This file contains 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
check process zmq with pidfile '/tmp/zmq.pid' | |
start program '/bin/bash -c "/usr/bin/php /var/www/sm/public/index.php zmq daemon execute & echo $! > /tmp/zmq.pid"' | |
stop program '/usr/bin/killall --full "zmq daemon execute"' |
This file contains 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/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :2016-06-18T02:45-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version1 :10.0.0.CR3 | |
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
#tested-version2 :10.0.0.Final |
This file contains 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/bash | |
url='rtsp://10.0.1.10:554/video-stream' | |
avconv -i $url -r 1 -vsync 1 -qscale 1 -f image2 images%09d.jpg |
This file contains 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
server { | |
listen 80; | |
server_name dl.cuoluo.me; | |
location / { | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://dl.dropbox.com/u/1812807/dl.cuoluo.me/index.html; | |
if ($request_method = POST) { |
layout | title | date | comments | categories |
---|---|---|---|---|
post |
Installing Octopress |
2011-08-18 19:56 |
true |
linux octopress ruby rvm jekyll rubygems |
I (rather obviously) recently found myself attempting to install Octopress. Sure, it has great documentation, but some areas were lacking -- specifically, initial setup. As someone who has not worked with Ruby before other than a rather limited Windows install for a jekyll project, I had virtually no experience installing Ruby, using RVM, or even playing with RubyGems.