Skip to content

Instantly share code, notes, and snippets.

View wnda's full-sized avatar

A. M. Douglas wnda

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wnda on github.
  • I am wanda (https://keybase.io/wanda) on keybase.
  • I have a public key whose fingerprint is E6F0 746C 13A0 7E4A 8723 13BC 4115 733E 80FF 5F76

To claim this, I am signing this object:

<style id="jsbin-css">
html,body {
height: 100%;
}
body {
background: #f6f6f6;
margin: 0 0 0;
padding: 0;
font-family: Helvetica, Arial, sans-serif;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
html,body {
height: 100%;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
html,body {
height: 100%;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" type="text/css" media="screen" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/>
<style id="jsbin-css">
@font-face{font-family:"xfont";src:url(data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTVOMCkQAAbeQAAAAHEdERUYD7wIeAAEjSAAAACxHUE9TBgbLdQABLDQAAItaR1NVQmd34PwAASN0AAAIwE9TLzI3yDkeAAABeAAAAGBjbWFwv1g5cAAACEgAAAOeZ2FzcP//AAMAASNAAAAACGdseWb8hiA/AAAPMAAApAxoZWFk/ATPrQAAAPwAAAA2aGhlYQnHBuUAAAE0AAAAJGhtdHiWFlisAAAB2AAABm5sb2NhqcPSiAAAC+gAAANIbWF4cAIhAPIAAAFYAAAAIG5hbWVC5L2kAACzPAAAZJVwb3N00NOzvAABF9QAAAtpAAEAAAABAAD5vIIjXw889QALA+gAAAAAy39GCwAAAADLf0YL/87/LgYYA4QAAQAIAAIAAAAAAAAAAQAAA4T/LgBaBlT/zv/OBhgAAQAAAAAAAAAAAAAAAAAAAZQAAQAAAaMA7wA8AAAAAAACAAAAAQABAAAAQAAAAAAAAAADAlEBkAAFAAQCvAKKAAAAjAK8AooAAAHdADIA+gAAAgAFAwMAAAIABIAAAK9AACBqAAAAAAAAAABMTAAAACAADfsEAxb/LgDIA4QA0iAAAAEAAAAAAfQCvAAAACAAAwKUAFAAAAAAAU0AAAAAAAABBAAAAZAAeAIcAFACigAeApQAKAOsACgC+ABQASwAUAHCAFABwgBQAk4AUAJsADwB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" type="text/css" href="http://dl.dropbox.com/u/32029178/logo.css" />
<link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/>
</head>
<body>
<div class="square">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" type="text/css" href="http://dl.dropbox.com/u/32029178/logo.css" />
<link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/>
</head>
<body>
<div class="square">
OS: Ubuntu 14.04 LTS, Apache 2.4.7, OpenSSL 1.0.1f
SSL Labs: A+ (RSA2048, SHA256 certificate)
Certificate: 100%
Protocol Support: 95%
Key Exchange: 90%
Cipher Strength: 90%
#### In the SSL.CONF file
SSLCipherSuite AES256+EECDH:AES256+EDH:AES128+EECDH:AES128+EDH
@wnda
wnda / .htaccess
Last active August 29, 2015 14:23 — forked from darcyliu/.htaccess
# BEGIN GZIP
# http://httpd.apache.org/docs/2.2/mod/mod_deflate.html
<IfModule mod_deflate.c>
# Enabling Compression
SetOutputFilter DEFLATE
# Insert filters
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
@wnda
wnda / mail-handler-attachment.php
Created July 8, 2015 02:59
A PHP script that can send a POSTed form as an email, with an attachment
<?php
if(isset($_POST['submit']))
{
$to = 'info@hil.org.uk';
$namefrom = strip_tags($_POST['name']);
$emailfrom = strip_tags($_POST['email']);
$enquirytype = strip_tags($_POST['enquirytype']);
$textarea = strip_tags($_POST['textarea']);
$message = strip_tags($_POST['message']);
$attachment = chunk_split(base64_encode(file_get_contents($_FILES['attachment']['tmp_name'])));