Skip to content

Instantly share code, notes, and snippets.

asn() {
if [ -z "$1" ]
then
echo "usage: asn url" 1>&2
return 1
fi
ips=$(dig $DIG_ARGS +short $1)
if [ -z "$ips" ]
then
@mala
mala / CVE-2018-0691.md
Last active October 15, 2018 01:37
CVE-2018-0691 プラスメッセージにおける証明書検証不備について

CVE-2018-0691 プラスメッセージにおける証明書検証不備について

  • https://jvn.jp/jp/JVN37288228/

  • 平日の業務時間内に見つけた問題である関係で(自分ルールで)所属を入れていますが、他社サービスに対する調査や報告は業務とは一切関係のない個人の活動として行っています。

  • 文責はmala個人にあります。お問い合わせなどありましたら個人宛にどうぞ。TwitterのDMや任意の文字列 @ma.la

概要

@tanprathan
tanprathan / CVE-2018-13435.txt
Last active May 15, 2019 07:04
LINE CVE-2018-13435 Information
> [Description]
> ** DISPUTED ** An issue was discovered in the LINE jp.naver.line application
> 8.8.0 for iOS. The Passcode feature allows authentication bypass via
> runtime manipulation that forces a certain method to disable passcode
> authentication. NOTE: the vendor indicates that this is not an attack
> of interest within the context of their threat model, which excludes
> iOS devices on which a jailbreak has occurred.
>
> ------------------------------------------
>

Time Travel Debugging

Time Travel refers to the ability to record a tab and later replay it ([WebReplay][wrr]). The technology is useful for local development, where you might want to:

  • pause and step forwards or backwards
  • pause and rewind to a prior state
  • rewind to the time a console message was logged
  • rewind to the time an element had a certain style or layout
  • rewind to the time a network asset loaded
@ksasao
ksasao / detect_marker.py
Last active December 10, 2023 02:38
ZOZOSUITのマーカーのIDを読み取るコードです。公開されている画像を元に独自に解析しているので、公式ではこのように処理しているかどうかは不明です。仕様等については https://twitter.com/ksasao/status/990779583682170881 のスレッドも参照してください。全身を読み取るコード https://twitter.com/ksasao/status/989842844243279872 ライセンスは Apache License 2.0 です。
import numpy as np
import random
import math
import cv2
from PIL import Image
import sys
def detect_markers(im):
markers = []
# 輪郭線抽出のための二値化
@ksasao
ksasao / findmarker.py
Last active February 20, 2022 09:12
某スーツの水玉をみつけるやつ
import numpy as np
import random
import math
import cv2
from PIL import Image
def recognize(im):
# 輪郭線抽出のための二値化
im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
im_blur = cv2.GaussianBlur(im_gray, (3, 3), 0)

目的

xxの機能により KPI を伸ばす!

仮説

  • A によって B が増える

やること

@kazuho
kazuho / git-blame-pr.pl
Last active December 15, 2025 09:47
git-blame by PR #
#! /usr/bin/perl
#
# Written in 2017 by Kazuho Oku
#
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
#
use strict;
use warnings;

VimConf 2018完全攻略法 -- Vim Advent Calendar 2017

つい先日である27日前に、VimConf 2017 が日本の東京で開催されました。VimConfは世界初かつ世界で唯一の、コミュニティによって定期運営されているVimの国際カンファレンスで、今年で5回目です。

VimConf 2018が来年2018年に開催されることが予告されましたが、これに参加することは熾烈を極める争いになることが予想されます。27日前のVimConf 2017開催中に、「来年の同じ会場を予約する」という発言がありました。同じ会場、つまり客席数は同じです。一方、VimConf 2017の時点ですでにチケットは完売して参加できなかった人も大勢発生しており、このいまの高まるVim熱を鑑みるに、来年は今年の2倍、3倍の激しいチケット争奪戦になることはもはや確定事項といえます。

そんなVimConf 2018のチケットを入手するにはどうすればよいか、公開情報のみから考察し、まとめます。((なお著者のujihisaはVimConfのスタッフで、裏事情のすべてを完全に把握しているかもしれない人物ですが、この記事では公開されていない情報は一切知らなかったことにして考察を進めています。)) 以下に4項目を、難易度の低い順に羅列します。基本的に上の方に記述されているものを優先し、それができなかったら代替案として下に記述されているものを採用すると、すべての物事がスムーズに進み便利です。

招待される

@miyayo
miyayo / support.md
Last active November 15, 2025 07:46

『スキルアップ! 情報検索 : 基本と実践』サポートページ

このページについて