Skip to content

Instantly share code, notes, and snippets.

View kazoo0217's full-sized avatar

kazoo0217 kazoo0217

  • JPN
View GitHub Profile
@kazoo0217
kazoo0217 / .vimrc
Last active August 29, 2015 14:01
minimum .vimrc example
" minimum .vimrc example
set nocompatible
filetype off
set rtp+=~/vimfiles/bundle/plugin1.vim
set rtp+=~/vimfiles/bundle/plugin2
filetype plugin indent on
syntax enable
#!/bin/bash
for F in *.JPG
do
convert -resize 100x $F ${F/.JPG/.png}
done

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)
#!/bin/bash
# コマンド実行結果を変数に格納するには$(command ...)か`command ...`
ft1=.png
ft2=.jpg
w=100
for F in *$ft1
do
F1=$(echo $F)
#!/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

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%)

Check gem update

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

gem list

C:\Users\UserName>gem list
# -*- 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.
#!/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
@kazoo0217
kazoo0217 / security
Created September 6, 2012 18:22
Ubuntu Server Apache Config Settings - security
/etc/apache2/conf.d/security
#
# Disable access to the entire file system except for the directories that
# are explicitly allowed later.
#
# This currently breaks the configurations that come with some web application
# Debian packages.
#
#<Directory />