LDAP - Object Classes and Attributes
av_timer2018年08月14日 star 后端
Name Alias objectClass Notes Schema
c countryName country 2 character country code defined in ISO 3166 core.schema
cn commonName person
organizationalPerson
organizationalRole
groupOfNames
applicationProcess
applicationEntity
posixAccount
device
core.schema
dc domainComponent dcObject any part of a domain name e.g. domain.com, domain or com core.schema
- facsimileTelephoneNumber residentialPerson
organizationalRole
organizationalPerson
core.schema
co friendlyCountryName friendlyCountry
full name of country cosine.schema
gn givenName inetOrgPerson First or given name core.schema
homePhone homeTelephoneNumber inetOrgPerson cosine.schema
- jpegPhoto inetOrgPerson jpg format photo inetorgperson.schema
l localityName locality
organizationalPerson
core.schema
mail rfc822Mailbox inetOrgPerson email address e.g. joe@smokeyjoe.com core.schema
mobile mobileTelephoneNumber inetOrgPerson mobile or cellular phone number cosine.schema
o organizationName organization Organization name or even organisational name core.schema
ou organisationalUnitName organizationUnit Usually department or any sub entity of larger entity core.schema
- owner groupOfNames
device
groupOfUniqueNames
core.schema
pager pagerTelephoneNumber inetOrgPerson cosine.schema
- postalAddress organizationalPerson core.schema
postalCode postalCode organizationalPerson Post Code or ZIP core.schema
sn surname person surname or family name core.schema
st stateOrProvinceName organizationalPerson core.schema
street streetAddress organizationalPerson core.schema
- telephoneNumber organizationalPerson core.schema
userPassword - organization
organizationalUnit
person
dmd
simpleSecurityObject
domain
posixAccount
User password for some form of access control core.schema
uid userid account
inetOrgPerson
posixAccount
various - mostly username or other unique value core.schema

http://www.zytrax.com/books/ldap/ape/

此内容被密码保护
av_timer2018年08月09日 star 创意

请输入密码访问

反调试
av_timer2018年08月02日 star JavaScript
var check = (function () {
    var callbacks = [], timeLimit = 50, open = false;
    setInterval(loop, 1);
    return {
        addListener: function (fn) {
            callbacks.push(fn);
        },
        cancleListenr: function (fn) {
            callbacks = callbacks.filter(function (v) {
                return v !== fn;
            });
        }
    }
    function loop() {
        var startTime = new Date();
        debugger;
        if (new Date() - startTime > timeLimit) {
            if (!open) {
                callbacks.forEach(function (fn) {
                    fn.call(null);
                });
            }
            open = true;
        window.stop();
            alert('没事别老研究人家接口了,好好做站去吧');
        } else {
            open = false;
        }
    }
})();

check.addListener(function () {
    window.location.reload();
});
国内网段
av_timer2018年07月22日 star 创意
curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > /etc/chinadns_chnroute.txt 
mysql in k8s
av_timer2018年07月16日 star Kubernetes

[ERROR] --initialize specified but the data directory has files in it. Aborting.

  1. 在启动的时候删除文件

    image: mysql:8.0.11
    imagePullPolicy: IfNotPresent
    lifecycle:
    postStart:
      exec:
        command: ["sh", "-c", "rm -rf /var/lib/mysql/lost+found"]
    args:
    - --default-authentication-plugin=mysql_native_password
  2. 加上--ignore-db-dir参数(注意5.7.16以上版本失效)

    args:
    - --ignore-db-dir=lost+found

https://github.com/docker-library/mysql/issues/69
https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_ignore-db-dir