- 予約周りの処理の改善
- 設計部分まで弄るのが出来なかった
- 小手先のコードの改善に頼っていた節がある
- DB力の無さを感じる。ここは僕の課題
api/users/:id
をもっと改善したかった- めっちゃ重くない?このAPI・・・
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum update | |
sudo yum install unbound jq -y | |
sudo systemctl enable unbound.service | |
sudo sed -i 's/PEERDNS=yes/PEERDNS=no/g' /etc/sysconfig/network-scripts/ifcfg-eth0 | |
sudo sed -i 's/nameserver .*/nameserver 127.0.0.1/g' /etc/resolv.conf | |
sudo systemctl start unbound.service | |
cat <<EOF | sudo tee -a /etc/security/limits.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
key_name = "saito-load-test" | |
user_data = "" | |
} | |
data "aws_availability_zones" "available" { | |
state = "available" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package config | |
import ( | |
"context" | |
"os" | |
"path/filepath" | |
"strings" | |
"github.com/heetch/confita" | |
"github.com/heetch/confita/backend" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To use the bundled libc++ please add the following LDFLAGS: | |
LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib" | |
llvm is keg-only, which means it was not symlinked into /usr/local, | |
because macOS already provides this software and installing another version in | |
parallel can cause all kinds of trouble. | |
If you need to have llvm first in your PATH run: | |
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
rules: { | |
"no-console-use-mylogger": ["error", { "loggerName": "logger", "logger": "winston" }] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
myapp: | |
image: myapp | |
ports: | |
- "3001:3001" | |
labels: | |
com.datadoghq.ad.check_names: '["prometheus"]' | |
com.datadoghq.ad.init_configs: '[{}]' | |
com.datadoghq.ad.instances: '[{"prometheus_url": "http://%%host%%:3001/actuator/prometheus", "extra_headers": {"Accept": "text/plain"}, "namespace": "local.test","metrics": ["jvm*"]}]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.wreulicke.github.mybatis; | |
import org.apache.ibatis.executor.statement.StatementHandler; | |
import org.apache.ibatis.mapping.BoundSql; | |
import org.apache.ibatis.mapping.MappedStatement; | |
import org.apache.ibatis.mapping.SqlCommandType; | |
import org.apache.ibatis.plugin.Interceptor; | |
import org.apache.ibatis.plugin.Invocation; | |
import org.slf4j.MDC; | |
import org.springframework.jdbc.core.SqlProvider; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
docker: 18 | |
java: openjdk11 | |
commands: | |
- echo Starting... | |
build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PaymentService { | |
public void purchase(Product product) { | |
// なんかいい感じの処理がある | |
log.info("決済が完了しました"); | |
} | |
} |