Skip to content

Instantly share code, notes, and snippets.

View do9iigane's full-sized avatar

Hiroyuki Yokoshima(毒眼鏡) do9iigane

  • bilcom
View GitHub Profile
@do9iigane
do9iigane / qrcode_sample.html
Last active September 4, 2019 19:19
qrcode_sample
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie-edge">
<title>JSの練習</title>
</head>
<body>
<div id="tipQR">
@do9iigane
do9iigane / backup_package.sh
Created December 22, 2016 03:36
adb backup all packages by shell
FILENAME="packages.txt"
adb shell pm list package > ./$FILENAME;
echo "packages list output to ./$FILENAME";
cat ./$FILENAME | sed -e 's/package://g' | while read LINE;do
APKNAME=`echo ${LINE} | tr -d '\r'`
if [ ! -e $APKNAME.ab ]; then
#PHPConference
https://docs.google.com/spreadsheets/d/1Stjf6N7yuunOtibiWdNYWlDu00Z_S1jy5OwmzxnLO5Q/edit?pref=2&pli=1#gid=0 | 全体マイルストーン - Google スプレッドシート
https://docs.google.com/spreadsheets/d/1-381L5iseFBcJwb4ImEc2glfhfuU2_3qMYFPHhd38qU/edit?pref=2&pli=1#gid=0 | スタッフ名簿&担当表 - Google スプレッドシート
https://docs.google.com/spreadsheets/d/14Sc-0VcSMM9rSrzDcihAWT4AstxSBLvQn8y8IiMcjuY/edit#gid=859224759 | PHPカンファレンス2016予算 - Google スプレッドシート
https://docs.google.com/spreadsheets/d/1q6aVXl_PxRk1vUSgsrOU1kTwv1Wkc5TPU80aSGaRz2M/edit#gid=0 | 進捗共有 - Google スプレッドシート
https://phpcon-php-gr-jp.slack.com/messages/general/ | general | 2016 PHP Conference Japan Slack
https://slack-files.com/files-pri-safe/T02K7KC0U-F1V2KMH0A/php_____________________2016___________________.pdf?c=1470307627-3f099f42d5648af6bfb8147aa61510866d60e2ef | PHPカンファレンス2014 協賛のご案内
https://drive.google.com/drive/folders/0B2hIEXc43RO_OXFzODh4UEl0bGs | PHPConference2016 - Google ドライブ
https://docs.google.com/forms/d/e/1FAIpQLScPn3mv4lWpHHSQS7EdmVuNadOvj3GMbmXEHxVj9cB
@do9iigane
do9iigane / osx_change_capture_file_save_target.md
Last active May 11, 2016 08:03
OSX captureの保存先を変更する
  1. 保存先を変更
    defaults write com.apple.screencapture location ~/Picture/screenshot
  2. UIServerを再読み込み
    killall SystemUIServer
@do9iigane
do9iigane / file0.txt
Created March 7, 2016 08:56
artisan serve で任意のhost,portを指定する方法 ref: http://qiita.com/do9iigane/items/32083f843db1e5a63fc3
$ php artisan --host=127.0.0.1 --port=9999
@do9iigane
do9iigane / setup_connect2dynamo.sh
Last active August 29, 2015 14:28
dynamoDBへのデータアクセス
;awscliのインストール
$ brew install awscli
;dynamodb-localのインストール
$ brew install dynamodb-local
;awsのcredentialを設定
$ aws configure
;以下調整する
@do9iigane
do9iigane / gist:eb1b67d6ce0ab9faec68
Created October 20, 2014 08:58
Dbfixt_add_mongoDB
<?php
namespace Fuel\Tasks;
use Fuel\Core\Cli;
use Fuel\Core\DB;
use Fuel\Core\DBUtil;
use Fuel\Core\Format;
use Fuel\Core\Mongo_Db;
@do9iigane
do9iigane / PagesController.php
Created May 9, 2014 11:23
PHPでwhois情報のCreation Dateを取得します。
<?php
//whois取得
$whois = file_get_contents('http://whoiz.herokuapp.com/lookup.json?url=interestic.com');
preg_match('/(.*)Creation\ Date:(.*)/', json_decode($whois), $match);
$createdeDate = new DateTime($match[2]);
$this->set('createdDate', $createdeDate->format('Y'));
vagrantのinstall
http://www.vagrantup.com/
以下でインストール確認
$ vagrant -v
※Puppetのインストールは以下
$ vagrant plugin install puppet
boxファイルを以下から適当に選ぶ。
@do9iigane
do9iigane / selenium-server_start.sh
Last active December 19, 2015 13:40
selenium-server start command
#selenium-server hub start command
java -jar selenium-server-standalone-2.28.0.jar -role hub -Xms=1024m -Xmx=1024m
#selenium-server role start command
java -jar selenium-server-standalone-2.28.0.jar -role webdriver -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=chromedriver.exe -Xms=1024m -Xmx=1024m