This file contains 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
Getting both libsodium and apcu working in travis was a pain in the buttucks for me. This is what finally worked: | |
----------------------------.travis.yml-------------------------------------------------------------------------- | |
language: php | |
php: | |
- '7.1' | |
- '7.2' | |
env: | |
- PHPUNIT_VERSION="^7"; PSRSIMPLE_VERSION="^1.0.1"; AWSIMPLE_VERSION="^1.0.0" | |
before_install: |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- PSR-2 but allow closing tags and with some Doc Comment stuff added --> | |
<ruleset name="AWonderPHP Standard 20180315"> | |
<![CDATA[ | |
These are the rules that I am trying to live by for all my php projects | |
going forward. | |
Nutshell - PSR-2 but allowing the closing ?> in pure PHP as I have a very | |
stubborn fondness for the closing ?> tag and it mentally bothers me when it | |
is not there. Rational? No, I have no problem with EOF being the closing |
This file contains 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 | |
/* | |
+-----------------------------------------------------------------------+ | |
| | | |
| Copyright (c) 2012-2018 Alice Wonder Miscreations | | |
| May be used under terms of MIT license | | |
| | | |
+-----------------------------------------------------------------------+ | |
| Purpose: HTML5 as XML page generation | |
This file contains 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
private function fixArticleLandmarks() { | |
$articlelist = $this->xmlBody->getElementsByTagName('article'); | |
$nn = $articlelist->length; | |
if($nn == 0) { | |
return; | |
} | |
$x = new DOMXPath($this->dom); | |
for($ii = 0; $ii < $nn; $ii++) { | |
$arnode = $articlelist->item($ii); | |
$nodelist = $arnode->getElementsByTagName('aside'); |
This file contains 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
%define gitdate 20015.12.20 | |
Name: secp256k1 | |
Version: 0.0.%{gitdate} | |
Release: 1%{?dist} | |
Summary: Optimized C library for EC operations on curve secp256k1 | |
Group: System Environment/Libraries | |
License: MIT | |
URL: https://github.com/bitcoin/secp256k1 |
This file contains 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
%define gitdate 2015.12.21 | |
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} | |
Name: php-secp256k1 | |
Version: 0.0.%{gitdate} | |
Release: 1%{?dist} | |
Summary: PHP bindings for bitcoin/secp256k1 | |
Group: Development/Languages |
This file contains 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
# Builds in mock in CentOS 7 | |
# dev package conflicts with openssl-dev - intentional | |
# A system should not have both dev packages installed together | |
# man3 pages in own sub-package | |
# dev package usually only installed by build system. Keeping | |
# man pages separate avoids possible name conflict with man | |
# pages from other dev packages, man pages not needed in build | |
# system | |
# openssl binary renamed to libressl | |
# allows parallel install with vendor openssl without weird |
This file contains 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 | |
//needs more debug and error handle and stuff | |
//called by rtaCheckHeader() | |
function rtaCheckMeta($dom) { | |
$headList = $dom->getElementsByTagName('head'); | |
if($headList->length > 0) { | |
$head = $headList->item(0); | |
$metaList = $head->getElementsByTagName('meta'); |
This file contains 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 | |
/* make this the index page served at *.whatever.tld | |
* so it will be served with olivia.whatever.tld and fiona.whatever.tld etc. | |
* | |
* | |
* manually maintained list or you could do a database | |
* array keys (Mistress Names) must be lower case, php array keys | |
* are case sensitive. | |
* | |
* I *think* every active Mistress I follow is here. |
NewerOlder