Skip to content

Instantly share code, notes, and snippets.

@kishba
kishba / haproxy.conf
Last active September 13, 2023 19:04
Sample HAProxy HTTPS configuration for Moodle and Ellucian Colleague web apps -- anonymized from Mid Michigan Community College
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
# Default SSL material locations
ca-base /etc/ssl/certs
@kishba
kishba / Modify Email settings limiting to instructor only email
Last active August 29, 2015 13:57
Bb Test Matrix Items: Send E-mail
You must be logged into a course shell as an instructor to perform this test.
1. Under Course Tools in the left nav, click `Send Email`
2. Click `All Student Users`
3. Something else?
@kishba
kishba / private.xml
Created October 16, 2013 14:32
Maps a few of the Fn keys on the Microsoft Sculpt Ergonomic Desktop to perform their media key equivalents. Install KeyRemap4MacBook, set your keyboard to the Fn mode and edit the "private.xml" as explained in https://pqrs.org/macosx/keyremap4macbook/xml.html.en
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>MICROSOFT</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MY_MICROSOFT_KEYBOARD</productname>
<productid>0x07a5</productid>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
# Development (RadiantCMS) virtual host configuration
# http://dev.mps.k12.mi.us
<VirtualHost *:80>
DocumentRoot /var/www/apps/mycms/public
ServerName dev.mps.k12.mi.us
ErrorLog logs/dev-error_log
CustomLog logs/dev-access_log common
# The staff directory is hosted outside of the content management system
#include <iostream>
#include <string>
using namespace std;
int main() {
string mystring;
int base_value, encrypted_value, key;
char c, encrypted_c;