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
# syntax = docker/dockerfile:1.0-experimental | |
FROM node:16-bullseye-slim | |
ARG ssh_prv_key | |
RUN apt update \ | |
&& apt upgrade -y \ | |
&& apt install -y git |
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
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
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
set nu | |
set expandtab | |
set autoindent | |
set viminfo='20,\"1000 | |
set hlsearch | |
set tabstop=2 | |
set shiftwidth=2 | |
set hlsearch | |
syntax on |
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
export PS1='[\u@\h \W]\$ ' | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
export GREP_OPTIONS="--binary-files=without-match --color=auto" | |
export LANG=ja_JP.UTF-8 # Win-Mac 文字化け対策 | |
export LESSCHARSET=utf-8 # Win-Mac 文字化け対策 | |
export HISTTIMEFORMAT='%y/%m/%d %H:%M:%S '; | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
export PATH="/opt/homebrew/bin:$PATH" | |
export PATH="/opt/homebrew/opt/curl/bin:$PATH" | |
export PATH="/opt/homebrew/sbin:$PATH" |
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
# Example to use Docker instead of containerd & nerdctl | |
# $ limactl start ./docker.yaml | |
# $ limactl shell docker docker run -it -v $HOME:$HOME --rm alpine | |
# To run `docker` on the host (assumes docker-cli is installed): | |
# $ export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock') | |
# $ docker ... | |
# Specify Intel x86-64 VM | |
# arch: "x86_64" |
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: '3' | |
services: | |
app: | |
build: . | |
volumes: | |
- ./:/usr/src/app | |
ports: | |
- "3000:3000" | |
depends_on: | |
- db |
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 { execSync } = require('child_process') | |
const readlineSync = require('readline-sync') | |
const { Octokit } = require('@octokit/rest') | |
process.chdir('..') | |
require('dotenv').config() | |
const releaseBranch = 'main' | |
const defaultBranch = 'develop' |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css"> | |
<title>My New Website</title> | |
</head> | |
<body> |
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 fs = require('fs') | |
const cheerio = require('cheerio') | |
const link = '<link rel="stylesheet" href="presenter.css">' | |
const script = '<script src="presenter.js" defer></script>' | |
const presenter = '<div class="presenter"><video id="incam" /></div>' | |
const filepath = process.argv[2] | |
let html = fs.readFileSync(filepath, 'utf8') |
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
# http://localhost:3000/rails/info/routes | |
Rails.application.routes.url_helpers.root_path #=> "/" | |
Rails.application.routes.routes.map(&:name).compact |
NewerOlder