We’re happy to announce Magenta, a project from the Google Brain team that asks: Can we use machine learning to create compelling art and music? If so, how? If not, why not?
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 | |
# OpenVPN configuration Directory | |
OPENVPN_CFG_DIR=/etc/openvpn | |
# Directory where EasyRSA outputs the client keys and certificates | |
KEY_DIR=/etc/openvpn/easy-rsa/keys | |
# Where this script should create the OpenVPN client config files | |
OUTPUT_DIR=/etc/openvpn/client-config |
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
# Kernel sysctl configuration file for Red Hat Linux | |
# | |
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
# sysctl.conf(5) for more details. | |
# Turn on execshield | |
# 0 completely disables ExecShield and Address Space Layout Randomization | |
# 1 enables them ONLY if the application bits for these protections are set to “enable” | |
# 2 enables them by default, except if the application bits are set to “disable” | |
# 3 enables them always, whatever the application bits |
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
# | |
# A CORS (Cross-Origin Resouce Sharing) config for nginx | |
# | |
# == Purpose | |
# | |
# This nginx configuration enables CORS requests in the following way: | |
# - enables CORS just for origins on a whitelist specified by a regular expression | |
# - CORS preflight request (OPTIONS) are responded immediately | |
# - Access-Control-Allow-Credentials=true for GET and POST requests |
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
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
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
# The settings provided below are ideal for a 4GB-8GB RAM server. | |
# You can adjust values accordingly for higher or lower spec systems, but generally, | |
# it's an almost "one size, fits all" setup. | |
# Use DB diagnostics tools like: | |
# https://launchpad.net/mysql-tuning-primer or http://blog.mysqltuner.com/download/ | |
# to get more insight on your MySQL DB's resource usage and more... | |
# Special thanks to Yves Trudeau (Percona) for his valuable help on compiling this setup. | |
[mysqld] | |
default_storage_engine=InnoDB # Options are MyISAM & InnoDB. Prefer the latter |
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
# /etc/security/limits.conf | |
* soft nofile 999999 | |
* hard nofile 999999 | |
root soft nofile 999999 | |
root hard nofile 999999 | |
=========================================================== | |
# /etc/sysctl.conf | |
# sysctl for maximum tuning |
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
################################################################################# | |
### The perfect Varnish configuration for Joomla (& other CMS based) websites ### | |
################################################################################# | |
# USE: Place the contents of this configuration inside the main | |
# Varnish configuration file, located in: /etc/varnish/default.vcl (root server access required - obviously) | |
# IMPORTANT: The following setup assumes a 2 minute cache time. You can safely increase | |
# this to 5 mins for less busier sites or drop it to 1 min or even 30s for high traffic sites. |