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
# add this before all other rewrite rules in your .htaccess | |
# backup your Apache file(s) first to avoid breaking things | |
# BE SURE TO TEST AND RELOAD APACHE AFTER MAKING THIS EDIT | |
# allow Let's Encrypt to access it's challenge file without the rewrite rules screwing them up | |
RewriteEngine On | |
RewriteRule "^.well-known/acme-challenge" - [L] | |
# Now, run an error check and reload Apache | |
/usr/sbin/apachectl configtest && /etc/init.d/httpd reload |
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
# Whereever this line is defined (grep all Apache .conf files to make sure it's not defined in multiple places) | |
# use the following to disable SSL v2 and v3 | |
# This is a best practice as of Feb 2016, but this is subject to change over time, so don't take this as gospel | |
SSLProtocol All -SSLv2 -SSLv3 |
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
# Change to the root user | |
su root | |
# EPEL is used by Letsencrypt auto to install packages it needs. This doesn't install anything, it just means | |
# extra packages in this Linux repo are available for installation | |
yum install epel-release | |
# Ideally you'd already have, or else install, Python 2.7 to avoid certain Python related messages, but if you | |
# don't want to bother it will work with Python 2.6 | |
# See https://digitz.org/blog/lets-encrypt-ssl-centos-7-setup/ for more on Python 2.7 and CentOS |
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
# BE VERY CAREFUL IF YOU CHANGE YOUR Apache CONFIGURATION | |
# Backup your configuration before changing and run an error check before applying changes | |
# If you have 1 IP address for each SSL certificate then you probably don't need to do any of this | |
# If you have more than 1 site per IP address then this worked for me. | |
# It requires Apache with with SNI, which should already be part of Apache since it's been around for many years | |
# For more info see https://www.digicert.com/ssl-support/apache-multiple-ssl-certificates-using-sni.htm | |
# I changed to named Virtual Hosts https://httpd.apache.org/docs/2.2/en/vhosts/name-based.html , like this | |
vi /etc/httpd/conf/httpd.conf |
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
<?php | |
Braintree_Configuration::environment('sandbox'); | |
Braintree_Configuration::merchantId('YOURMERCHANTIDHERE'); | |
Braintree_Configuration::publicKey('YOURPUBLICKEYHERE'); | |
Braintree_Configuration::privateKey('YOURPRIVATEKEYHERE'); | |
$result = Braintree_Transaction::sale([ | |
'amount' => '150.00', | |
'paymentMethodNonce' => $_POST['nonce'] |
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
# saved this to ~/.config/upstart/elo-touch.conf | |
start on desktop-start | |
stop on desktop-end | |
script | |
xinput set-int-prop "Elo Serial TouchScreen" "Evdev Axis Calibration" 32 3928 300 155 3736 | |
xinput set-int-prop "Elo Serial TouchScreen" "Evdev Axes Swap" 8 0 | |
end script |