Skip to content

Instantly share code, notes, and snippets.

@sibukixxx
sibukixxx / ide_shortcut.md
Last active January 28, 2023 08:02 — forked from masa7351/ide_shortcut.md
Visual Studio CodeとIntelliJのショートカット対応表

テキストエディター

目的 Visual Studio Code IntelliJ 補足
行複製 Option + Shift + ↑ or ↓ Command + D Option + Shift + ↑ or ↓はIntelliJでは行入れ替えのショートカットキー
行削除 Command + Shift + K
Command + X ※
※ Clipbordに登録されるので、Command + Vで貼り付けできる
Command + Delete
行追加※行末にいない状態で追加 Command + EnterCommand + Shift + Enter ※※ Shiftをつけてると、上に行が追加される Shif
@sibukixxx
sibukixxx / gist:f3bd7e3dd799ead7ee0e854e4ca73b3a
Created March 25, 2018 16:20 — forked from giannisp/gist:ebaca117ac9e44231421f04e7796d5ca
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql
@sibukixxx
sibukixxx / deploy.php
Created January 17, 2017 05:12
Deployer Script for Laravel 5. See (http://deployer.org)
<?php
/*
|--------------------------------------------------------------------------
| Deployer Script for Laravel. See (http://deployer.org)
|--------------------------------------------------------------------------
| INSTALAÇÃO:
| wget http://deployer.org/deployer.phar && mv deployer.phar /usr/local/bin/dep
| chmod +x /usr/local/bin/dep
| -------------------------------------------------------------------------
@sibukixxx
sibukixxx / file0.txt
Created December 16, 2015 07:08 — forked from na0AaooQ/file0.txt
AWS EC2インスタンス起動時 cloud-initによりホスト名をNameタグ_インスタンスID_IPアドレスに設定する ref: http://qiita.com/na0AaooQ/items/d18a0df8d147e51a04a2
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:Describe*",
"Resource": "*"
}
]
}

エンジニアのための法律勉強会#1『受託開発における契約時の注意事項』参加メモ

前提

  • システム開発そのものは素人だけど、裁判にはクライアント/開発側の両方で関わったことがある。
  • 裁判官はもっとシステム開発については分かってない。
@sibukixxx
sibukixxx / 0_reuse_code.js
Created August 23, 2014 03:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console