Skip to content

Instantly share code, notes, and snippets.

kazoo0217 kazoo0217

Block or report user

Report or block kazoo0217

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kazoo0217
kazoo0217 / .vimrc
Last active Aug 29, 2015
minimum .vimrc example
View .vimrc
" minimum .vimrc example
set nocompatible
filetype off
set rtp+=~/vimfiles/bundle/plugin1.vim
set rtp+=~/vimfiles/bundle/plugin2
filetype plugin indent on
syntax enable
View convert.sh
#!/bin/bash
for F in *.JPG
do
convert -resize 100x $F ${F/.JPG/.png}
done
View compass-1.0-update.md

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

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%)
View install-bundler.md

Check gem update

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

gem list

C:\Users\UserName>gem list
View Vagrantfile
# -*- 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.
View provision.sh
#!/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 Sep 6, 2012
Ubuntu Server Apache Config Settings - security
View 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 />
You can’t perform that action at this time.