Skip to content

Instantly share code, notes, and snippets.

View oppara's full-sized avatar
:octocat:
::

oppara oppara

:octocat:
::
View GitHub Profile
@oppara
oppara / zshrc.sh
Created May 15, 2026 00:28 — forked from otiai10/zshrc.sh
zshのプロンプトにブランチ名とかステータスとか出すアレ
# ----- PROMPT -----
## PROMPT
PROMPT=$'[%*] → '
## RPROMPT
RPROMPT=$'`branch-status-check` %~' # %~はpwd
setopt prompt_subst #表示毎にPROMPTで設定されている文字列を評価する
# {{{ methods for RPROMPT
# fg[color]表記と$reset_colorを使いたい
# @see https://wiki.archlinux.org/index.php/zsh
@oppara
oppara / llm-wiki.md
Created April 6, 2026 22:42 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@oppara
oppara / README.md
Created January 17, 2022 01:12 — forked from kawarimidoll/README.md
Define keymappings for multiple modes at once in Vim or Neovim

multiple_keymap.vim

Define keymappings for multiple modes at once in Vim or Neovim.

Installation

Put codes in your configuration file, such as .vimrc or init.vim.

Usage

" define mappings at once
Keymap nx S DoSomething
@oppara
oppara / summernote-ext-minidiag.js
Created May 7, 2020 08:55 — forked from bluecat76/summernote-ext-minidiag.js
Minimal dialog example for summernote v0.8.1
(function (factory) {
/* global define */
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Browser globals
@oppara
oppara / aws-iam-user-key-rotation.sh
Created September 18, 2019 03:54 — forked from TAKEDA-Takashi/aws-iam-user-key-rotation.sh
指定したAWSプロファイルのアクセスキー をローテーションするスクリプト。
#!/bin/bash -euo pipefail
#
# Usage:
# $ aws-iam-user-key-rotation.sh [profile] [credential_file]
#
declare -x AWS_DEFAULT_PROFILE=${1:-default}
declare credential_file=${2:-~/.aws/credentials}
declare -x AWS_SHARED_CREDENTIALS_FILE=$credential_file
@oppara
oppara / Rakefile
Last active July 26, 2019 06:20 — forked from mizzy/Rakefile
How to share serverspec tests among hosts https://mizzy.org/blog/2013/05/12/2/
require 'rake'
require 'rspec/core/rake_task'
hosts = [
{
:name => 'proxy001.example.jp',
:roles => %w( base proxy ),
},
{
:name => 'proxy002.example.jp',
@oppara
oppara / redmine_textile2md.rb
Last active October 28, 2019 07:22 — forked from yuumi3/redmine_textile2md.rb
Convert Textile to Markdown contents in Redmin
def textile_to_markdown(textile)
d = []
pre = false
table_header = false
text_line = false
textile.each_line do |s|
s.chomp!
@oppara
oppara / gist:2b43ee1f5feda3939c6470c069e1ecb0
Created March 5, 2019 15:13 — forked from j5ik2o/gist:2970973
ペアプロの心得

ペアプロの心得

休憩をとる

1.定期的に休憩をとっていますか? ペアプログラミングは、精神的な体力を消耗します。定期的に休憩をとってリフレッシュすることがとても大切です。

謙虚になる

2.「色々な実装方針がある」という認識がありますか?