Skip to content

Instantly share code, notes, and snippets.

@kazumich
kazumich / sakura2613.php
Last active October 4, 2017 06:18
さくらインターネットのレンタルサーバーに a-blog cms 2.6.1.3 をインストールするためのプログラムです。phpのバージョンに合わせて a-blog cms のダウンロードや、ioncubeローダーのダウンロードも自動化しています。これで正常にインストールできない場合にはコメントでお知らせください。
<?php
// --------------------------
//
// さくら 共用レンタルサーバー a-blog cms v2.6.1.3 インストーラー
//
// --------------------------
# インストーラー の
# MySQL の設定を事前に行う場合に
@ysaotome
ysaotome / update_motd_by_screenfetch.sh
Last active March 4, 2021 13:29
/etc/motdにサーバ情報を書き込むスクリプト。cronとかで回しておくと便利。#Ubuntu(http://manpages.ubuntu.com/manpages/lucid/man5/update-motd.5.html) やAmazonLinuxみたいなupdate-motdがCentOSにも欲しい。
#!/bin/bash
# Description:UpdateMotd by screenFetch
# References: http://goo.gl/xpWV7L
# 2015/07/08 @ysaotome
FILE_MOTD='/etc/motd'
BIN_DATE='/bin/date'
BIN_FIGLET='/usr/bin/figlet'
BIN_HOSTNAME='/bin/hostname'
@ysaotome
ysaotome / wordpress_setup_cheatsheet.sh
Last active December 19, 2015 17:39
2台構成(Web/APPサーバ1台、DBサーバ1台)のWordpressをセットアップする時のチートシート Japan TechFesta 2013 E30: 「ニフティクラウドを使ったインフラオートメーションハンズオン」http://www.techfesta.jp/p/program-2.html#E30の Chef vs 人力対決用
#Wordpress構築チートシート
#元ネタ:https://gist.github.com/ysaotome/2235302
#対決相手:http://tily.github.io/jtf2013/
###############################################
# 環境変数を定義 WEB/APPサーバおよびDBサーバの双方で実行
###############################################
## MySQL管理ユーザのパスワード
export MYSQL_ROOT_PASS='mysql##123'
## Wordpressデータベース名

sublime text 2

http://www.sublimetext.com/
Total: USD $70 ちょっと値上がってましたね。。

  • クロスプラットフォーム
    • windows
    • mac
    • linux
@cristianrasch
cristianrasch / gitlab.sh
Created April 22, 2012 01:50
Install Gitlab on Debian Squeeze/Wheezy
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1
aptitude install -y mysql-server libmysqlclient-dev
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
adduser --disabled-login --gecos 'gitlab system' gitlab
usermod -a -G git gitlab
su - gitlab
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa
aptitude install gitolite
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
su - git