Skip to content

Instantly share code, notes, and snippets.

View kazoo0217's full-sized avatar

kazoo0217 kazoo0217

  • JPN
View GitHub Profile
@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 />
@kazoo0217
kazoo0217 / mime.conf
Created September 6, 2012 18:24
Ubuntu Server Apache Config Settings - mime.conf
/etc/apache2/mods-availables/mime.conf
<IfModule mod_mime.c>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig /etc/mime.types
@kazoo0217
kazoo0217 / default
Created September 6, 2012 18:27
Ubuntu Server Apache Config Settings - default
/etc/apache2/sites-available/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
#DocumentRoot /var/www
DocumentRoot /home/USER/www
<Directory />
Options FollowSymLinks
AllowOverride None #when using .htassess is to comment.

##Lubuntu 13.04

  1. add a line

~/.config/lxsession/Lubuntu/autostart

@xcompmgr &
  1. edit a line
@kazoo0217
kazoo0217 / Gruntfile.js
Last active December 30, 2015 18:49
grunt livereload sass/compass and html
'use strict';
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
watch:{
options: {
livereload: true
@kazoo0217
kazoo0217 / package.json
Last active December 30, 2015 18:49
grunt package file for livereload
{
"name": "project-name",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-connect": "*",
"grunt-contrib-compass": "~0.7.0",
"grunt-contrib-watch": "*"
}
}
opensslのmakeでこけてる...
$ brew install wget
==> Installing wget dependency: openssl
==> Downloading http://www.openssl.org/source/openssl-1.0.1f.tar.gz
######################################################################## 100.0%
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1f --openssldir=/usr/local/etc/openssl zlib-dynamic shared darwin-i386-cc
==> make
error
$ brew doctor
Warning: An outdated version of Git was detected in your PATH.
Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub.
Please upgrade: brew upgrade git
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
@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