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 / 📊 Weekly development breakdown
Last active April 25, 2024 00:06
📊 Weekly development breakdown
Ruby 6 hrs 44 mins ████████▋░░░░░░░░░░░░ 41.6%
CoffeeS... 3 hrs 11 mins ████▏░░░░░░░░░░░░░░░░ 19.8%
ERB 3 hrs 5 mins ████░░░░░░░░░░░░░░░░░ 19.1%
JavaScript 1 hr 28 mins █▉░░░░░░░░░░░░░░░░░░░ 9.1%
YAML 1 hr 2 mins █▎░░░░░░░░░░░░░░░░░░░ 6.5%
@juno
juno / ec2_start_instances.js
Last active April 17, 2024 12:23
AWS Lambda Function to call EC2 StartInstances/StopInstances API
/* Event Parameters
{
"accessKeyId": "...",
"secretAccessKey": "...",
"region": "ap-northeast-1",
"instanceId": "i-XXXXXXXX"
}
*/
exports.handler = function(event, context) {
console.log('instanceId =', event.instanceId);
@juno
juno / zsh-git-completion-setting.md
Created May 9, 2013 08:09
zshでgitの補完を設定する手順。

gitのソースツリーに含まれるgit-completion.zshをzshで使う手順

注意:gitコマンドがhubコマンドへのエイリアスに設定されている場合は補完が働かない。

補完用ファイルを置くディレクトリを作成する(既に同じ用途のディレクトリがある場合はそれを使う)。

$ mkdir ~/.zsh/completion/
@juno
juno / my-favorite-nice-small-companies.md
Last active October 17, 2023 09:42
My favorite ( small business | profitable | bootstrapped ) companies. 💕
  • Basecamp
    • Founded: 1999
    • Location: Chicago and remote
    • Team: ~50
    • Customers: Over 100,000 companies
    • Wikipedia
  • Aetrion LLC.
    • Founded: 2010
    • Team: 12
  • Product: DNSimple
@juno
juno / README.md
Created November 1, 2011 08:40
Install rbenv and ruby-build to Amazon Linux (cloud-init).

Install rbenv and ruby-build to Amazon Linux (cloud-init).

  1. Copy & paste content of user-data.sh to EC2 RunInstances user-data
  2. Then, logging in to EC2 instance as ec2-user and run install-ruby.sh.
@juno
juno / qnyp-tech-stack.md
Last active May 17, 2023 14:19
Technology stack at qnyp

Technology stack at qnyp

Programming Language and Frameworks

  • Ruby 2.1
  • Ruby on Rails 4.1
  • CoffeeScript
  • Sass - We prefer to use Scss syntax
  • Bower - JavaScript dependency management

Hosting

@juno
juno / atom-setup.md
Last active March 12, 2023 21:07
My Atom editor setup.

My Atom editor setup

Atom

Atom Shell Commands

  • Launch Atom and select "Atom - Install Shell Commands" menu to install atom and apm commands
  • Add /usr/local/bin to PATH environment varibale
@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 / 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": {