Skip to content

Instantly share code, notes, and snippets.

View martinsteel's full-sized avatar

Martin Steel martinsteel

View GitHub Profile

Keybase proof

I hereby claim:

  • I am martinsteel on github.
  • I am martinsteel (https://keybase.io/martinsteel) on keybase.
  • I have a public key whose fingerprint is 763C E65A 9A47 4A8E 35FF 2A7B C387 95FE D8CA B15D

To claim this, I am signing this object:

private static IKernel CreateKernel()
{
var kernel = new StandardKernel();
try
{
kernel.Bind<Func<IKernel>>().ToMethod(ctx => () => new Bootstrapper().Kernel);
kernel.Bind<IHttpModule>().To<HttpApplicationInitializationHttpModule>();
RegisterServices(kernel);
@martinsteel
martinsteel / crypt.c
Last active August 29, 2015 14:16
Cut down PHP bcrypt implementation
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2012 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
@martinsteel
martinsteel / archive-service-status.php
Created November 29, 2012 09:28
WordPress Service Status archive
<?php
get_header();
?>
<?php if (have_posts()) : ?>
<div id="Intro" class="curve">
<h1>Service Status</h1>
<p>How things are running at mediaburst <?php if ( is_day() ) : ?> for <?php get_the_date('jS M Y'); ?> <?php elseif ( is_month() ) : ?> for <?php echo get_the_date('F Y'); ?><?php elseif ( is_year() ) : ?> for <?php echo get_the_date('Y'); ?><?php endif; ?>.</p>
</div>
<div class="group">
<div class="column column-one" style="font-size: 1.2em">
@martinsteel
martinsteel / single-service-status.php
Created November 29, 2012 09:23
WordPress Service Status single
<?php
get_header();
?>
<div class="group" id="Intro">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1>Service Status - <?php the_date("jS M Y"); ?></h1>
<p>This update was written by <?php the_author_posts_link(); ?> at <?php echo get_the_date('g:ia'); ?></p>
</div>
<div class="group">
<div class="column column-one">
@martinsteel
martinsteel / clockwork-php-no-ssl.php
Created October 5, 2012 14:42
Disable SSL on Clockwork
<?php
$options = array( 'ssl' => false );
$clockwork = new Clockwork( $API_KEY, $options );
$message = array( 'to' => '441234567891', 'message' => 'This is a test!' );
$result = $clockwork->send( $message );
?>