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
import cv2 | |
from scipy.cluster import vq | |
print "Enter the input file name" | |
input_filename = raw_input() | |
print "Enter the output file name" | |
output_filename = raw_input() | |
# Reading the image in BGR format. | |
img = cv2.imread(input_filename) | |
#Reshaping the image matrix | |
z = img.reshape((-1,3)) |
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
## | |
# File: | |
# drupal | |
# Description: | |
# This file is meant to offer a very detailed set of instructions and best | |
# practices for deploying a Drupal website with Nginx. This file should be | |
# almost drop-in if the user is able to understand the three lines that | |
# need to be changed. | |
## |
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
#For qa the image name is qa_lockhead | |
#For staging the image name is staging_lockhead | |
FROM <image_name>:latest | |
MAINTAINER [email protected] | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
EXPOSE 22 | |
EXPOSE 80 |
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
FROM ubuntu | |
MAINTAINER Thatcher R. Peskens "[email protected]" | |
# make sure the package repository is up to date | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
RUN echo 'root:entrayn123' |chpasswd |
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
echo "......running script......" | |
sudo /usr/sbin/sshd -D | |
sudo service php5-fpm restart | |
sudo service nginx restart | |
sudo service mysql restart | |
sudo /usr/bin/mysqld_safe |
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 { | |
# This is the URI of your website. You can specify multiple sites to be | |
# served by the same Drupal installation. | |
server_name zabbix.dev; | |
# This is the root of the Drupal directory. | |
# Note that Drupal 6, Drupal 7, and Pressflow are interchangeable | |
root /usr/share/zabbix; | |
index index.php; |
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 { | |
server_name popioka.idelivr.info; | |
access_log off; | |
location /static_local/ { | |
alias /home/ubuntu/bookmyspot/v2/static_local/; | |
} | |
location /static/ { |
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 kibanadev.idelivr.info; | |
auth_basic "Restricted Access"; | |
auth_basic_user_file /etc/nginx/htpasswd.users; | |
location / { | |
proxy_pass http://localhost:5601; |
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
DJANGO_LOGLEVEL (DEBUG|INFO|ERROR|WARNING|CRITICAL) | |
DJANGO_LOG %{DJANGO_LOGLEVEL:log_level}\s+%{TIMESTAMP_ISO8601:log_timestamp}\s+%{TZ:log_tz}\s+%{NOTSPACE:logger}\s+%{WORD:module}\s+%{POSINT:proc_id}\s+%{GREEDYDATA:content} |
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
input { | |
file { | |
path => "/home/ubuntu/idelivr-backend/*.log" | |
start_position => beginning | |
codec => multiline { | |
pattern => "^%{TIMESTAMP_ISO8601} " | |
negate => true | |
what => previous | |
} | |
} |
OlderNewer