This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// yarn init -y | |
// yarn add puppeteer-core | |
const puppeteer = require("puppeteer-core"); | |
const launchChrome = puppeteer.launch({ | |
// MacにインストールされているChromeを使う。 | |
executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', | |
// ブラウザ画面を表示しながら(ヘッドレスモードを無効にする)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "For Japanese", | |
"rules": [ | |
{ | |
"description": "toggle eisuu with command + space", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.2' | |
services: | |
elasticsearch: | |
image: elasticsearch:5.6 | |
environment: | |
- discovery.type=single-node | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get -y install update-manager-core | |
sudo do-release-upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g @vue/cli | |
vue create プロジェクト名 | |
cd プロジェクト名/ | |
vue add electron-builder | |
yarn electron:serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle exec rails new -h | |
Usage: | |
rails new APP_PATH [options] | |
Options: | |
[--skip-namespace], [--no-skip-namespace] # Skip namespace (affects only isolated applications) | |
-r, [--ruby=PATH] # Path to the Ruby binary of your choice | |
# Default: /usr/local/rvm/rubies/ruby-2.5.3/bin/ruby | |
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) | |
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval "$(direnv hook bash)" | |
export EDITOR=/usr/bin/nano | |
#export PS1='\h:\W \u\$ ' # もともと入ってた値 | |
source /usr/local/etc/bash_completion.d/git-prompt.sh | |
source /usr/local/etc/bash_completion.d/git-completion.bash | |
GIT_PS1_SHOWDIRTYSTATE=true | |
export PS1='\h:\W $(if [ -d .git ]; then __git_ps1 " \e[32m(%s)\e[m" ; else echo \u; fi) \$ ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ten | |
include Enumerable | |
def initialize | |
end | |
def each(&block) | |
10.times.each(&block) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userId = "??????????????"; | |
const loginPassword = "???????????"; | |
const branchCode = "???"; | |
const accountNumber = "???????"; | |
const secretWords = { | |
"卒業した中学校": "???????", | |
"母親の旧姓": "??????", | |
"??????": "??????" | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install -y ant exuberant-ctags tomcat7 unzip || true | |
mkdir /tmp/opengrok | |
wget https://github.com/OpenGrok/OpenGrok/files/467358/opengrok-0.12.1.6.tar.gz.zip -O /tmp/opengrok.tar.gz.zip | |
wget http://jflex.de/release/jflex-1.6.1.tar.gz -O /tmp/jflex.tar.gz | |
unzip /tmp/opengrok.tar.gz.zip -d /tmp/ | |
tar xzvf /tmp/opengrok-0.12.1.6.tar.gz -C /tmp/opengrok | |
tar xzvf /tmp/jflex.tar.gz -C /tmp/opengrok | |
cp /tmp/opengrok/jflex-1.6.1/lib/jflex-1.6.1.jar /tmp/opengrok/opengrok-0.12.1.6/lib/ | |
cp -Rap /tmp/opengrok/opengrok-0.12.1.6/bin /usr/local/ |