スマートフォンのセキュリティについて
ma.la
#!/bin/bash | |
# | |
# Init file for daemonized Skype service | |
# | |
### BEGIN INIT INFO | |
# Provides: skype | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 3 4 5 | |
# Default-Stop: 0 1 2 6 |
urlencode() { | |
# urlencode <string> | |
old_lc_collate=$LC_COLLATE | |
LC_COLLATE=C | |
local length="${#1}" | |
for (( i = 0; i < length; i++ )); do | |
local c="${1:$i:1}" | |
case $c in |
スマートフォンのセキュリティについて
ma.la
2017-04-03
@voluntas
1.0.6
2017 年 4 月 1 日に行われた Elixir Conf Japan 2017 の発表者用のメモです。
Mastodon が他のインスタンスと情報交換をする OStatus API の使い方。使ってるだけのユーザは知る必要がない裏側の話。
Mastodon インスタンスに対して、RFC6415 が規定する /.well-known/host-meta
というパスを要求すると以下の XML が返ってくる.
<?xml version="1.0"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
<Link rel="lrdd" type="application/xrd+xml" template="https://[MASTODON_HOST]/.well-known/webfinger?resource={uri}"/>
</XRD>
any
: magic, ill-behaved type that acts like a combination of never
(the proper [bottom type]) and unknown
(the proper [top type])
never
is assignable to any
, and any
is assignable to anything at all.any & AnyTypeExpression = any
, any | AnyTypeExpression = any
unknown
: proper, well-behaved [top type]
unknown
. unknown
is only assignable to itself (unknown
) and any
.unknown & AnyTypeExpression = AnyTypeExpression
, unknown | AnyTypeExpression = unknown
any
whenever possible. Anywhere in well-typed code you're tempted to use any
, you probably want unknown
.name: Security audit | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
paths: | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
jobs: | |
security_audit: |
#!/bin/sh | |
echo -e "貴方は領主様から通常の講習を受けたはずですわ。 | |
これは通常、以下の3点に要約されますの: | |
#1) 市民の皆様のプライバシーを尊重すること。 | |
#2) タイプする前に考えること。 | |
#3) そしてノブレス・オブリージュを肝に銘じておくことですわ。 | |
" | |
exec sudo "${@}" |