Skip to content

Instantly share code, notes, and snippets.

View okdtsk's full-sized avatar

Tasuku OKUDA okdtsk

View GitHub Profile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
brew "readline"
brew "ansible"
brew "bat"
brew "bfg"
adobe-creative-cloud
adoptopenjdk8
alfred
apache-directory-studio
appcleaner
authy
bartender
brave-browser
caffeine
contexts
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
cask "java"
brew "readline"
brew "ansible"
brew "bat"
@okdtsk
okdtsk / .chalice_config.json
Last active January 12, 2021 13:47
line-botsdk-python example for pycon
{
"version": "2.0",
"app_name": "./line-bot-for-pycon",
"stages": {
"dev": {
"api_gateway_stage": "dev",
"environment_variables": {
"LINEBOT_CHANNEL_ACCESS_TOKEN": "blahblahblah",
"LINEBOT_CHANNEL_SECRET": "blahblahblah"
}
@okdtsk
okdtsk / another_version.py
Last active October 29, 2018 18:25
How to save memory for concurrent.futures.ProcessPoolExecutor
#!/usr/bin/env python
import memory_profiler
from typing import Any
from typing import Dict
from typing import Callable
from typing import Iterable
from typing import List
from typing import Optional
01. David Bowie - Let's Dance
02. Jamie xx - Sleep Sound
03. ??? (garage house, lyrics: Why don't you tell me)
04. ??? (garage house)
05. The XX - You got the love (orig. Florence And The Machine)
06. ??? (garage house)
07. Gil Scott-Heron and Jamie xx - I'll Take Care Of U (Special DJ Version)
08. Jamie xx - The Rest Is Noise
09. ??? (techno)
10. Paranoid London feat. Mutado Pintado - Eating Glue (Album Edit)
@okdtsk
okdtsk / Dockerfile
Last active September 25, 2015 08:00
Hadoop 2.7.1 building scripts for CentOS6.6 (5.11) with docker
FROM centos:5.11
MAINTAINER Tasuku OKUDA <tasuku.okuda@linecorp.com>
WORKDIR /root
# Setup yum
RUN yum -y install curl epel-release kernel-devel wget
RUN yum -y update && yum -y upgrade
RUN yum -y groupinstall --enablerepo=epel "Development Tools"
@okdtsk
okdtsk / gist:ac861d2ce818179e953b
Last active January 17, 2018 14:44
thrift --gen go ./hive-src/metastore/if/hive_metastore.thriftについて

apache-hive-1.1.0-src/metastore/if/hive_metastore.thrift このThriftファイル内の以下の定義に対して--gen goではErrorとなる。

// this object holds all the information about skewed table
struct SkewedInfo {
  1: list<string> skewedColNames, // skewed column names
  2: list<list<string>> skewedColValues, //skewed values
  3: map<list<string>, string> skewedColValueLocationMaps, //skewed value to location mappings
}
@okdtsk
okdtsk / Diff mongodb-mms-monitoring-agent
Last active August 1, 2016 08:54
MMS Monitor agent: Modify to be able to launch each Group
(20):   > CLUSTER=$2
 23: PID_FILE="/var/run/mongodb-mms-monitoring-agent.pid" | PID_FILE="/var/run/mongodb-mms-monitoring-agent-$CLUSTER.pid"
 24: LOG_FILE="/var/log/mongodb-mms/monitoring-agent.log" | LOG_FILE="/var/log/mongodb-mms/monitoring-agent-$CLUSTER.log"
 25: CONF_FILE="/etc/mongodb-mms/monitoring-agent.config" | CONF_FILE="/etc/mongodb-mms/monitoring-agent-$CLUSTER.config"
107: echo $"Usage: $0 {start|stop|restart|status}" | echo $"Usage: $0 {start|stop|restart|status} CLUSTER_ID"
@okdtsk
okdtsk / kohara.php
Last active December 21, 2015 01:39
mysql、while二重で回してちゃんと取れるかはわからんで修正してちょ
//$_GET関数で値を受け取る
$id = $_GET['id']; //idを受け取り、変数に代入
$sql = "
SELECT odai_id, odai_title, odai_image_name, twitter_name
FROM odai INNER JOIN user ON odai.user_id = user.user_id
WHERE odai.odai_id = ".$id;
$result = mysql_query($sql);
$odai = array();