Skip to content

Instantly share code, notes, and snippets.

View ysaotome's full-sized avatar

Yuichi Saotome ysaotome

View GitHub Profile
@lanius
lanius / install_gitorious.sh
Created April 19, 2011 06:03
Gitorious Installation to Ubuntu Server 10.04
# Gitorious Installation to Ubuntu Server 10.04
# from gitorious mainline:
# commit e2e70edd42ac1c00dab518d61d566ee3fec929db
# Author: Marius Mathiesen <marius@gitorious.org>
# Date: Wed Apr 13 11:43:07 2011 +0200
: << '#COMMENT_OUT'
Ubuntu Server 10.04 に Gitorious をインストールしたときのメモ。
@ysaotome
ysaotome / centos56_setup_script_for_niftycloud.sh
Created December 29, 2011 10:28
ニフティクラウド(NiftyCloud)向け初期セットアップスクリプト CentOS 5.6 64bit Plain setup script for NiftyCloud
#!/bin/bash
# CentOS 5.6 64bit Plain setup script for NiftyCloud
# 2012/03/16 @ysaotome
#===============================================
# Settings
#===============================================
##rootのパスワード
ROOT_PASSWORD='hoge##123'
##追加する管理ユーザ名
@rubysolo
rubysolo / etc_init.d_unicorn_example.co.uk
Created October 27, 2011 20:04 — forked from scottlowe/etc_init.d_unicorn_example.co.uk
Ruby on Rails server setup on Ubuntu 11.04 with Nginx, Unicorn, Rbenv
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
@higebu
higebu / niftycloud-dns-create-hosted-zone.sh
Created October 27, 2015 03:04
NIFTY Cloud DNS CreateHostedZone in bash
#!/bin/bash
ZONE=<Zone name>
ACCESS_KEY_ID=<NIFTY Cloud Access Key ID>
SECRET_KEY=<NIFTY Cloud Secret Key>
ENDPOINT=https://dns.api.cloud.nifty.com/2012-12-12N2013-12-16/hostedzone
# Generate signature version 2
datetime=$(LC_ALL=en TZ='GMT' date "+%a, %d %b %Y %H:%M:%S %Z")
@yasutakatou
yasutakatou / wget_api_client_for_niftycloud.sh
Last active August 27, 2019 02:48 — forked from ysaotome/wget_api_client_for_niftycloud.sh
ニフティクラウド(NiftyCloud)のREST APIをshellから叩く
#!/bin/bash
# Wget Api Clinet for NiftyCloud
# 2012/01/03 @ysaotome + modify 2016/09/09 kato.yasutaka
#===============================================
# Settings
#===============================================
## 公開鍵
ACCESS_KEY='XXXX'
## 秘密鍵
@stevejenkins
stevejenkins / EdgeMax-Google.sh
Last active November 15, 2019 17:05
IPv4/IPv6 setup script for EdgeMax EdgeOS v1.9 routers to replace the Google Fiber Network Box
# EdgeOS v1.9 Google Fiber Config Script
# by Steve Jenkins (http://www.stevejenkins.com/)
# Last updated: Aug 14, 2016
# Based on settings & scripts by Atlantisman, TK, and CompTech
# RUN THIS SCRIPT AS ROOT ON YOUR EDGEROUTER
# Script runs best if you copy and paste in sections
#______________________Basic Firewall Setup_______________________________
configure
@hayajo
hayajo / 00.md
Last active March 8, 2020 16:05
NDS#36 Go言語入門
@you21979
you21979 / esxi install tips
Last active December 12, 2020 20:44
ESXiのTIPS集
* メモリはどれくらい載せたほうがよいか
16gbがおすすめ
8gbだとCPUの性能限界より先にメモリが足りなくなる
DBをいくつか載せたりファイルサーバーもVMとして載せたいなら32gbがよい
* GPUパススルー方法
下記のカードをつける
AMD RADEON HD4xxx系
AMD RADEON HD5xxx系
AMD RADEON HD6xxx系
@fernandoaleman
fernandoaleman / rpm-from-source.sh
Created November 18, 2011 16:34
How to create an RPM from source with spec file
# How to create an RPM from source with spec file
# This is for Redhat versions of linux. Sometimes when you search for an rpm package,
# it is either outdated or not available. The only thing available is the source code.
# You can create a custom RPM package from source.
#
# For this example, I'll be using the latest version of Git, currently v.1.7.7.3
# Step: 1
# Install rpmbuild