Reference:
sudo fdisk -l
input { | |
tcp { | |
type => "iis" | |
port => 5141 | |
format => json | |
#Disable timeouts as logstash may drop events when timing out | |
data_timeout => -1 | |
} | |
tcp { |
http://www.gistboxapp.com/ |
user:stevehenderson |
from __future__ import absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement | |
import urllib2 | |
from bs4 import BeautifulSoup | |
import urlparse | |
import shutil | |
import re, os | |
base_url = "http://10.5.5.9:8080/videos/DCIM/XXXGOPRO/" #Where XXX, change it by the directory you want (for instance 100GOPRO) | |
content = urllib2.urlopen(base_url).read() |
package main | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
type Message struct { |
# | |
# Example from code built on the Flask web framework (and Werkzeug) | |
# Accepts uploading a photo file in the 'photo' form member, then | |
# copies it into a memory byte array and converts it to a numpy array | |
# which in turn can be decoded by OpenCV. | |
# | |
# Beware that this increases the memory pressure and you should | |
# configure a max request size before doing so. | |
# | |
# It saves a round-trip to a temporary file, though. |
# Bro-IDS Logstash parser | |
# Parts of this taken from http://www.appliednsm.com/wp-content/uploads/logstash-SObro22-parse.conf_.txt | |
#Logs being parsed: | |
#app_stats.log | |
#conn.log | |
#dns.log | |
#dpd.log | |
#files.log | |
#http.log |
As a newbie, I recently went through the process of migrating my Django application that was developed and tested on a Windows environment onto AWS (AMI Linux) to host it using Apache and mod_wsgi. The source code for the application was on GitHub. | |
My sincere thanks to the people who have contributed the References that I've listed in my notes below. They were immensely helpful for me to get through this process. | |
I'm posting my notes compiling all the steps involved, in case it helps others. | |
This is NOT production level hosting. | |
I Creating AWS account and instances | |
===================================== | |
Reference : http://docs.aws.amazon.com/gettingstarted/latest/wah-linux/web-app-hosting-intro.html |
# Copyright 2014 Google Inc. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
Reference:
sudo fdisk -l