Skip to content

Instantly share code, notes, and snippets.

View yuokada's full-sized avatar

Yukihiro Okada (Yuki) yuokada

  • Tokyo, Japan
  • 14:08 (UTC +09:00)
View GitHub Profile
$ wc -l *                                                                                                                                                  ✘ 130
     319 airports_300.md
   84655 airports.csv
 1608432 airports.yaml
 1693406 total
$ tokei -f .
@yuokada
yuokada / jboss-README.md
Last active March 2, 2026 19:29
/opt/jboss/container/java/run/run-java.sh
[default@ip-172-23-152-38 ~]$ uname -a
Linux ip-172-23-152-38 6.8.0-1044-aws #46~22.04.1-Ubuntu SMP Tue Dec 2 18:01:57 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
[default@ip-172-23-152-38 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.7 (Plow)
[default@ip-172-23-152-38 ~]$ find / -name \*.sh |sort
find: ‘/var/cache/ldconfig’: Permission denied
find: ‘/proc/tty/driver’: Permission denied
/etc/profile.d/colorgrep.sh
{
"data": [
{
"country_code": "AF",
"country_name": "Afghanistan",
"dialling_code": "+93"
},
{
"country_code": "AL",
"country_name": "Albania",
@yuokada
yuokada / Overview.txt
Last active August 12, 2022 09:31
Difference between presto-benchmark-driver-0.275 and presto-benchmark-driver-350
~/I/t/presto-benchmark-driver ❯❯❯ ls -1 presto-0.275/presto-benchmark-driver/src/main/java/com/facebook/presto/benchmark/driver/ trino-350/presto-benchmark-driver/src/main/java/io/prestosql/benchmark/driver/
presto-0.275/presto-benchmark-driver/src/main/java/com/facebook/presto/benchmark/driver/:
BenchmarkDriver.java
BenchmarkDriverExecutionException.java
BenchmarkDriverOptions.java
BenchmarkQuery.java
BenchmarkQueryResult.java
BenchmarkQueryRunner.java
BenchmarkResultsPrinter.java
BenchmarkResultsStore.java
@yuokada
yuokada / MiniParser.scala
Created September 7, 2021 07:58 — forked from kishida/MiniParser.scala
Mini parser with parser combinators of scala.
package miniparser
import scala.util.parsing.combinator.RegexParsers
import scala.collection.mutable.Map
object Main {
def main(args: Array[String]): Unit = {
val expr = """
def mod(x, y) ={
@yuokada
yuokada / bash_strict_mode.md
Created May 26, 2021 08:03 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

set -e, -u, -o, -x pipefail

The set lines

  • These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
  • With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
  • set -euxo pipefail is short for:
set -e
set -u
package io.prestosql.operator.scalar;
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
FROM openresty/openresty:1.15.8.2-alpine-fat AS builder
# Our NCHAN version
ENV NGINX_VERSION 1.15.8
ENV NJS_VERSION 0.3.7
# For latest build deps, see https://github.com/nginxinc/docker-nginx/blob/master/mainline/alpine/Dockerfile
RUN apk add --no-cache --virtual .build-deps \
gcc \
libc-dev \
@yuokada
yuokada / dict_performance.ipynb
Last active July 14, 2019 16:35
Python - ある辞書から別の辞書に対応するキーの要素を代入する|teratail https://teratail.com/questions/200553
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.