Skip to content

Instantly share code, notes, and snippets.

View voltrue2's full-sized avatar

Nobuyori Takahashi voltrue2

View GitHub Profile
#!/bin/bash
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD);
if [[ "$CURRENT_BRANCH" = "v0.25" ]]; then
echo -e "\033]50;SetProfile=v0.25\a"
else
echo -e "\033]50;SetProfile=Default\a"
fi
# Start your node.js application with profiler
node --prof app.js
# When you stop the application process, you will see the following files:
# If you run your application in cluster mode, you will have multiple log files
isolate-nnnnnnnnnnn-v8.log
# Process the log file(s) to make them human-readable
node --prof-process isolate-nnnnnnnnnn-v8.log > prof
@voltrue2
voltrue2 / .vimrc
Last active March 19, 2024 13:07
.vimrc
" enable syntax highlighting
syntax enable
" spell checks
set spell spelllang=en_us
hi clear SpellRare
hi SpellRare cterm=underline
hi clear SpellLocal
hi SpellLocal cterm=underline
hi clear SpellCap
#!/bin/bash
###################################
# Usage: sudo ./installer.sh [os] #
###################################
OS=$1;
UBUNTU="ubuntu";
#############