Skip to content

Instantly share code, notes, and snippets.

View kazoo0217's full-sized avatar

kazoo0217 kazoo0217

  • JPN
View GitHub Profile
@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 / diary_20161209.md
Created December 9, 2016 06:20
今日から、 Gist で日記を書こうと思いました。

日記、始めました

こんにちは。

今日から、 Gist で日記を書こうと思いました。

特にテーマは無いので、ライフログ、ティップスやコードも書くでしょう。

公開を目的にするので、会社(の人)の悪口とか書きません。

@kazoo0217
kazoo0217 / diary_20161229.md
Created December 29, 2016 14:23
Shell Script で自動化始めました。

自動化

時間があるときに bash でスクリプトを書いている。 プログラミングが得意なわけではないので、高度なロジックを使うことはしないがそれなりに動いてくれる。

最近自動化したこと

毎回 SSH で接続してコマンドたたくの面倒くさい

  • サーバーでファイル・フォルダを ZIP 圧縮

Happy New Year 2017

新年明けました。
おめでとうございます。

今年もよろしくお願い申し上げます。