Skip to content

Instantly share code, notes, and snippets.

@mala
mala / cocoa-5815.md
Last active April 7, 2022 11:02
接触確認アプリCOCOAについて通知と記録を混同した説明を行っているのではないかと問い合わせた記録
  • この後、回答はなかった。
  • 2021年8月31日時点でも「本アプリを端末(Android、iOS)に設定した人どうしの接触(1m以内、15分以上)を記録します。」という説明が行われている。

他国の事例

Date: 2020年8月15日(土) 15:49
@voluntas
voluntas / sysctl.conf
Created October 14, 2017 13:07 — forked from techgaun/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
@mala
mala / a.md
Last active June 30, 2020 15:13
Chrome ExtensionのLive HTTP Headersの調査(CoolBar.Pro導入 Extensionが何を行うかの調査)

Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。

11/7追記

English version: https://translate.google.com/translate?sl=ja&tl=en&js=y&prev=_t&hl=ja&ie=UTF-8&u=https%3A%2F%2Fgist.github.com%2Fmala%2Fe87973df5029d96c9269d9431fcef5cb&edit-text=&act=url

Summary in english.

root@localhost:/mnt/c/Users/syuu# find /dev
/dev
/dev/shm
/dev/ptmx
/dev/random
/dev/urandom
/dev/null
/dev/kmsg
/dev/tty
/dev/tty0
@mala
mala / gist:f33c9654af5e06e8bca9
Last active November 15, 2016 13:25
クライアントサイドでガチャ

目的

  • サーバー側でガチャのアイテムを選択すると確率操作している疑いがかかるので、事前に提示した確率から変更が出来ず疑いが掛からないような方式を提案する
  • サーバー側でもクライアント側でも不正が出来ないことが要件として求められる
  • 簡便なアルゴリズムで一般市民にも理解しやすく、また、解析によるアルゴリズムの把握が容易であることが望ましい

かんがえかた

これ相当のことを、サーバーとクライアントでやればいい。

@hashrock
hashrock / diag.md
Last active February 26, 2024 05:51
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@ttdoda
ttdoda / pyonpyon.rb
Last active August 4, 2017 18:56
あぁ^~端末がぴょんぴょんするんじゃぁ^~
#!/usr/bin/env ruby
#
# License: CC0
#
gravity = 3
require 'timeout'
include Math
$stdout.sync = 1

青空文庫に関する資料

勝手にまとめているものです。随時更新中(last update: 2015/05/17)

経緯

※やや古めのものが多くて、ここ数年の状況はよく分からなかった→一部更新しました

青空文庫ものがたり
http://www.aozora.gr.jp/cards/001739/files/55745_49422.html

@denji
denji / unbound-osx-homebrew.md
Last active November 27, 2022 08:33
Install unbound DNS(SEC) resolver on OS X, on the basis of https://www.spatof.org/blog/unbound-dns-resolver-on-osx.html
To install unbound you can use homebrew
$ brew install unbound ldns
Now we can edit the configuration file of unbound which by default is located in /usr/local/etc/unbound/unbound.conf:
@j138
j138 / imgur-tweetbot-custom-api.php
Created April 2, 2014 04:05
imgur-tweetbot-custom-api
<?php
// access and get api key
// chose :authorized_type -> Anonymus usage without user authorization
// https://api.imgur.com/oauth2/addclient
// plz input ur api_id
$client_id = 'plz-input-urapi-id';
if (!$_POST) exit('post plz');