実行中のプロセスの優先度変更 webkaru.net プロセスの優先度を指定してプログラムを実行 webkaru.net -20が高い。19が低い。 ランレベルに応じての自動起動設定。 webkaru.net なお、ps lのNIでnice値は見れる。
GitHubのユーザー規約を読んでみる
GitHubのユーザー規約はこちら。
GitHub Terms of Service - User Documentation
構成としては以下のようになっている。
- Account Terms(アカウントの資格)
- API Terms(APIについて)
- Payment, Refunds, Upgrading and Downgrading Terms(支払いなど)
- Cancellation and Termination(アカウントの取り消しと終了)
- Modifications to the Service and Prices(サービス/価格の修正)
- Copyright and Content Ownership(コピーライト)
- 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/価格/サービスの変更は予告なく行われる場合があること。まあそうだよね。
仮面ライダーエグゼイド LVUR03 仮面ライダースナイプ シューティングゲーマー
- 出版社/メーカー: バンダイ
- 発売日: 2016/11/05
- メディア: おもちゃ&ホビー
- この商品を含むブログを見る
scala v2.12.0
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.
Transpose window Emacs
There are multiple solutions to transpose windows within a frame.
標準機能ではどうにもならないらしいの。
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
schedule/scheduleonce
なんかすっかり忘れていた。schedule/scheduleonce。akkaで定期実行するやつ。
Scheduler — Akka Documentation
system.scheduler().scheduleOnce(Duration.create(50, TimeUnit.MILLISECONDS), new Runnable() { @Override public void run() { testActor.tell(System.currentTimeMillis(), ActorRef.noSender()); } }, system.dispatcher());
reset adid
Google Settings→Ads→Reset advertising ID
unixtime変換(JST)
JSTが欲しかった。なお、CUIでやりたい気持ちはある
pycurl with json
たぶんこういう感じの使い方。
#!/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()
universe/mirror
import reflect.runtime.universe
とかを使うには、build.sbtに"org.scala-lang" % "scala-reflect" % scalaVersion.value
あたりを追加する必要があること。
Reflection - Environment, Universes, and Mirrors - Scala Documentation
omf install
oh-my-fishのプラグインのインストール。
aws-cli v1.11.13
botocoreをアップデート
docker hello world
docker run hello-world
about FHS
Unixのディレクトリ構成やファイル構成をまとめたもの。
The filesystem standard has been designed to be used by Unix distribution developers, package developers, and system implementors.