Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

MISAWA Yoshihiro PyYoshi

🏠
Working from home
View GitHub Profile
@PyYoshi
PyYoshi / gist:d4b48a0b186bea7ee4ffd00e0933da7f
Created May 19, 2020
setup helm-kubeval for github actions
View gist:d4b48a0b186bea7ee4ffd00e0933da7f
- name: Setup helm-kubeval
env:
KUBEVAL_VERSION: 0.15.0
run: |
curl -L "https://github.com/instrumenta/kubeval/releases/download/$KUBEVAL_VERSION/kubeval-linux-amd64.tar.gz" -o /tmp/kubeval-linux-amd64.tar.gz
tar xvf /tmp/kubeval-linux-amd64.tar.gz -C /tmp
chmod +x /tmp/kubeval
mv /tmp/kubeval /usr/local/bin/
kubeval --version
helm plugin install https://github.com/instrumenta/helm-kubeval
View autoexec.cfg
//// 通信設定
cl_interp "0"
cl_interp_ratio "1"
rate "128000"
cl_cmdrate "128"
cl_updaterate "128"
cl_lagcompensation "1"
cl_interpolate "1"
net_graph "1"
View keybase.md

Keybase proof

I hereby claim:

  • I am PyYoshi on github.
  • I am pyyoshi (https://keybase.io/pyyoshi) on keybase.
  • I have a public key whose fingerprint is 8C8F 440B 3390 4D89 6E52 A114 146D 52F7 C000 C2F0

To claim this, I am signing this object:

@PyYoshi
PyYoshi / Dockerfile
Last active Aug 29, 2018
mozjpeg 3.3.1, vips 8.6.5
View Dockerfile
FROM debian:buster-slim
RUN apt update \
&& apt install -y \
autoconf \
wget \
nasm \
build-essential \
pkg-config \
libde265-0 \
@PyYoshi
PyYoshi / _results.txt
Last active Aug 3, 2018 — forked from maxpert/results.txt
JSON vs MsgPack using Gzip + LZ4
View _results.txt
---------- RAW ----------
JSON 34291 byte(s)
MsgPack 26364 byte(s)
---------- GZIP ---------
JSON 05986 byte(s)
MsgPack 06198 byte(s)
---------- LZ4 ----------
JSON 09758 byte(s)
MsgPack 08548 byte(s)
View Ruby script to convert CSV to YAML
#!/usr/bin/env ruby
#
# Originally written by http://redartisan.com/tags/csv
# Added and minor changes by Gavin Laking
# Rewritten by Andrew Bennett for Ruby 1.9
#
# Usage: ruby csv_to_fixture.rb file.csv [--json]
#
# "id","name","mime_type","extensions","icon_url"
# "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif"
@PyYoshi
PyYoshi / _.md
Last active Jun 13, 2018
Disable Transparent Huge Pages on CoreOS
View _.md
$ sudo -i
# vim /etc/systemd/system/disable-transparent-huge-pages.service
# systemctl enable disable-transparent-huge-pages
# systemctl start disable-transparent-huge-pages
# systemctl status disable-transparent-huge-pages
# cat /sys/kernel/mm/transparent_hugepage/enabled
# cat /sys/kernel/mm/transparent_hugepage/defrag
@PyYoshi
PyYoshi / command.sh
Created Sep 25, 2017 — forked from peterdemartini/command.sh
Exclude node_modules in timemachine
View command.sh
find `pwd` -type d -maxdepth 3 -name node_modules | xargs -n1 sudo tmutil addexclusion -p
View DataStream-node.js
/**
DataStream reads scalars, arrays and structs of data from an ArrayBuffer.
It's like a file-like DataView on steroids.
@param {ArrayBuffer} arrayBuffer ArrayBuffer to read from.
@param {?Number} byteOffset Offset from arrayBuffer beginning for the DataStream.
@param {?Boolean} endianness DataStream.BIG_ENDIAN or DataStream.LITTLE_ENDIAN (the default).
*/
DataStream = function(arrayBuffer, byteOffset, endianness) {
this._byteOffset = byteOffset || 0;
@PyYoshi
PyYoshi / _.md
Created Nov 5, 2015
Set somaxconn=1024 on CoreOS
View _.md
$ sudo -i
# vim /etc/systemd/system/somaxconn1024.service
# systemctl enable somaxconn1024
# systemctl start somaxconn1024
# systemctl status somaxconn1024
# cat /proc/sys/net/core/somaxconn
You can’t perform that action at this time.