Skip to content

Instantly share code, notes, and snippets.

View juno's full-sized avatar
πŸ’°
writing code (almost) every weekday

Junya Ogura juno

πŸ’°
writing code (almost) every weekday
View GitHub Profile
@juno
juno / script.sh
Last active April 11, 2026 02:21
Hatchbox.io Post Deploy Script for New Relic Releases
# --- Configuration ---
# If these are defined in Hatchbox Environment Variables, keep the variable names as is.
# Otherwise, replace them with your actual strings (e.g., "NRAK-...").
NR_API_KEY="${NEW_RELIC_API_KEY}"
NR_ENTITY_GUID="${NEW_RELIC_ENTITY_GUID}"
# 1. Get version information (Use REVISION file if available, otherwise use timestamp)
DEPLOY_VERSION=$(cat REVISION 2>/dev/null || date +%Y%m%d-%H%M%S)
# 2. Build GraphQL query
@juno
juno / stack.md
Created April 8, 2026 07:33
My web app stack

My web app stack

Backend

  • Ruby on Rails
  • PostgreSQL (public app), SQLite (in-house app)
  • authentication_zero for User authentication

Deployment

@juno
juno / README.md
Last active June 22, 2025 04:37
claude-code-github-remote-mcp.md

Prerequisite

  • GitHub Personal Access Token with repository access permissions

Add GitHub Remote MCP server to Claude Code

  • Set your token in the Authorization header
  • The MCP server name should be "github"
@juno
juno / README.md
Last active June 16, 2022 01:24
πŸ’Ž Update rubygems and bundler for all installed (via asdf) ruby versions.

Usage

$ asdf list ruby
  2.7.4
  2.7.5
  2.7.6
  3.0.3
  3.1.2
 3.2.0-preview1
@juno
juno / design-documents.md
Created July 5, 2020 11:15
Awesome design documents on internet.
@juno
juno / devdocs.json
Last active February 4, 2020 06:09
My exported preferences for DevDocs.
{
"analyticsConsentAsked": "1",
"hideIntro": "1",
"docs": "crystal~0.31/css/dom/dom_events/eslint/html/immutable/javascript/jest/jquery/pony/react/redis/ruby~2.6/rails~6.0/rails~5.2/rust/sass",
"hideDisabled": "1",
"tips": "KeyNav",
"analyticsConsent": "1",
"layout": "_max-width",
"theme": "auto"
}
@juno
juno / custom.json
Last active April 13, 2021 05:47
My Karabiner Elements configuration
{
"title": "My Customize for Dvorak",
"rules": [
{
"description": "Ctrl+i to Tab",
"manipulators": [
{
"description": "Dvorakでは物理キーgがiとγͺγ‚‹",
"type": "basic",
"from": {
@juno
juno / πŸ“Š Weekly development breakdown
Last active April 12, 2026 00:31
πŸ“Š Weekly development breakdown
Ruby 7 hrs 28 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 65.3%
Other 1 hr 31 mins β–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 13.3%
Markdown 53 mins β–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7.8%
JavaScript 30 mins β–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 4.4%
TSV 20 mins β–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 3.0%
@juno
juno / circleci-config.yml
Created September 6, 2019 01:53
CircleCI config step to install bundler which compatible BUNDLED_WITH in Gemfile (workaround for bundler 2)
steps:
# ...
- run:
name: "Configure Bundler"
command: |
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
source $BASH_ENV
gem install bundler
@juno
juno / keymap.diff
Last active January 11, 2019 03:58
qmk macro definition for refocusing to page from omnibar (Chrome): https://docs.qmk.fm/#/feature_macros
diff --git a/keyboards/crkbd/keymaps/juno/keymap.c b/keyboards/crkbd/keymaps/juno/keymap.c
index 487850951..4893837e9 100644
--- a/keyboards/crkbd/keymaps/juno/keymap.c
+++ b/keyboards/crkbd/keymaps/juno/keymap.c
@@ -32,7 +32,8 @@ enum custom_keycodes {
RAISE,
ADJUST,
BACKLIT,
- RGBRST
+ RGBRST,