Yutaro Koizumi
2025-09-30
A Frontend Night to Know the Respective Merits of Next.js vs Nuxt
| #!/bin/bash | |
| yarn add -D @typescript-eslint/eslint-plugin \ | |
| typescript ts-node-dev \ | |
| @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue prettier | |
| cat > .eslintrc.js <<EOF | |
| module.exports = { | |
| root: true, | |
| env: { |
| <template> | |
| <div v-if="warningZone">Are you still with us?</div> | |
| </template> | |
| <script> | |
| export default { | |
| name: 'AutoLogout', | |
| data: function () { | |
| return { |
| laravel-new() { | |
| if [ -z "$1" ]; then | |
| cat << EOF | |
| Please provide a directory name. | |
| Usage: | |
| laravel-new [directory-name] | |
| EOF | |
| return; |
Get Git log in JSON format
git log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},'The only information that aren't fetched are:
%B: raw body (unwrapped subject and body)%GG: raw verification message from GPG for a signed commit| require 'mina/git' | |
| # Fix the SSH password prompt problem | |
| set :term_mode, nil | |
| # Basic settings: | |
| # domain - The hostname to SSH to. | |
| # deploy_to - Path to deploy into. | |
| # repository - Git repo to clone from. (needed by mina/git) | |
| # branch - Branch name to deploy. (needed by mina/git) |
| <?php | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| class PackagistDetailCommand extends Command { | |
| /** | |
| * The console command name. |
| <?php | |
| namespace Acme\Validation\Capsule; | |
| use Illuminate\Container\Container; | |
| use Illuminate\Database\ConnectionResolver; | |
| use Illuminate\Database\ConnectionResolverInterface; | |
| use Illuminate\Database\Connectors\ConnectionFactory; | |
| use Illuminate\Filesystem\Filesystem; | |
| use Illuminate\Translation\FileLoader; |