Skip to content

Instantly share code, notes, and snippets.

View yut148's full-sized avatar

yut148

View GitHub Profile
@yut148
yut148 / 202012_smooz.md
Created December 23, 2020 13:22 — forked from mala/202012_smooz.md
Smoozサービス終了に寄せて

Smoozサービス終了に寄せて

前置き

  • この文章と、それに含まれる考察や各サービスへの脆弱性報告などはmala個人の活動であり、所属している企業とは関係ありません。
  • 一方で私は、企業が閲覧履歴を収集して何をしたいのか、所属してる企業や他社事例について、ある程度詳しい当事者でもあります。
  • 一般論として書けることは書けるが、(業務上知り得た知識で開示されてないものなど)個別具体的なことは書けないこともあり、また観測範囲に偏りがある可能性もあります。

Smoozに報告した脆弱性2件

@yut148
yut148 / 00.md
Created October 29, 2020 10:02 — forked from hayajo/00.md
TCP/IPとか運用とかsystemdとか #オンシャヘイシャ
@yut148
yut148 / v1p0p0.php
Created January 24, 2020 06:30 — forked from lsloan/v1p0p0.php
Parse hangouts.json from Google Takeout, via https://paste.jay2k1.com/view/5fcebdfe
<?php
/*
(in this version, I added support for more message types and offer both plaintext and HTML message format)
This is a function that transforms the JSON you get from Google Takeout when you export your Hangouts history
into a PHP array which can be used to further manipulate the data.
A use case is my hangouts parser at http://hangoutparser.jay2k1.com/ -- a description can be seen at
http://blog.jay2k1.com/2014/11/10/how-to-export-and-backup-your-google-hangouts-chat-history/
@yut148
yut148 / gist:b1b8d561ee8b46d0a069b5357aabd097
Created January 20, 2020 01:16 — forked from uhfx/gist:3922268
Twitter公式/非公式クライアントのコンシューマキー

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

Golang 101

事前準備

Go言語での開発をするために、まずは環境整備をしましょう。

Go言語のインストール

公式サイトより、ご自身の環境に合わせてインストーラをダウンロードし、Go言語の実行環境をインストールしてください。 バージョンは最新(本ガイドを書いた時点では1.12.6)をインストールしてください。

事前準備ガイド

イベント当日、手元で実際にプログラミングを行うにあたり、ある程度環境を整える必要があります。 参加当日までに、次の手順で準備をお願いします。

Go言語のインストール

公式サイトより、ご自身の環境に合わせてインストーラをダウンロードし、Go言語の実行環境をインストールしてください。 バージョンは最新(本ガイドを書いた時点では1.12.6)をインストールしてください。

@yut148
yut148 / gist:3ccff845a5349346431f41555c8d3349
Created July 9, 2019 01:10 — forked from j5ik2o/gist:2970973
ペアプロの心得

ペアプロの心得

休憩をとる

1.定期的に休憩をとっていますか? ペアプログラミングは、精神的な体力を消耗します。定期的に休憩をとってリフレッシュすることがとても大切です。

謙虚になる

2.「色々な実装方針がある」という認識がありますか?

@yut148
yut148 / content.md
Created July 4, 2019 11:02 — forked from knsh14/content.md
golang/go CodeReviewComments 日本語翻訳

Go Code Review Comments

原文

go fmt

あなたのコードに gofmt を走らせると、自動的に機械的に直すことのできるスタイルの大部分を修正してくれます。 世にあるGolang コードのほとんどすべてが gofmt を使っています。 この文章の残りは機械的に直すことのできないポイントについて解説します。

代わりに goimports を使う手段もあります。

@yut148
yut148 / gist:dfa1654514e89883134ad10461bdcb9c
Created March 26, 2019 21:00 — forked from kjunichi/gist:4187619
VirtualBoxのファイルを動かしただけでひどい目に!
"ハードディスク /Users/hoge/Documents/ubuntu-ja-12.04-desktop-i386.vhd"のオープンに失敗しました。
Cannot register the hard disk '/Users/hoge/Documents/ubuntu-ja-12.04-desktop-i386.vhd' {64f22b14-2ffb-42c9-a83a-962e6f81a219} because a hard disk '/Users/hoge/Downloads/ubuntu-ja-12.04-desktop-i386/ubuntu-ja-12.04-desktop-i386.vhd' with UUID {64f22b14-2ffb-42c9-a83a-962e6f81a219} already exists.
終了コード : NS_ERROR_INVALID_ARG (0x80070057)
コンポーネント: VirtualBox
インターフェース: IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2}
呼び出し先 RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
どうやって対応したか