This file contains hidden or 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
<VirtualHost *:80> | |
DocumentRoot "/var/www/html/website/run/frontend/web" | |
ServerName qt.website.com | |
ErrorLog "logs/website_qt-error.log" | |
CustomLog "logs/website_qt-access.log" common | |
<Directory "/var/www/html/website/run/frontend/web"> | |
# use mod_rewrite for pretty URL support | |
RewriteEngine on | |
# If a directory or a file exists, use the request directly | |
RewriteCond %{REQUEST_FILENAME} !-f |
This file contains hidden or 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 | |
# ----------------------------------------------------------------------------- | |
# Installing Remi Repository | |
# ----------------------------------------------------------------------------- | |
sudo yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
# ----------------------------------------------------------------------------- | |
# Import the RPM GPG keys for Repositories | |
# ----------------------------------------------------------------------------- |
This file contains hidden or 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/sh | |
## Upgrading MariaDB | |
## brew update | |
## brew upgrade mariadb | |
# 安装 Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
sudo chown -R $(whoami) /usr/local/share/man/man8 | |
brew install cmake |
This file contains hidden or 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 ldap | |
def check_credentials(username, password): | |
"""Verifies credentials for username and password. | |
Returns None on success or a string describing the error on failure | |
# Adapt to your needs | |
""" | |
LDAP_SERVER = 'ldap://xxx' | |
# fully qualified AD user name | |
LDAP_USERNAME = '%[email protected]' % username |