Skip to content

Instantly share code, notes, and snippets.

View nikuyoshi's full-sized avatar
🇯🇵

Hiroki Uchida nikuyoshi

🇯🇵
View GitHub Profile

この記事はpyspa advent calendar 2020の18日目の記事です。前日は、flagboyの配られたカードで勝負するでした。主旨は異なりますが、徒然草百十段の「双六の名人」が思い出されました。明日はYutaka Matsubara a.k.a. mopemopeさんの記事となります。お楽しみに。

1ヶ月で10,000行くらいのコードを書いた話

行数を書くと「いやいや、私はもっと高い生産性を持っている」、という方は少なくないだろう。登大遊氏に至っては、ネットワークプログラミングという複雑な領域での実装でありながら「1日に少なくとも3,000行程度、多く書くときで10,000行」と述べており、凡才さを思い知らされる。

さて、この記事は、私のような動物でも高効率にコードを書くために何をしたのかを備忘として残しておく主旨である。

開発環境編

@mattn
mattn / README.md
Last active February 8, 2024 04:58
blacklist/whitelist master/slave に関する情報集め

blacklist/whitelist master/slave に関する情報集め

blacklist/whitelist、master/slave という単語は相応しくないという意見に OSS がどの様に対応すべきかを自身で考える為の情報集めです。見つけ次第、逐次更新していきます。

僕(mattn) 自身は black lives matter に同意をしています。blacklist/whitelist、master/slave という単語を廃止する事が、歴史的背景を持たない文化圏では特定の意味を持たなかった為、個人的には若干思う所はありますが、廃止自身に反対するつもりはありません。

昔から、主副を表す物には master/slave という単語が使われてきました。ハードディスクの IDE、仮想端末(pty)、色々あります。またネットワークの IP フィルタリングに関しては blacklist/whitelist と表記した物が今でも沢山あります。

我々日本人が意識せずに使っていた blacklist/whitelist、master/slave という単語が、人々にどの様に影響しうるのか、今後 OSS としてどの様に関わっていけば良いかを理解する上で、自分なりの情報集めをしたいと思っています。

@toricls
toricls / time-to-redemption.yaml
Created November 13, 2019 02:57
CloudFormation Existing Resource Import で利用するテンプレートの例 see also https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import.html
AWSTemplateFormatVersion: 2010-09-09
Description: It's time to redemption
Resources:
# これが罪深くも過去に手で作られた IAM ユーザー (Import の対象)
MyHandCraftedIAMUser:
Type: AWS::IAM::User
DeletionPolicy: Retain
# こちらは CFn でちゃんと作る IAM グループ
MyCFnCreatedIAMGroup:
@mitchellh
mitchellh / post.md
Created August 13, 2019 04:29
Originally posted on Tumblr on Feb 25, 2011.

THIS WAS ORIGINALLY POSTED ON MY TUMBLR ON FEB 25, 2011. I forgot I had a Tumblr account. I recently logged in (in light of the acquisition by Automattic), found some old posts, and I'm republishing them exactly as they were with zero modifications.


CloudFormation: The Big Picture

Amazon announced CloudFormation to the public yesterday, and while the general opinion I could glean from various sources shows that people are excited about this new technology, many are still unsure what it is and how it fits into their current cloud workflow. I feel as though I have a firm grasp on CloudFormation and will attempt to answer some questions here.

Note: I'm definitely not a representative of Amazon in any way, and anything here is simply my educated opinion on the matter.

@toricls
toricls / Time-based-auto-scaling-on-fargate.md
Created August 5, 2019 01:49
Example: Time-based Auto Scaling on Amazon ECS + AWS Fargate

Set parameters

$ export ECS_CLUSTER_NAME={YOUR_ECS_CLUSTER_NAME}
$ export ECS_SERVICE_NAME={YOUR_ECS_SERVICE_NAME}

RegisterScalableTarget

@LambdaNote
LambdaNote / n-monthly.md
Last active March 28, 2023 17:55
n月刊ラムダノートについて(記事募集要項)

n月刊ラムダノートについて(記事募集要項)

「ある程度まとまった技術解説を、その技術の専門家ではない技術者や若者に向けて書いておきたい。論文のようにフォーマルな内容ではないから、個人ブログに公開すればいいかな」と考えていませんか? その原稿、「n月刊ラムダノート」に寄稿してください。

n月刊ラムダノートとは

  • 計算機好きのための技術解説情報誌
  • nヶ月周期の不定期刊行(nは自然数)
  • 3~4の記事を含む数十ページの小冊子を、紙およびPDFにより、1200円~1500円程度で一般販売
  • ネットワーク技術、プログラミング言語、計算機科学、プロジェクトマネジメント手法など、ソフトウェア開発者、ネットワーク管理者、ハードウェア技術者や、それらを目指す学生が興味を持てる内容ならなんでも
@taichi
taichi / code_review_basics.md
Last active March 5, 2024 08:29
チームでコードを書き始めた後、「どうやらレビューってやつをした方が良いらしい」くらいの若手に向けた資料です。

コードレビューの基本


一番大事な事

ソースコードはプロジェクトの共同所有物である

  • 誰かだけが触れるコードを無くす
#!/bin/sh
#######################################################
#
# Precondition: Complete executing the following command
# ssh-keygen -t rsa
#
# How to use:
# sh ssh-auto-auth.sh {user name}@{IP address}
#
@voluntas
voluntas / webrtc_sfu_dev.rst
Last active March 28, 2024 12:31
WebRTC SFU コトハジメ

WebRTC SFU コトハジメ

日時

2023-12-03

voluntas

バージョン

2023.1

url

https://voluntas.github.io

この記事が良いと思ったらこの記事に Star をお願いします

@makolesnik
makolesnik / Selenide cheat sheet
Last active December 26, 2022 13:57
Selenide cheat sheet to create concise UI tests in Java. What is Selenide? Selenide is a wrapper for Selenium WebDriver. http://selenide.org/
=Navigating=
baseUrl = "http://site.com";
open("/login");
open("http://google.com");
switchTo().frame($("#myFrame").toWebElement());
=Alert=
switchTo().alert().accept();