Skip to content

Instantly share code, notes, and snippets.

View devlights's full-sized avatar
🤧
hay fever....

devlights devlights

🤧
hay fever....
View GitHub Profile
@devlights
devlights / .clang-format
Last active August 14, 2025 06:17
C言語用のシンプルなMakefile
UseTab: Always
IndentWidth: 4
TabWidth: 4
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
@devlights
devlights / README.md
Created July 7, 2025 08:52
git notesについてのメモ

git notes について

git notesは、Gitオブジェクト(主にコミット)に対してメタデータを後から追加できる機能。

コミット履歴を変更することなく、追加情報を関連付けることが出来る。

特徴

  • コミットハッシュを変更せずに情報を追加可能
  • 複数の名前空間(namespace)で管理可能
@devlights
devlights / Makefile
Last active February 11, 2025 06:20
C言語でサンプル作る際のMakefile
TIMESTAMP := $(shell date "+%Y%m%d%H%M%S")
THIS_FILE := $(CURDIR)/$(firstword $(MAKEFILE_LIST))
SRCDIR := $(CURDIR)
DESTDIR := $(CURDIR)
PROGRAM := app
PROGRAM_PATH := $(DESTDIR)/$(PROGRAM)
EXT_SRCS :=
@ymmt2005
ymmt2005 / howto-tech-docs.md
Last active September 16, 2025 02:43
技術文書の書き方

技術文書の書き方

このメモは、私(@ymmt2005)が長年にわたってソフトウェアプロダクト開発に関わってきて 2022年現在こうしたほうが良いと考えているベストプラクティスです。

科学的な分析等に基づくわけではない経験則であるため、今後も随時見直すことがありますし、 ここに書いてあることが常に正しいわけでもあらゆるソフトウェア開発に適するわけでもありません。

しかしながら、実務経験が豊富で、モダンな技術スタックに明るいエンジニアの経験則は一定の 役に立つのではないかと考えて記します。

@devlights
devlights / .gvimrc
Last active June 27, 2025 10:31
.vimrc & .gvimrc (minimum)
" Height
set lines=40
" Width
set columns=150
" Background
set background=dark
" Font
" - https://github.com/yuru7/HackGen
set guifont=HackGenNerd:h14
" No menu and toolbar
package main
import (
"bytes"
"fmt"
"log"
"github.com/google/gopacket"
"github.com/google/gopacket/pcap"
)
@stknohg
stknohg / about_Execution_Policies_memo.md
Last active March 6, 2020 09:31
PowerShell実行ポリシーのメモ

実行ポリシー

設定値 内容
Restricted 個別のコマンドは許可されますが、スクリプトは実行されません。
AllSigned ローカル コンピューター上で記述されたスクリプトを含むすべてのスクリプトと構成ファイルが、信頼された発行元によって署名されている必要があります。
@mbinna
mbinna / effective_modern_cmake.md
Last active September 5, 2025 06:36
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft