Skip to content

Instantly share code, notes, and snippets.

View kazoo0217's full-sized avatar

kazoo0217 kazoo0217

  • JPN
View GitHub Profile
@kazoo0217
kazoo0217 / nvm-install-node.sh
Last active January 23, 2017 09:47
nvm で任意の node バージョンをインストールして default を切替までを自動化
#!/bin/sh
# load nvm
source ~/.nvm/nvm.sh
# list
nvm ls-remote
# input version
echo "インストールする node のバージョンを入力してください : "
@kazoo0217
kazoo0217 / npm-install-g.sh
Last active January 23, 2017 09:48
node パッケージのグローバルインストールを自動化
#!/bin/sh
npm install -g browser-sync modernizr gulp-cli
@kazoo0217
kazoo0217 / .vimrc
Last active May 2, 2018 21:25
vimrc for server (no gui, minimal)
set nocompatible
set number
syntax on
colorscheme elflord
" remap
noremap : ;
noremap ; :
#!/usr/bin/env bash
## Auto Install Sequence and configuration for LAMP ##
# update packages
apt-get update >/dev/null 2>&1
# edit password
MYSQL_PASSWORD="password"
# install mysql
echo "mysql-server-5.5 mysql-server/root_password password $MYSQL_PASSWORD" | debconf-set-selections
echo "mysql-server-5.5 mysql-server/root_password_again password $MYSQL_PASSWORD" | debconf-set-selections
apt-get -y install mysql-client mysql-server >/dev/null 2>&1
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

Check gem update

C:\Users\UserName>gem update --system
Latest version currently installed. Aborting.

gem list

C:\Users\UserName>gem list

Install

C:\Users\UserName>gem install hologram
Fetching: rouge-1.6.2.gem (100%)
Successfully installed rouge-1.6.2
Fetching: redcarpet-3.1.2.gem (100%)
Building native extensions.  This could take a while...
Successfully installed redcarpet-3.1.2
Fetching: hologram-1.2.0.gem (100%)
#!/bin/bash
# set create options
compass create my-project -r bootstrap-sass --using bootstrap --css-dir css --images-dir img --javascripts-dir js --relative-assets -s expanded --no-line-comments
#!/bin/bash
# コマンド実行結果を変数に格納するには$(command ...)か`command ...`
ft1=.png
ft2=.jpg
w=100
for F in *$ft1
do
F1=$(echo $F)

gemのパッケージでインストールされているものの一覧表示

C:\Users\UserName>gem list

*** LOCAL GEMS ***

bigdecimal (1.2.0)
bootstrap-sass (3.2.0.1)
chunky_png (1.3.1)
compass (0.12.7)