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とか #オンシャヘイシャ
curl: (35) Cannot communicate securely with peer: no common encryption algorithm(s).
@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

We are sorry. Something went wrong with your purchase of this product. Any bundle discounts associated with this product will not be applied in this purchase.
@yut148
yut148 / gist:cc2b1a19c86f59bcc767d3891392ffe2
Created October 16, 2019 12:37
ruby-install-at-centos8-0.1905.0.9.el8
# dnf install ruby
Last metadata expiration check: 0:02:33 ago on Wed Oct 16 08:32:11 2019.
Dependencies resolved.
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
ruby x86_64 2.5.3-104.module_el8.0.0+179+565e49e2 AppStream 86 k
Installing dependencies:
ruby-irb noarch 2.5.3-104.module_el8.0.0+179+565e49e2 AppStream 101 k
use rpmfusion repo.
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
yum --disablerepo=\* --enablerepo=base,epel,rpmfusion-free-updates install ffmpeg
ffmpeg: symbol lookup error: /lib64/libpango-1.0.so.0: undefined symbol: g_log_structured_standard
yum update glib2 && date
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
@yut148
yut148 / gist:0b6fc93f8811c6f95186d4ae5c9de304
Created July 25, 2019 05:09
連番リネームする際、ファイル数の桁数を取得して桁数を揃える
https://qiita.com/catfist/items/8052e21ebfb3b7a6f9a9
@catfist
while read dir; do
num=0
cd "$dir"
for file in *; do
num="$(printf "%0${#max}d" "$((10#$num+1))")"
mv "$file" "$num-$file"
done