Skip to content

Instantly share code, notes, and snippets.

View wnoguchi's full-sized avatar
😀

Wataru Noguchi wnoguchi

😀
View GitHub Profile
@wnoguchi
wnoguchi / rbenv-install.sh
Created October 22, 2013 11:34
rbenv and rails environement one shot install script.
#!/bin/bash
#=====================================
# Settings Here
#=====================================
# Platform
PLATFORM=Ubuntu
#PLATFORM="CentOS"
# Rails Application Name
@wnoguchi
wnoguchi / README.md
Last active August 24, 2019 03:30
Preseed Recipe: Basic Configuration

Ubuntu Preseed Recipe: Basic

System Requirements

  • Ubuntu Server 16.04.4 LTS AMD64
  • Disk Size: 80GiB
  • Number of Disks: 1
  • LVM: なし
  • RAID: なし
  • Partition Table Format: MBR
@wnoguchi
wnoguchi / con.sh
Last active June 26, 2019 23:11
serial console screen wrapper script.
#!/bin/bash
session_name=$1
case $1 in
"SW1")
devname=/dev/tty.usbserial-AL00LMJ1
;;
"SW2")
devname=/dev/tty.usbserial-A504CVAJ
;;
@wnoguchi
wnoguchi / README.md
Last active April 24, 2018 06:48
Preseed Recipe: Soft RAID1, LVM

Ubuntu Preseed Recipe: RAID1 + LVM

System Requirements

  • Ubuntu Server 16.04.4 LTS AMD64
  • Disk Size: 80GiB
  • Number of Disks: 2
  • LVM: YES
  • RAID: RAID1
  • Partition Table Format: MBR
VPC1
ip 192.168.0.1 255.255.255.0 192.168.0.254
VPC2
ip 10.1.1.1 255.255.255.0 10.1.1.254
conf t
router ospf 1
@wnoguchi
wnoguchi / junkfile.go
Created March 17, 2018 14:42
Open junkfile golang windows version.
package main
import (
"fmt"
"time"
"bufio"
"io/ioutil"
"os"
"os/exec"
"strings"
@wnoguchi
wnoguchi / capistrano.md
Created December 18, 2017 00:12 — forked from makinuk/capistrano.md
Capistrano Configuration with Gitlab

Capistrano Configuration

Configure Server

  • configure deploy user
groupadd deployers
adduser deploy
usermod -a -G deployers deploy
  • to give the deployers group the permissions, run the following and edit the /etc/sudoers file: visudo
@wnoguchi
wnoguchi / README.md
Last active November 22, 2017 03:51
ぼくのかんがえたさいきょうの .gitignore 。

.gitignore collections

About

ぼくのかんがえたさいきょうの .gitignore 。

References

@wnoguchi
wnoguchi / mattermost-gitlab.patch
Created November 17, 2017 02:08
Mattermost Installation with Omnibus GitLab
--- /etc/gitlab/gitlab.rb.ssl 2017-11-17 01:32:09.200968784 +0000
+++ /etc/gitlab/gitlab.rb 2017-11-17 01:52:59.928804825 +0000
@@ -1068,7 +1068,7 @@
##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
################################################################################
-#mattermost_external_url 'https://mattermost.demo.pg1x.com'
+mattermost_external_url 'https://mattermost.demo.pg1x.com'
#mattermost['enable'] = false
@wnoguchi
wnoguchi / tenkaichi-git.md
Created October 1, 2017 14:25 — forked from teppeis/tenkaichi-git.md
天下一gitconfig大会

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。