Skip to content

Instantly share code, notes, and snippets.

View tamakiii's full-sized avatar

Daichi Tamaki tamakiii

  • undefined
  • Shibuya, Tokyo, Japan
  • X @tamakiii
View GitHub Profile
@tamakiii
tamakiii / check_where_the_function_defined.php
Created July 8, 2016 14:27
グローバル関数がどこで定義されてるか調べたいとき
<?php
echo (new \ReflectionFunction('is'))->getFileName() . PHP_EOL;

ポケモンGO 巣&出現情報

調査方法

  • アプリ:PokeWhere
  • 2016年7月30日時点の情報
  • 夜3時ごろと朝10時ごろに調査
  • 比較的確実そうな情報だけに限定
  • 実検証できていないので参考程度に

巣&出現情報

#!/usr/bin/env zsh
diff -u <(sort a.txt | uniq) <(sort b.txt | uniq)
<!DOCTYPE html>
<html lang="ja" data-cast-api-enabled="true">
<head>
-<style name="www-roboto" nonce="">@font-face{font-family:'Roboto';font-style:italic;font-weight:500;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(//fonts.gstatic.com/s/roboto/v16/OLffGBTaF0XFOW1gnuHF0fZraR2Tg8w2lzm7kLNL0-w.woff2)format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(//fonts.gstatic.com/s/roboto/v16/OLffGBTaF0XFOW1gnuHF0V4sYYdJg5dU2qzJEVSuta0.woff2)format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(//fonts.gstatic.com/s/roboto/v16/OLffGBTaF0XFOW1gnuHF0VBW26QxpSj-_ZKm_xT4hWw.woff2)format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;src:local('R
@tamakiii
tamakiii / build.sh
Created December 6, 2017 12:53
wercker build with `add-ssh-key` locally
# https://github.com/wercker/step-add-ssh-key/blob/ff3f3c160a637a72f737de211d3ef22f70bf42e8/run.sh
X_GITHUB_SSH_KEY_PRIVATE=$(cat ~/.ssh/id_rsa) wercker --debug --verbose build
@tamakiii
tamakiii / ecs-cli-memo.sh
Last active March 27, 2018 07:07
ecs-cli troubleshoot (v1.1.0 macOS)
read -s AWS_ACCESS_KEY_ID
read -s AWS_SECRET_ACCESS_KEY
# $ ecs-cli configure --region us-west-2 --access-key $AWS_ACCESS_KEY_ID --secret-key $AWS_SECRET_ACCESS_KEY --cluster ecs-cli-demo
# This won't create `~/.ecs/credentials`
ecs-cli configure profile --profile-name profile_name --access-key $AWS_ACCESS_KEY_ID --secret-key $AWS_SECRET_ACCESS_KEY
# $ ecs-cli compose up --file docker-compose.dev.yml
# `ERRO[0000] flag provided but not defined: -file`
ecs-cli compose --file docker-compose.dev.yml up ...
@tamakiii
tamakiii / docker-memo.sh
Last active July 5, 2018 01:00
docker memo
# docker exec by image name
docker exec -it $(docker ps -q -f ancestor=$IMAGE_NAME) bash
# Stop all running containers
docker stop $(docker ps -q)
# Login to container
docker exec -it $(docker ps -q -f ancestor=my/container) sh
# List images
@tamakiii
tamakiii / README.md
Last active January 31, 2018 15:34
OpenGL setup for macOS