by shigemk2

当面は技術的なことしか書かない

GitHubのユーザー規約を読んでみる

GitHubのユーザー規約はこちら。

GitHub Terms of Service - User Documentation

構成としては以下のようになっている。

  1. Account Terms(アカウントの資格)
  2. API Terms(APIについて)
  3. Payment, Refunds, Upgrading and Downgrading Terms(支払いなど)
  4. Cancellation and Termination(アカウントの取り消しと終了)
  5. Modifications to the Service and Prices(サービス/価格の修正)
  6. Copyright and Content Ownership(コピーライト)
  7. General Conditions(その他一般的なこと)

個人的に気になったこと。

You must be 13 years or older to use this Service.(Account Terms 1)

年齢制限があったのか。

Verbal, physical, written or other abuse (including threats of abuse or retribution) of any GitHub customer, employee, member, or officer will result in immediate account termination.(General Conditions 8)

他のユーザーに嫌がらせしたら「即」垢バンするとのこと。

with or without notice(2箇所)

API/価格/サービスの変更は予告なく行われる場合があること。まあそうだよね。

scala v2.12.0

github.com

A trait compiles directly to an interface with default methods. This improves binary compatibility and Java interoperability. Scala and Java 8 interop is also improved for functional code, as methods that take functions can easily be called in both directions using lambda syntax. The FunctionN classes in Scala's standard library are now Single Abstract Method (SAM) types, and all SAM types are treated uniformly -- from type checking through code generation. No class file is generated for a lambda; invokedynamic is used instead.

homebrew v1.1.0

Release 1.1.0 · Homebrew/brew · GitHub

brewをrootユーザーでは実行出来ないのがキモと思われ。

Breaking changes:

  • Disable SHA-1 checksum support in formulae
  • Disable running Homebrew as the root user
  • Bottles with or_later tags no longer use or_later in their filenames so the existing bottle can be reused

Changes:

  • Stop brew doctor complaining about Symantec Endpoint Protection libraries
  • Add support for migrating fully-scoped tap formulae names to other taps and print deprecation notices on migrated/renamed formulae
  • Print less warnings on brew install run and instead print them after failures. Allow running with outdated development tools (as long as they aren't too outdated)
  • brew displays message when auto-update has been running for 3 seconds without completion
  • Stop brew doctor complaining about SentinelOne libraries
  • When GitHub API scopes are missing output which ones are required

pycurl with json

stackoverflow.com

たぶんこういう感じの使い方。

#!/usr/bin/python
import os, sys, pycurl
model = """{
name: 'zxy',
targets: [ 'abc']
}"""
path = '/deployments/MyApp.ear'
c = pycurl.Curl()
c.setopt(pycurl.URL, 'https://abc.cde')
c.setopt(pycurl.HTTPHEADER, ['Accept:application/json'])
send = [("model", model),
        ('deployment', (pycurl.FORM_FILE, path)),]
c.setopt(pycurl.HTTPPOST, send)
#c.setopt(pycurl.VERBOSE, 1)
c.perform()
print c.getinfo(pycurl.RESPONSE_CODE)
c.close()