I hereby claim:
- I am mkorkmaz on github.
- I am mkorkmaz (https://keybase.io/mkorkmaz) on keybase.
- I have a public key whose fingerprint is ACD4 DCE4 7A8C FFD6 E711 FFAD 24D6 90DF 8DB2 C093
To claim this, I am signing this object:
<?php | |
class DetermineDSNForPDO{ | |
public $dsn = ''; | |
public $system_failover = FALSE; |
#!/usr/bin/env python3.5 | |
# -*- coding: utf-8 -*- | |
# author: [email protected] | |
# created: 2016-03-11 | |
# A simple class for validating, variable type fixing and setting defaults | |
# for a model definition encoded as a dict | |
class ModelUtils: |
/* | |
* ModelUtils: A simple PHP class for validating, variable type fixing and setting defaults for a model definition encoded as a array | |
* | |
* @ver: 0.0.2 | |
* @author: [email protected] | |
* created at: 2016-03-13 | |
* updated at: 2016-03-15 | |
*/ | |
class ModelUtils { |
# set validate_doc_update value as: | |
function(newDoc, oldDoc, userCtx, secObj) { | |
var ddoc = this; | |
secObj.admins = secObj.admins || {}; | |
secObj.admins.names = secObj.admins.names || []; | |
secObj.admins.roles = secObj.admins.roles || []; | |
var IS_DB_ADMIN = false; | |
if(~ userCtx.roles.indexOf('_admin')){ | |
IS_DB_ADMIN = true; |
language: php | |
sudo: false | |
jdk: | |
- oraclejdk8 | |
addons: | |
apt: | |
packages: | |
- oracle-java8-installer | |
php: | |
- 7.0 |
<?php | |
if (empty($_SERVER["HTTP_CF_VISITOR"]) || $_SERVER["HTTP_CF_VISITOR"] != '{"scheme":"https"}') { | |
$redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | |
header('HTTP/1.1 301 Moved Permanently'); | |
header('Location: ' . $redirect); | |
exit(); | |
} |
I hereby claim:
To claim this, I am signing this object:
# create ~/.pypirc if does not exist | |
touch ~/.pypirc | |
echo "[distutils]" >> ~/.pypirc | |
echo "index-servers=pypi" >> ~/.pypirc | |
echo "" >> ~/.pypirc | |
echo "[pypi]" >> ~/.pypirc | |
echo "repository: https://pypi.python.org/pypi" >> ~/.pypirc | |
echo "username = pypi_username" >> ~/.pypirc | |
echo "password = pypi_password" >> ~/.pypirc |
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} > 20170523 | |
RewriteRule ^$ /destination/url.html [R=301,L] |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.1 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- composer | |
script: |