Skip to content

Instantly share code, notes, and snippets.

View hgsgtk's full-sized avatar
🐿️
Baby steps to giant strides

Kazuki Higashiguchi hgsgtk

🐿️
Baby steps to giant strides
View GitHub Profile
@hgsgtk
hgsgtk / 2018_presentation_records.md
Last active December 21, 2021 01:32
2018 presentation records by kazuki higashiguchi
@hgsgtk
hgsgtk / one-shot-ssh-user.sh
Created October 7, 2021 08:57
Shell script to create an SSH user in one shot
#!/usr/bin/env bash
# ./onetouch-user.sh user_name
# $1 argument one = user_name
useradd "$1"
echo "$1 ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/"$1" > /dev/null
mkdir /home/"$1"/.ssh
touch /home/"$1"/.ssh/authorized_keys
@hgsgtk
hgsgtk / sample.md
Last active October 6, 2021 01:22
Sample PlantUML
@startuml

[*] --> State1
State1 --> [*]

@enduml
@hgsgtk
hgsgtk / 2021_personal_milestone_results.md
Last active December 21, 2021 01:47
2021 personal milestone results

milestones

https://note.com/notes/nec79c1ccb303

Milestone Result
22回以上1冊読んだ書評を書く 5
毎月1回以上、所属企業のブログに寄稿する 2/12
24回の書評の中で2回は洋書の書評を含める 1
6回ISUCON練習・要素調査結果をアウトプットする 0
@hgsgtk
hgsgtk / 2020_presentation_results.md
Last active December 27, 2020 06:02
2020 presentation records
日付 カンファレンス名 時間 内容
02.16 Object Oriented Conference 15min デザインパターンの使い方を パタン・ランゲージとの比較から考える
06.04 コネヒトマルシェ 20min 小さなチームが始めたアジャイル開発
07.14 fukuoka.go 5min Why should we use bufio.ReadBytes, ReadString instead of ReadSlice in most cases?
07.25 July Tech Festa 2020 15min 少人数でのアジャイル開発への取り組み実例 (一歩目の踏みだし方)
08.31 Go 1.15 Release Party 15min Dive deep into Go 1.15 changes to testing package
09.19 XPまつり2020 5min 時を超えたプログラミングの道 “XPはソーシャルチェンジである”
11.20 JaSST' 20 Kyushu 5min [成長したい開発者にTDDが与える学習効果](https:
@hgsgtk
hgsgtk / gist:eac02214cff4f622b833fac148597c2b
Created July 26, 2019 14:38
Gopher2019聴講メモ "Contributing to the os Package: How Deep Do You Go?"
# Contributing to the os Package: How Deep Do You Go?
https://golang.org/doc/contribute.html
- やったこと
- size
- os.Remove
- https://pivotal.io/security/cve-2018-11084
- dig into os
- os.RemoveAll()の実装
- 中のat()の実装
- os.RemoveAll() をcopy -> replacate stat() / remove with at()
@hgsgtk
hgsgtk / gist:3d07230b108ed5394fe0df81a479926a
Created July 26, 2019 14:35
GopherCon2019聴講メモ "Optimization for Number of goroutines Using Feedback Control"
# Optimization for Number of goroutines Using Feedback Control
performance tuning - 3min
how many are the optimal number of goroutine? <- concern <_-performance
concurrency - 8:42min
-> good performance
-> complexity // complexity問題をGoとアプリケーションにわけて解説
controbution to go
-> Go hide runtime scheduler and features
concept
-> create goroutine cheap "g" <- minimum context
@hgsgtk
hgsgtk / gophercon-handling-go-errors.md
Created July 26, 2019 14:29
GopherCon2019聴講メモ "Handling Go Errors"

Handling Go Errors

learn syntax vs learn concept learn like begineer

The concept

  • Errors are values
    • Props
      • you get to define the importance of error
    • Cons
      • same
    1. Errors are i/o