Open ssl.conf in a text editor.
Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
| # ___ ___ __ __ | |
| # / | __ ______/ (_) /_____/ / | |
| # / /| |/ / / / __ / / __/ __ / | |
| # / ___ / /_/ / /_/ / / /_/ /_/ / | |
| # /_/ |_\__,_/\__,_/_/\__/\__,_/ | |
| # | |
| # Linux Audit Daemon - Best Practice Configuration | |
| # /etc/audit/audit.rules | |
| # | |
| # Compiled by Florian Roth |
| Enhanced NGINX logstash parser: | |
| NGINX log format: | |
| log_format enhanced '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent $request_length "$http_referer" "$http_user_agent" $request_time $upstream_response_time'; | |
| access_log /var/log/nginx/access.log enhanced; | |
| error_log /var/log/nginx/error.log; | |
| logstash pattern (/opt/logstash/pattern/nginx): |
| This page updated : 2016-12-10 21:40 | |
| Google Chrome Portable | |
| reference: | |
| Download Google Chrome Portable | |
| http://portableapps.com/apps/internet/google_chrome_portable | |
| Google Chrome (for Windows) |
| # | |
| # INPUT - Logstash listens on port 8514 for these logs. | |
| # | |
| input { | |
| udp { | |
| port => "8514" | |
| type => "syslog-cisco" | |
| } | |
HaCi http://haci.larsux.de/ - 2015-03
GestioIP https://www.gestioip.net/ - 2016-02
There's so many way to send logs to an elk... logspout, filebeat, journalbeat, etc.
But docker has a gelf log driver and logstash a gelf input. So here we are.
Here is a docker-compose to test a full elk with a container sending logs via gelf.
| #!/bin/bash | |
| if [ $# -lt 2 ]; then | |
| echo "usage:$0 dev output_dir [iodepth]" | |
| echo "example 1: Testing the whole block device. Attention: That will destory the filesystem on the target block device" | |
| echo "./run_fio.sh /dev/sdb fio_test" | |
| echo "" | |
| echo "example 2: Testing a file, but not destory filesystem. Suppose the target device mount on /data" | |
| echo "fallocate -l 1G /data/test.dat" | |
| echo "./run_fio.sh /data/test.dat fio_test" |
Anaconda is an excellent, simple way to get Python up and running on your computer. But, it includes a lot of packages you'll never use but consume gigs and gigs of hard drive space. Instead, you can just install miniconda and then choose the individual packages you need. The steps below explain how to do this to set up a Python environment for geospatial data science. These steps are Windows-specific, but the same process works on Mac or Linux (just don't download the wheels from Gohlke - conda/pip install them directly). If you're having trouble, here are more detailed instructions on getting geopandas and geospatial Python up and running.
C:\Anaconda and set it as the system's default Python| # this is an alternate compact function implementation which also removes keys with empty string values | |
| # writing the tests for this is left as an excercise to the reader :D | |
| def compact(h) | |
| h.inject({}) do |result, (k, v)| | |
| if v.is_a?(Hash) | |
| result[k] = compact(v) | |
| elsif v.is_a?(String) | |
| result[k] = v unless v.empty? | |
| elsif !v.nil? |