Skip to content

Instantly share code, notes, and snippets.

@matsuu
matsuu / goldrush.yml
Last active February 24, 2021 11:15
Github Actions Workflow for HighLoad Cup 2021
name: Build and Publish Docker for HighLoad Cup 2021
on:
push:
branches:
- main
- master
jobs:
docker:
@matsuu
matsuu / log
Created January 6, 2021 14:18
isucon10q deno build log
#10 0.333 deno bundle app.ts > isuumo
#10 0.336 Bundle file:///deno/app.ts
#10 0.338 Download https://deno.land/x/case/mod.ts
#10 0.338 Download https://deno.land/x/oak/mod.ts
#10 0.339 Download https://deno.land/x/multiparser/mod.ts
#10 0.339 Download https://deno.land/std/fmt/printf.ts
#10 0.340 Download https://raw.githubusercontent.com/denjucks/organ/master/mod.ts
#10 0.340 Download https://deno.land/std/encoding/csv.ts
#10 0.341 Download https://deno.land/x/mysql/mod.ts
#10 0.698 Download https://raw.githubusercontent.com/denjucks/organ/master/deps/basic-auth/index.js
@matsuu
matsuu / settings.json
Last active January 6, 2021 13:41
Windows Terminal Settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{...}",
"profiles":
{
"defaults":
{
"colorScheme": "Tango Dark",
"cursorShape": "emptyBox",
"fontFace": "HackGenNerd Console",
@matsuu
matsuu / 0001-benchmarker-patch.patch
Created October 4, 2020 00:03
本番環境でbenchmarkerが動作するように修正したpatch
From 9c7104201bfd484f0cb8e9350ccb94a16504b5d6 Mon Sep 17 00:00:00 2001
From: MATSUU Takuto <[email protected]>
Date: Sat, 3 Oct 2020 23:55:09 +0000
Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E7=95=AA=E7=92=B0=E5=A2=83=E3=81=A7be?=
=?UTF-8?q?nchmarker=E3=81=8C=E5=8B=95=E4=BD=9C=E3=81=99=E3=82=8B=E3=82=88?=
=?UTF-8?q?=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3=E3=81=97=E3=81=9Fpatch?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
@matsuu
matsuu / user-data
Last active September 7, 2020 13:17
user-data for isucon9q
#cloud-config
password: isucon
chpasswd:
expire: False
ssh_pwauth: True
write_files:
- content: |
#!/bin/sh
set -e
@matsuu
matsuu / Vagrantfile
Created September 10, 2019 12:11
isucon9-qualifier
# -*- mode: ruby -*-
# vi: set ft=ruby :
#box = "ubuntu/bionic64"
box = "bento/ubuntu-18.04"
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
@matsuu
matsuu / font-hackgen.rb
Last active August 7, 2019 22:40
brew cask install font-hackgen.rb
cask 'font-hackgen' do
version '1.2.1'
sha256 '04f470fd90e4d6560614647608b6f7185877b9c08536028d60d289f9a162cb23'
url "https://github.com/yuru7/HackGen/releases/download/v#{version}/HackGen_v#{version}.zip"
appcast 'https://github.com/yuru7/HackGen/releases.atom'
name 'HackGen'
homepage 'https://github.com/yuru7/HackGen'
font "HackGen_v#{version}/HackGen-Bold.ttf"
@matsuu
matsuu / Dockerfile
Created November 25, 2018 07:58
Dockerfile for rhel-8-beta
FROM centos:7
ARG install_groups=Core
ARG target=/target
# based on https://github.com/moby/moby/blob/master/contrib/mkimage-yum.sh
RUN \
yum install -y curl && \
curl -sLO http://downloads.redhat.com/redhat/rhel/rhel-8-beta/rhel-8-beta.repo && \
mkdir -m 755 "$target" && \
@matsuu
matsuu / GDPR.md
Last active May 21, 2021 13:23 — forked from zero-master/GDPR.md
Show visitors from EU countries a page with GDPR message using Cloudflare and .htaccess
@matsuu
matsuu / spec.md
Created February 9, 2018 08:29
alibaba cloud CentOS 7.4

/etc/redhat-release

CentOS Linux release 7.4.1708 (Core)

rpm -qa | sort

GeoIP-1.5.0-11.el7.x86_64