Skip to content

Instantly share code, notes, and snippets.

Tatsuya Fukata fukata

Block or report user

Report or block fukata

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
@sile
sile / README.md
Last active Oct 8, 2019
Optunaを使ったRocksDBのパフォーマンスチューニング
View README.md

概要

  • Optunaというハイパーパラメータ最適化ツールを使って、RocksDB(組み込みDB・KVS)のパフォーマンスチューニングを試してみた際の結果メモ
    • 対象となるワークロードに対して、最適な性能を発揮するパラメータ群を自動で見つけ出すのが目的
  • 結果としては、デフォルトパラメータをそのまま使った場合に比べて、かなり良い性能が得られるパラメータ群を見つけることができた:
    • デフォルトでのベンチマークの所要時間: 372秒
    • Optunaによる最適化後のパラメータでの所要時間: 30秒

モチベーション

@shunirr
shunirr / criminal_jc.md
Last active Oct 15, 2019
女子中学生チケット詐欺事件
@FreddyPoly
FreddyPoly / terminal
Last active Sep 7, 2019
[REACT NATIVE] Get SHA1
View terminal
Debug SHA1 (root of project)
keytool -J-Duser.language=en -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Release SHA1 (/android/app/)
keytool -J-Duser.language=en -list -v -keystore mystore.keystore
@ishitcno1
ishitcno1 / MultipartRequest.java
Last active Apr 7, 2019
volley multipart request, post file image, android.
View MultipartRequest.java
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyLog;
import org.apache.http.HttpEntity;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.entity.mime.content.FileBody;
@fukata
fukata / Makefile
Last active Dec 24, 2015
ALL go tests.
View Makefile
# see http://d.hatena.ne.jp/holidays-l/20110823/p1
define MAKETEST
for pkg in $$(for f in $$(find ./adstir -name *_test.go); do echo $${f%/*}; done |sort -u)
do
gom test $$pkg
done
endef
export MAKETEST
test:
@echo "$${MAKETEST}" > /tmp/$$$$ ; $(SHELL) /tmp/$$$$ ; rm -f /tmp/$$$$
View landing_page_ranking_to_signup.sql
-- landing page access ranking analysis using Treasure Data
SELECT first_path, COUNT(1) AS count
FROM (
SELECT TD_SESSIONIZE(time, 3600, host) AS session_id, TD_FIRST(path, time) AS first_path
FROM (
SELECT time, v['host'] as host, v['path'] as path
FROM www_access
DISTRIBUTE BY v['host']
SORT BY v['host'], v['time']
) ss
@drcongo
drcongo / fab deploy_static
Last active May 15, 2018
A Fabric task to deploy static assets to S3, gzipping the js and css files, and invalidating cache objects on CloudFront. Feel free to point out where it could be improved.
View fab deploy_static
import datetime
import arrow
from fabric.api import *
import boto
from boto.cloudfront import CloudFrontConnection
import os
from datetime import date, timedelta
import gzip
import shutil
@fukata
fukata / MY_Loader.php
Created Jun 24, 2011
Default escape display vars.
View MY_Loader.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Loader extends CI_Loader {
public function __construct() {
parent::__construct();
}
/**
* CI_Loader::_ci_load is private method.
*
* (non-PHPdoc)
@rkumar
rkumar / gist:445735
Created Jun 20, 2010
ruby's OptionParser to get subcommands
View gist:445735
#!/usr/bin/env ruby -w
## Using ruby's standard OptionParser to get subcommand's in command line arguments
## Note you cannot do: opt.rb help command
## other options are commander, main, GLI, trollop...
# run it as
# ruby opt.rb --help
# ruby opt.rb foo --help
# ruby opt.rb foo -q
# etc
You can’t perform that action at this time.